Get the disk info
Show identity information for device
sudo smartctl -i /dev/sdX
Show all SMART information for device
sudo smartctl -a /dev/sdX
Show all information for device
sudo smartctl -x /dev/sdX
Run the test
Short test
sudo smartctl -t short /dev/sdX
Long test
sudo smartctl -t long /dev/sdX
Abort the test
sudo smartctl -X /dev/sdX
Check the test result
Check self-test log
sudo smartctl -l selftest /dev/sdX
Show device SMART health status
sudo smartctl -H /dev/sdX
Check the errors
Check error log
sudo smartctl -l error /dev/sdX

Leave a Reply