smartctl

From WebHostingNeeds.com
Jump to: navigation, search

smartclt is used to check errors in hard disk.

To check a sata hard disk

smartctl -a -d ata /dev/sda

If there is errors, you will see it in errors section.


Show Only Errors

smartctl -q errorsonly -H -l selftest -l error /dev/sda

You see nothing on a good HDD

[[email protected] ~]# smartctl -q errorsonly -H -l selftest -l error /dev/sda
[[email protected] ~]#



smart error currentpendingsector detected on host