Install: sudo apt-get install smartmontools
List SMART status, whether enabled:
sudo smartctl -i /dev/sda (change drive device here)
Run test for a drive:
smartctl -t long /dev/sda
You can view a drive’s test statistics by typing:
smartctl -l selftest /dev/sda
To display detailed SMART information for an IDE drive, type:
sudo smartctl -a /dev/hda
To display detailed SMART information for a SATA drive, type:
sudo smartctl -a -d ata /dev/sda