Smartmontools

smartmontools is a utility to read and monitor the S.M.A.R.T. (Self-Monitoring, Analysis and Reporting Technology) information of ATA/SATA and SCSI/SAS drives.

Hardware
S.M.A.R.T. support needs to be enabled in the BIOS or EFI firmware for correct operation.

Emerge
Install:

Usage
is a utility that is used to control and monitor S.M.A.R.T. enabled drives.

Print information of a drive, including S.M.A.R.T. support:

Enable S.M.A.R.T. on a drive:

Print the S.M.A.R.T. health status of a drive:

If the result is, the drive is in good health. If the result is, drive failure is imminent and the data should be backed up.

Print the S.M.A.R.T. capabilities of a drive, including supported tests and the time required to run them:

Print the vendor specific S.M.A.R.T attributes of a drive:

Run a S.M.A.R.T. test on a drive:

The possible values for  include:


 * : Run the S.M.A.R.T. Immediate Offline Test.
 * : Run the S.M.A.R.T. Short Self Test.
 * : Run the S.M.A.R.T. Extended Self Test.
 * : Run the S.M.A.R.T. Conveyance Self Test.

Print a S.M.A.R.T. log of a drive:

The possible values for  include:


 * : Print the S.M.A.R.T. error log. This log will contain all errors. If the result is, the drive is in good health. If there are some old errors, the drive is most likely in good health. If there are many recent errors, drive failure may be imminent and the data should be backed up.
 * : Print the S.M.A.R.T. self-test log. This log will contain the results for the,   and   tests.

S.M.A.R.T. daemon
is a daemon that continuously monitors the S.M.A.R.T. information of drives. It can be configured via. See for more information. will log any errors to.

In this example monitors 4 drives and sends a test e-mail on startup. It also runs a scheduled test every week on Friday at 3:00 a.m.

To start :

To start at boot:

External resources

 * smartmontools bugtracker: known bugs
 * smartmontools bugtracker: known bugs