Write zeros to a device (using a mountpoint).
# Choose one
FOLDER="$HOME"
FOLDER="/tmp"
FOLDER="/mnt/your/sata/disk"
FOLDER="/dev/shm" # this is your RAM
dd if=/dev/zero of="${FOLDER}/bench" bs=384k count=1k conv=fdatasync; rm -f "${FOLDER}/bench"
You may adjust the count
for better estimation.
4026531840 bytes (4.0 GB, 3.8 GiB) copied, 21.2701 s, 189 MB/s
- Ensure you don't have a
bench
that could be overridden - Ensure you have enough disk space (here
bs * count
bytes) - From
dd
manual:fdatasync
physically write output file data before finishing - Check
lsblk
for mountpoints.