Skip to main content

check hdd health

check secor size

lsblk -o NAME,PHY-SeC

In my setup of SAS drives I have a block size of 512, my SATA drive setup has 4096 block size.

badblocks

To checkCheck the health of a harddisk you can usewith badblocks, attention the w option will delete all data on the diskdisk. Use the blocksize from above with the badblocks command.

badblocks -svw -b 4096512 -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