Smart Suite
Debian Installation
For Debian 4.0 (Etch):
$ sudo aptitude install smartmontools
If you also want the graphical interface for showing warnings to the user, install smart-notifier:
$ sudo aptitude install smart-notifier
Useful Commands
Note: Some commands differ depending on whether the drive is IDE, SCSI or SATA. Where an example uses /dev/hda the example command relates to IDE drives. Where the command uses /dev/sda it relates to usage on SCSI.
These examples are intended as quick reminders. Check the man pages for smartctl and read the WARNINGS file distributed with the package before running these commands.
When running these commands, stop the SMART daemon:
$ sudo /etc/init.d/smartd stop
SMART Information
Assuming the drive you want to test is /dev/hda
$ sudo smartctl -a /dev/hda
For SATA drives:
$ sudo smartctl -a -d ata /dev/sda
Quick Offiline Test
For SATA drives add '-d ata' to the command line.
$ sudo smartctl -s on -t offline /dev/hda
$ : And when the test completes
$ sudo smartctl -l error /dev/hda
Short Test
For SATA drives add '-d ata' to the command line.
$ sudo smartctl -s on -t short /dev/hda
$ : And when the test completes, or to see progress
$ sudo smartctl -l selftest /dev/hda
Long Test
For SATA drives add '-d ata' to the command line.
$ sudo smartctl -s on -t long /dev/hda
$ : And when the test completes, or to see progress
$ sudo smartctl -l selftest /dev/hda
Resources
-- Frank Dean - 24 Jan 2009