To check hard drive health on Linux you can use this command:
sudo smartctl -a /dev/sda | less
- replace /dev/sda with your actual device.
to check for bad blocks, use this command:
sudo badblocks -v /dev/sda -s
- replace /dev/sda with your actual device.