Table of Contents

Ubuntu - Disk - Stress test

ALERT: This will wipe data on the disk, so do not use against a disk for which you want to keep the data.

while :
do
  dd if=/dev/zero of=/dev/sdd bs=1048576 seek=1
done

NOTE: This continually writes 1Mb blocks to the disk.


Check the health of the disk

smartctl -a /dev/sdd

NOTE: If smartctl is not installed then:

sudo apt update
sudo apt install smartmontools

References

https://www.smartmontools.org/