SMARTCTL(8)

NAME
smartctl - S.M.A.R.T. control utility

SYNOPSIS
smartctl [-cdeglostv] [device]

DESCRIPTION
smartctl controls the Self-Monitoring, Analysis and Reporting Technology System(S.M.A.R.T.) built into ATA-3 and later IDE and SCSI-3 Hard Drives. This is used to check the reliability of the hard drive and predict drive failures. TapeAlerts support for SCSI tape drives and changers smartctl is command line utility designed to perform simple S.M.A.R.T. tasks.

OPTIONS

smartctl accepts two agruments, options and device in respective order. The options begin with a '-' and multiple options should be begun with a single '-'. The second argument is the device to be controled. ATA device use the form "/dev/hd*" and SCSI devices use the form "/dev/sd*". SCSI devices use only options a,i,c,e,d. For SCSI Tape Drives and Changers with TapeAlerts support use the form "/dev/st*" and "/dev/sg*". TapeAlerts devices use only a,i,c,e,d.

i   Check if the device supports S.M.A.R.T

c   Check if device has any S.M.A.R.T. Warranty Failures

g   Prints only the generic S.M.A.R.T. attributes

v   Prints only the vendor specific S.M.A.R.T. attributes

t   Prints only the vendor specific S.M.A.R.T. thresholds

l   Prints only the S.M.A.R.T. error log

a   Prints all parameters for c,i,g,v,t,l (for SCSI c,i)

e   Enables S.M.A.R.T. on device

d   Disables S.M.A.R.T. on device

t   Enables S.M.A.R.T. automatic offline self test timer which scans the drive every four hours for disk defects.

T   Disables S.M.A.R.T. automatic offline self test timer

O   Runs S.M.A.R.T. Immediate off-line Test

S   Runs S.M.A.R.T. Short Self Test ( usually under ten minutes)

s   Runs S.M.A.R.T. Short Self Test in Captive Mode.
     ( WARNING: This test will busy out drive for length of test. Only run this on drives without any mounted partitions.)

X   Runs S.M.A.R.T. Extended Self Test ( tens of minutes)

x   Runs S.M.A.R.T. Extended Self Test in Captive Mode. ( WARNING: This test will busy out drive for length of test. Only run this on drives without any mounted partitions.)

A   Aborts Non-Captive S.M.A.R.T. Tests.

EXAMPLES
smartctl -a /dev/hda - prints all S.M.A.R.T. infomration for drive /dev/hda (Primary Master)

smartctl -d /dev/hdd - disable S.M.A.R.T. on drive /dev/hdd (Secondary Slave)

AUTHOR
Michael Cornwell, cornwell@acm.org
Concurrent Systems Laboratory
Jack Baskin School of Engineering
University of California Santa Cruz
http://csl.cse.ucsc.edu/