Skip to main content

bodo@naumann.dev

To check the health of a harddisk you can use badblocks, attention the w option will delete all data on the disk

badblocks -svw -b 4096 -c 400000 /dev/sda

It seems that the c option has a big impact on the runtime of badblocks.

smart

After running badblocks you can run a long selftest

smartctl -t long /dev/sda