$ lsblk |grep -v ^loop # Tells to exclude any with keyword 'loop'.
$ sudo smartctl --info /dev/sda
$ sudo smartctl --all /dev/sda
$ sudo smartctl --health /dev/sda
1
2
$ sudo smartctl -s on /dev/sda # Turn on SMART features on your hard drive.
$ sudo smartctl -i /dev/sda # Show identity information for device.
1
2
3
4
5
6
7
$ sudo smartctl -t short -a /dev/sda # Run a short test on the drive.
$ sudo smartctl -t long -a /dev/sda # Run a short test on the drive.
$ sudo smartctl -c /dev/sda # Show device SMART capabilities.
$ sudo smartctl -X /dev/sda # Abort any non-captive test on devic.
$ sudo smartctl -d ata -H /dev/sda # To test the overall health of the drive.
$ sudo smartctl -l selftest /dev/sda # Print the self-test result.
$ sudo smartctl -l error /dev/sda # To print only the error log.
smartd
1
2
3
4
5
$sudosystemctlenable/disablesmartd$sudosystemctlstart/stop/restart/statussmartd$sudovim/etc/default/smartmontoolssmartd_opts="--interval=7200"# Specify intervals in seconds
1
2
$ sudo vim/etc/smartd.conf
/dev/sda -m admin@example.com -M test
QDiskInfo is a frontend for smartctl (part of the smartmontools package). It provides a user experience similar to CrystalDiskInfo. It shows the SMART (Self-Monitoring, Analysis, and Reporting Technology) data of modern hard disk drives.