]> git.proxmox.com Git - mirror_smartmontools-debian.git/blame - smartctl.8.in
Merge branch 'upstream' of git.debian.org:/git/collab-maint/smartmontools into upstream
[mirror_smartmontools-debian.git] / smartctl.8.in
CommitLineData
832b75ed 1.ig
a86ec89e 2Copyright (C) 2002-10 Bruce Allen
17d0b8d9 3<<<<<<< HEAD
a86ec89e 4Copyright (C) 2004-16 Christian Franke
ee38a438 5
a86ec89e 6$Id: smartctl.8.in 4311 2016-04-27 21:03:01Z chrfranke $
17d0b8d9 7=======
3d8ad6fa 8Copyright (C) 2004-15 Christian Franke
ee38a438 9
3d8ad6fa 10$Id: smartctl.8.in 4099 2015-05-30 17:32:13Z chrfranke $
17d0b8d9 11>>>>>>> 3d8ad6fa4529eb02ae1391a1e937bf57aad3fb74
ee38a438
GI
12
13This program is free software; you can redistribute it and/or modify
14it under the terms of the GNU General Public License as published by
15the Free Software Foundation; either version 2, or (at your option)
16any later version.
17
18You should have received a copy of the GNU General Public License
19(for example COPYING); If not, see <http://www.gnu.org/licenses/>.
20
21This code was originally developed as a Senior Thesis by Michael Cornwell
22at the Concurrent Systems Laboratory (now part of the Storage Systems
23Research Center), Jack Baskin School of Engineering, University of
24California, Santa Cruz. http://ssrc.soe.ucsc.edu/
832b75ed
GG
25
26..
a86ec89e 27.TH SMARTCTL 8 "CURRENT_SVN_DATE" "CURRENT_SVN_VERSION" "SMART Monitoring Tools"
832b75ed
GG
28.SH NAME
29\fBsmartctl\fP \- Control and Monitor Utility for SMART Disks
30
31.SH SYNOPSIS
32.B smartctl [options] device
33
832b75ed 34.SH DESCRIPTION
d008864d
GI
35.\" %IF NOT OS ALL
36.\"! [This man page is generated for the OS_MAN_FILTER version of smartmontools.
37.\"! It does not contain info specific to other platforms.]
38.\"! .PP
39.\" %ENDIF NOT OS ALL
ee38a438
GI
40\fBsmartctl\fP controls the Self-Monitoring, Analysis and
41Reporting Technology (SMART) system built into most ATA/SATA and SCSI/SAS
42hard drives and solid-state drives.
43The purpose of SMART is to monitor the reliability of the hard drive
44and predict drive failures, and to carry out different types of drive
45self-tests.
46\fBsmartctl\fP also supports some features not related to SMART.
47This version of \fBsmartctl\fP is compatible with
d2e702cf 48ACS-3, ACS-2, ATA8-ACS, ATA/ATAPI-7 and earlier standards
ee38a438 49(see \fBREFERENCES\fP below).
832b75ed
GG
50
51\fBsmartctl\fP also provides support for polling TapeAlert messages
52from SCSI tape drives and changers.
53
54The user must specify the device to be controlled or interrogated as
2127e193
GI
55the final argument to \fBsmartctl\fP. The command set used by the device
56is often derived from the device path but may need help with the \'\-d\'
57option (for more information see the section on "ATA, SCSI command sets
58and SAT" below). Device paths are as follows:
d008864d 59.\" %IF OS Linux
832b75ed 60.IP \fBLINUX\fP: 9
a86ec89e
GI
61Use the forms \fB"/dev/sd[a\-z]"\fP for ATA/SATA and SCSI/SAS devices.
62For SCSI Tape Drives and Changers with TapeAlert support use the
63devices \fB"/dev/nst*"\fP and \fB"/dev/sg*"\fP. For disks behind
2127e193 643ware controllers you may need \fB"/dev/sd[a\-z]"\fP or
cfbba5b9 65\fB"/dev/twe[0\-9]"\fP, \fB"/dev/twa[0\-9]"\fP or \fB"/dev/twl[0\-9]"\fP: see details
2127e193
GI
66below. For disks behind HighPoint RocketRAID controllers you may need
67\fB"/dev/sd[a\-z]"\fP. For disks behind Areca SATA RAID controllers,
68you need \fB"/dev/sg[2\-9]"\fP (note that smartmontools interacts with
69the Areca controllers via a SCSI generic device which is different
ee38a438
GI
70than the SCSI device used for reading and writing data)! For HP Smart
71Array RAID controllers, there are three currently supported drivers: cciss,
72hpsa, and hpahcisr. For disks accessed via the cciss driver the device nodes
73are of the form \fB"/dev/cciss/c[0\-9]d0"\fP. For disks accessed via
74the hpahcisr and hpsa drivers, the device nodes you need are \fB"/dev/sg[0\-9]*"\fP.
75("lsscsi \-g" is helpful in determining which scsi generic device node corresponds
76to which device.) Use the nodes corresponding to the RAID controllers,
77not the nodes corresponding to logical drives. See the \fB\-d\fP option below, as well.
a86ec89e
GI
78Use the forms \fB"/dev/nvme[0\-9]"\fP (broadcast namespace) or
79\fB"/dev/nvme[0\-9]n[1\-9]"\fP (specific namespace 1\-9) for NVMe devices.
d008864d
GI
80.\" %ENDIF OS Linux
81.\" %IF OS Darwin
832b75ed
GG
82.IP \fBDARWIN\fP: 9
83Use the forms \fB/dev/disk[0\-9]\fP or equivalently \fBdisk[0\-9]\fP or equivalently
84\fB/dev/rdisk[0\-9]\fP. Long forms are also available: please use \'\-h\' to see some
85examples. Note that there is currently no Darwin SCSI support.
f4e463df
GI
86
87Use the OS X SAT SMART Driver to access SMART data on SAT capable USB and
88Firewire devices (see INSTALL file).
d008864d
GI
89.\" %ENDIF OS Darwin
90.\" %IF OS FreeBSD
832b75ed
GG
91.IP \fBFREEBSD\fP: 9
92Use the forms \fB"/dev/ad[0\-9]+"\fP for IDE/ATA
cfbba5b9 93devices and \fB"/dev/da[0\-9]+"\fP or \fB"/dev/pass[0\-9]+"\fP for SCSI devices.
ee38a438
GI
94For SATA devices on AHCI bus use \fB"/dev/ada[0\-9]+"\fP format. For HP Smart
95Array RAID controllers, use \fB"/dev/ciss[0\-9]"\fP (and see the \fB-d\fP option,
96below).
d008864d
GI
97.\" %ENDIF OS FreeBSD
98.\" %IF OS NetBSD OpenBSD
832b75ed
GG
99.IP \fBNETBSD/OPENBSD\fP: 9
100Use the form \fB"/dev/wd[0\-9]+c"\fP for IDE/ATA
101devices. For SCSI disk and tape devices, use the device names
102\fB"/dev/sd[0\-9]+c"\fP and \fB"/dev/st[0\-9]+c"\fP respectively.
103Be sure to specify the correct "whole disk" partition letter for
104your architecture.
d008864d
GI
105.\" %ENDIF OS NetBSD OpenBSD
106.\" %IF OS Solaris
832b75ed
GG
107.IP \fBSOLARIS\fP: 9
108Use the forms \fB"/dev/rdsk/c?t?d?s?"\fP for IDE/ATA and SCSI disk
109devices, and \fB"/dev/rmt/*"\fP for SCSI tape devices.
d008864d 110.\" %ENDIF OS Solaris
d008864d 111.\" %IF OS Windows Cygwin
ee38a438 112.IP \fBWINDOWS\fP: 9
a37e7145
GG
113Use the forms \fB"/dev/sd[a\-z]"\fP for IDE/(S)ATA and SCSI disks
114"\\\\.\\PhysicalDrive[0\-25]" (where "a" maps to "0").
ee38a438 115Use \fB"/dev/sd[a\-z][a\-z]"\fP for "\\\\.\\PhysicalDrive[26\-...]".
a37e7145
GG
116These disks can also be referred to as \fB"/dev/pd[0\-255]"\fP for
117"\\\\.\\PhysicalDrive[0\-255]".
118ATA disks can also be referred to as \fB"/dev/hd[a\-z]"\fP for
119"\\\\.\\PhysicalDrive[0\-25]".
120Use one the forms \fB"/dev/tape[0\-255]"\fP, \fB"/dev/st[0\-255]"\fP,
121or \fB"/dev/nst[0\-255]"\fP for SCSI tape drives "\\\\.\\Tape[0\-255]".
122
123Alternatively, drive letters \fB"X:"\fP or \fB"X:\\"\fP may be used to
2127e193
GI
124specify the (\'basic\') disk behind a mounted partition. This does
125not work with \'dynamic\' disks.
a37e7145
GG
126
127For disks behind 3ware 9000 controllers use \fB"/dev/sd[a\-z],N"\fP where
4d59bff9 128N specifies the disk number (3ware \'port\') behind the controller
a37e7145 129providing the logical drive (\'unit\') specified by \fB"/dev/sd[a\-z]"\fP.
9ebc753d
GG
130Alternatively, use \fB"/dev/tw_cli/cx/py"\fP for controller x, port y
131to run the \'tw_cli\' tool and parse the output. This provides limited
a37e7145 132monitoring (\'\-i\', \'\-c\', \'\-A\' below) if SMART support is missing
9ebc753d
GG
133in the driver. Use \fB"/dev/tw_cli/stdin"\fP or \fB"/dev/tw_cli/clip"\fP
134to parse CLI or 3DM output from standard input or clipboard.
a37e7145 135The option \'\-d 3ware,N\' is not necessary on Windows.
cfbba5b9 136
f4e463df
GI
137For disks behind an Intel ICHxR controller with RST driver use
138\fB"/dev/csmi[0\-9],N"\fP where N specifies the port behind the logical
139scsi controller "\\\\.\\Scsi[0\-9]:".
140
a86ec89e
GI
141For SATA or SAS disks behind an Areca controller use
142\fB"/dev/arcmsr[0\-9]"\fP, see \'\-d areca,N[/E]\' below.
17d0b8d9 143<<<<<<< HEAD
a86ec89e
GI
144
145[NEW EXPERIMENTAL SMARTCTL FEATURE]
146Use the forms \fB"/dev/nvme[0\-9]"\fP (broadcast namespace) or
147\fB"/dev/nvme[0\-9]n[1\-9]"\fP (specific namespace 1\-9) for first,
148second, ..., NVMe device.
149Alternatively use the forms \fB"/dev/nvmes[0\-9][n[1\-9]]"\fP for NVMe devices
150behind the logical scsi controller "\\\\.\\Scsi[0\-9]:".
17d0b8d9
GI
151=======
152>>>>>>> 3d8ad6fa4529eb02ae1391a1e937bf57aad3fb74
f4e463df 153
832b75ed 154The prefix \fB"/dev/"\fP is optional.
d008864d 155.\" %ENDIF OS Windows Cygwin
d008864d 156.\" %IF OS OS2
832b75ed
GG
157.IP \fBOS/2,eComStation\fP: 9
158Use the form \fB"/dev/hd[a\-z]"\fP for IDE/ATA devices.
d008864d 159.\" %ENDIF OS OS2
832b75ed 160.PP
a37e7145
GG
161if \'\-\' is specified as the device path, \fBsmartctl\fP reads and
162interprets it's own debug output from standard input.
163See \'\-r ataioctl\' below for details.
164.PP
832b75ed 165Based on the device path, \fBsmartctl\fP will guess the device type
ee38a438 166(ATA or SCSI). If necessary, the \'\-d\' option can be used to override
832b75ed
GG
167this guess
168
169Note that the printed output of \fBsmartctl\fP displays most numerical
170values in base 10 (decimal), but some values are displayed in base 16
4d59bff9 171(hexadecimal). To distinguish them, the base 16 values are always
832b75ed
GG
172displayed with a leading \fB"0x"\fP, for example: "0xff". This man
173page follows the same convention.
174
832b75ed 175.SH OPTIONS
832b75ed
GG
176The options are grouped below into several categories. \fBsmartctl\fP
177will execute the corresponding commands in the order: INFORMATION,
178ENABLE/DISABLE, DISPLAY DATA, RUN/ABORT TESTS.
179
832b75ed
GG
180.TP
181.B SHOW INFORMATION OPTIONS:
182.TP
183.B \-h, \-\-help, \-\-usage
184Prints a usage message to STDOUT and exits.
185.TP
186.B \-V, \-\-version, \-\-copyright, \-\-license
2127e193
GI
187Prints version, copyright, license, home page and SVN revision
188information for your copy of \fBsmartctl\fP to STDOUT and then exits.
189Please include this information if you are reporting bugs or problems.
832b75ed
GG
190.TP
191.B \-i, \-\-info
192Prints the device model number, serial number, firmware version, and
193ATA Standard version/revision information. Says if the device
194supports SMART, and if so, whether SMART support is currently enabled
195or disabled. If the device supports Logical Block Address mode (LBA
196mode) print current user drive capacity in bytes. (If drive is has a
197user protected area reserved, or is "clipped", this may be smaller
198than the potential maximum drive capacity.) Indicates if the drive is
199in the smartmontools database (see \'\-v\' options below). If so, the
4d59bff9
GG
200drive model family may also be printed. If \'\-n\' (see below) is
201specified, the power mode of the drive is printed.
a86ec89e
GI
202.\" %IF OS FreeBSD Linux Windows Cygwin
203
204[NVMe] [FreeBSD, Linux, Windows and Cygwin only]
205[NEW EXPERIMENTAL SMARTCTL FEATURE]
206For NVMe devices the information is obtained from the Identify Controller
207and the Identify Namespace data structure.
208.\" %ENDIF OS FreeBSD Linux Windows Cygwin
832b75ed 209.TP
ee38a438 210.B \-\-identify[=[w][nvb]]
d2e702cf 211[ATA only] Prints an annotated table of the IDENTIFY DEVICE data.
ee38a438
GI
212By default, only valid words (words not equal to 0x0000 or 0xffff)
213and nonzero bits and bit fields are printed.
214This can be changed by the optional argument which consists of one or
215two characters from the set \'wnvb\'.
216The character \'w\' enables printing of all 256 words. The character
217\'n\' suppresses printing of bits, \'v\' enables printing of all bits
218from valid words, \'b\' enables printing of all bits.
219For example \'\-\-identify=n\' (valid words, no bits) produces the
220shortest output and \'\-\-identify=wb\' (all words, all bits) produces
221the longest output.
222.TP
832b75ed
GG
223.B \-a, \-\-all
224Prints all SMART information about the disk, or TapeAlert information
225about the tape drive or changer. For ATA devices this is equivalent
226to
227.nf
a37e7145 228\'\-H \-i \-c \-A \-l error \-l selftest \-l selective\'
832b75ed
GG
229.fi
230and for SCSI, this is equivalent to
231.nf
232\'\-H \-i \-A \-l error \-l selftest\'.
233.fi
a86ec89e
GI
234.\" %IF OS FreeBSD Linux Windows Cygwin
235For NVMe, this is equivalent to
236.nf
237\'\-H \-i \-c \-A \-l error'.
238.fi
239.\" %ENDIF OS FreeBSD Linux Windows Cygwin
2127e193
GI
240Note that for ATA disks this does \fBnot\fP enable the non-SMART options
241and the SMART options which require support for 48-bit ATA commands.
242.TP
243.B \-x, \-\-xall
244Prints all SMART and non-SMART information about the device. For ATA
245devices this is equivalent to
246.nf
d008864d 247\'\-H \-i \-g all \-c \-A \-f brief \-l xerror,error \-l xselftest,selftest
ee38a438 248\-l selective \-l directory \-l scttemp \-l scterc \-l devstat \-l sataphy\'.
2127e193
GI
249.fi
250and for SCSI, this is equivalent to
251.nf
252\'\-H \-i \-A \-l error \-l selftest \-l background \-l sasphy\'.
253.fi
a86ec89e
GI
254.\" %IF OS FreeBSD Linux Windows Cygwin
255For NVMe, this is equivalent to
256.nf
257\'\-H \-i \-c \-A \-l error'.
258.fi
259.\" %ENDIF OS FreeBSD Linux Windows Cygwin
e9583e0c
GI
260.TP
261.B \-\-scan
262Scans for devices and prints each device name, device type and protocol
263([ATA] or [SCSI]) info. May be used in conjunction with \'\-d TYPE\'
264to restrict the scan to a specific TYPE. See also info about platform
265specific device scan and the \fBDEVICESCAN\fP directive on
266\fBsmartd\fP(8) man page.
267.TP
268.B \-\-scan\-open
269Same as \-\-scan, but also tries to open each device before printing
270device info. The device open may change the device type due
271to autodetection (see also \'\-d test\').
832b75ed 272
cfbba5b9
GI
273This option can be used to create a draft \fBsmartd.conf\fP file.
274All options after \'\-\-\' are appended to each output line.
275For example:
276.nf
ee38a438 277smartctl \-\-scan\-open \-\- \-a \-W 4,45,50 \-m admin@work > smartd.conf
cfbba5b9 278.fi
a86ec89e
GI
279
280[NEW EXPERIMENTAL SMARTCTL FEATURE]
281Multiple \'\-d TYPE\' options may be specified with \'\-\-scan[\-open]\'
282to combine the scan results of more than one TYPE.
d008864d
GI
283.TP
284.B \-g NAME, \-\-get=NAME
ee38a438 285Get non-SMART device settings. See \'\-s, \-\-set\' below for further info.
cfbba5b9 286
832b75ed 287.TP
ee38a438 288.B RUN-TIME BEHAVIOR OPTIONS:
832b75ed
GG
289.TP
290.B \-q TYPE, \-\-quietmode=TYPE
291Specifies that \fBsmartctl\fP should run in one of the two quiet modes
292described here. The valid arguments to this option are:
293
294.I errorsonly
295\- only print: For the \'\-l error\' option, if nonzero, the number
ee38a438 296of errors recorded in the SMART error log and the power-on time when
832b75ed 297they occurred; For the \'\-l selftest\' option, errors recorded in the device
ee38a438
GI
298self-test log; For the \'\-H\' option, SMART "disk failing" status or device
299Attributes (pre-failure or usage) which failed either now or in the
300past; For the \'\-A\' option, device Attributes (pre-failure or usage)
832b75ed
GG
301which failed either now or in the past.
302
303.I silent
304\- print no output. The only way to learn about what was found is to
a86ec89e 305use the exit status of \fBsmartctl\fP (see EXIT STATUS below).
a37e7145
GG
306
307.I noserial
308\- Do not print the serial number of the device.
832b75ed
GG
309.TP
310.B \-d TYPE, \-\-device=TYPE
cfbba5b9
GI
311Specifies the type of the device.
312The valid arguments to this option are:
4d59bff9 313
cfbba5b9 314.I auto
ee38a438 315\- attempt to guess the device type from the device name or from
cfbba5b9
GI
316controller type info provided by the operating system or from
317a matching USB ID entry in the drive database.
318This is the default.
319
320.I test
ee38a438 321\- prints the guessed type, then opens the device and prints the
cfbba5b9
GI
322(possibly changed) TYPE name and then exists without performing
323any further commands.
324
325.I ata
326\- the device type is ATA. This prevents
327\fBsmartctl\fP
328from issuing SCSI commands to an ATA device.
329
d008864d 330.\" %IF NOT OS Darwin
cfbba5b9
GI
331.I scsi
332\- the device type is SCSI. This prevents
333\fBsmartctl\fP
334from issuing ATA commands to a SCSI device.
335
a86ec89e
GI
336.\" %ENDIF NOT OS Darwin
337.\" %IF OS FreeBSD Linux Windows Cygwin
338.I nvme[,NSID]
339\- [FreeBSD, Linux, Windows and Cygwin only]
340[NEW EXPERIMENTAL SMARTCTL FEATURE]
341the device type is NVM Express (NVMe).
342The optional parameter NSID specifies the namespace id (in hex) passed
343to the driver.
344Use 0xffffffff for the broadcast namespace id.
345The default for NSID is the namespace id addressed by the device name.
346
347.\" %ENDIF OS FreeBSD Linux Windows Cygwin
348.\" %IF NOT OS Darwin
d008864d 349.I sat[,auto][,N]
cfbba5b9
GI
350\- the device type is SCSI to ATA Translation (SAT).
351This is for ATA disks that have a SCSI to ATA Translation (SAT) Layer
352(SATL) between the disk and the operating system.
4d59bff9 353SAT defines two ATA PASS THROUGH SCSI commands, one 12 bytes long and
cfbba5b9 354the other 16 bytes long. The default is the 16 byte variant which can be
4d59bff9 355overridden with either \'\-d sat,12\' or \'\-d sat,16\'.
832b75ed 356
ee38a438 357If \'\-d sat,auto\' is specified, device type SAT (for ATA/SATA disks) is
d008864d
GI
358only used if the SCSI INQUIRY data reports a SATL (VENDOR: "ATA ").
359Otherwise device type SCSI (for SCSI/SAS disks) is used.
360
cfbba5b9
GI
361.I usbcypress
362\- this device type is for ATA disks that are behind a Cypress USB to PATA
363bridge. This will use the ATACB proprietary scsi pass through command.
364The default SCSI operation code is 0x24, but although it can be overridden
365with \'\-d usbcypress,0xN\', where N is the scsi operation code,
2127e193
GI
366you're running the risk of damage to the device or filesystems on it.
367
ee38a438
GI
368.I usbjmicron[,p][,x][,PORT]
369\- this device type is for SATA disks that are behind a JMicron USB to
cfbba5b9
GI
370PATA/SATA bridge. The 48-bit ATA commands (required e.g. for \'\-l xerror\',
371see below) do not work with all of these bridges and are therefore disabled by
372default. These commands can be enabled by \'\-d usbjmicron,x\'.
373If two disks are connected to a bridge with two ports, an error message is printed
374if no PORT is specified.
375The port can be specified by \'\-d usbjmicron[,x],PORT\' where PORT is 0
376(master) or 1 (slave). This is not necessary if the device uses a port
377multiplier to connect multiple disks to one port. The disks appear under
378separate /dev/ice names then.
379CAUTION: Specifying \',x\' for a device which does not support it results
380in I/O errors and may disconnect the drive. The same applies if the specified
381PORT does not exist or is not connected to a disk.
382
ee38a438
GI
383The Prolific PL2507/3507 USB bridges with older firmware support a pass-through
384command similar to JMicron and work with \'\-d usbjmicron,0\'.
385Newer Prolific firmware requires a modified command which can be selected by
386\'\-d usbjmicron,p\'.
387Note that this does not yet support the SMART status command.
388
a86ec89e
GI
389.I usbprolific
390\- [NEW EXPERIMENTAL SMARTCTL FEATURE]
391this device type is for SATA disks that are behind a Prolific PL2571/2771/2773/2775
392USB to SATA bridge.
393
cfbba5b9
GI
394.I usbsunplus
395\- this device type is for SATA disks that are behind a SunplusIT USB to SATA
396bridge.
397
d008864d
GI
398.\" %ENDIF NOT OS Darwin
399.\" %IF OS Linux
cfbba5b9
GI
400.I marvell
401\- [Linux only] interact with SATA disks behind Marvell chip-set
402controllers (using the Marvell rather than libata driver).
403
404.I megaraid,N
405\- [Linux only] the device consists of one or more SCSI/SAS disks connected
406to a MegaRAID controller. The non-negative integer N (in the range of 0 to
407127 inclusive) denotes which disk on the controller is monitored.
408Use syntax such as:
2127e193
GI
409.nf
410\fBsmartctl \-a \-d megaraid,2 /dev/sda\fP
411.fi
412.nf
413\fBsmartctl \-a \-d megaraid,0 /dev/sdb\fP
414.fi
ee38a438
GI
415.nf
416\fBsmartctl \-a \-d megaraid,0 /dev/bus/0\fP
417.fi
cfbba5b9 418This interface will also work for Dell PERC controllers.
ee38a438
GI
419It is possible to set RAID device name as /dev/bus/N, where N is a SCSI bus
420number.
421
422The following entry in /proc/devices must exist:
d2e702cf 423.br
ee38a438 424For PERC2/3/4 controllers: \fBmegadevN\fP
d2e702cf 425.br
ee38a438 426For PERC5/6 controllers: \fBmegaraid_sas_ioctlN\fP
2127e193 427
a86ec89e
GI
428.\" %ENDIF OS Linux
429.\" %IF OS Linux Windows Cygwin
d2e702cf 430.I aacraid,H,L,ID
a86ec89e 431\- [Linux, Windows and Cygwin only] [NEW EXPERIMENTAL SMARTCTL FEATURE]
d2e702cf
GI
432the device consists of one or more SCSI/SAS disks connected to an AacRaid controller.
433The non-negative integers H,L,ID (Host number, Lun, ID) denote which disk
434on the controller is monitored.
435Use syntax such as:
436.nf
a86ec89e 437\fBsmartctl \-a \-d aacraid,0,0,2 /dev/sda\fP
d2e702cf
GI
438.fi
439.nf
a86ec89e 440\fBsmartctl \-a \-d aacraid,1,0,4 /dev/sdb\fP
d2e702cf 441.fi
d2e702cf 442
a86ec89e
GI
443.\" %ENDIF OS Linux Windows Cygwin
444.\" %IF OS Linux
445On Linux, the following entry in /proc/devices must exist: \fBaac\fP.
d2e702cf
GI
446Character device nodes /dev/aacH (H=Host number) are created if required.
447
d008864d 448.\" %ENDIF OS Linux
a86ec89e
GI
449.\" %IF OS Windows Cygwin
450On Windows, the device name parameter /dev/sdX is ignored if \'-d aacraid\'
451is specified.
452
453.\" %ENDIF OS Windows Cygwin
d008864d 454.\" %IF OS FreeBSD Linux
cfbba5b9
GI
455.I 3ware,N
456\- [FreeBSD and Linux only] the device consists of one or more ATA disks
457connected to a 3ware RAID controller. The non-negative integer N
458(in the range from 0 to 127 inclusive) denotes which disk on the controller
459is monitored.
460Use syntax such as:
832b75ed 461.nf
ee38a438 462\fBsmartctl \-a \-d 3ware,2 /dev/sda\fP [Linux only]
832b75ed
GG
463.fi
464.nf
465\fBsmartctl \-a \-d 3ware,0 /dev/twe0\fP
466.fi
467.nf
468\fBsmartctl \-a \-d 3ware,1 /dev/twa0\fP
469.fi
cfbba5b9 470.nf
ee38a438
GI
471\fBsmartctl \-a \-d 3ware,1 /dev/twl0\fP [Linux only]
472.fi
473.nf
474\fBsmartctl \-a \-d 3ware,1 /dev/tws0\fP [FreeBSD only]
cfbba5b9
GI
475.fi
476The first two forms, which refer to devices /dev/sda\-z and /dev/twe0\-15,
477may be used with 3ware series 6000, 7000, and 8000 series controllers
ee38a438 478that use the 3x-xxxx driver.
cfbba5b9
GI
479\fBNote that the /dev/sda\-z form is deprecated\fP starting with
480the Linux 2.6 kernel series and may not be supported by the Linux
481kernel in the near future. The final form, which refers to devices
a37e7145
GG
482/dev/twa0\-15, must be used with 3ware 9000 series controllers, which
483use the 3w\-9xxx driver.
832b75ed 484
ee38a438 485The devices /dev/twl0\-15 [Linux] or /dev/tws0\-15 [FreeBSD] must be used with the 3ware/LSI 9750 series
cfbba5b9
GI
486controllers which use the 3w-sas driver.
487
ee38a438 488Note that if the special character device nodes /dev/tw[ls]?, /dev/twa?
cfbba5b9 489and /dev/twe? do not exist, or exist with the incorrect major or minor
832b75ed 490numbers, smartctl will recreate them on the fly. Typically /dev/twa0
ee38a438 491refers to the first 9000-series controller, /dev/twa1 refers to the
cfbba5b9
GI
492second 9000 series controller, and so on. The /dev/twl0 devices refers
493to the first 9750 series controller, /dev/twl1 resfers to the second
4949750 series controller, and so on. Likewise /dev/twe0 refers to
ee38a438 495the first 6/7/8000-series controller, /dev/twe1 refers to the second
832b75ed
GG
4966/7/8000 series controller, and so on.
497
498Note that for the 6/7/8000 controllers, \fBany\fP of the physical
499disks can be queried or examined using \fBany\fP of the 3ware's SCSI
500logical device /dev/sd? entries. Thus, if logical device /dev/sda is
501made up of two physical disks (3ware ports zero and one) and logical
502device /dev/sdb is made up of two other physical disks (3ware ports
503two and three) then you can examine the SMART data on \fBany\fP of the
504four physical disks using \fBeither\fP SCSI device /dev/sda \fBor\fP
505/dev/sdb. If you need to know which logical SCSI device a particular
506physical disk (3ware port) is associated with, use the dmesg or SYSLOG
507output to show which SCSI ID corresponds to a particular 3ware unit,
508and then use the 3ware CLI or 3dm tool to determine which ports
509(physical disks) correspond to particular 3ware units.
510
511If the value of N corresponds to a port that does \fBnot\fP exist on
512the 3ware controller, or to a port that does not physically have a
513disk attached to it, the behavior of \fBsmartctl\fP depends upon the
514specific controller model, firmware, Linux kernel and platform. In
515some cases you will get a warning message that the device does not
cfbba5b9 516exist. In other cases you will be presented with \'void\' data for a
ee38a438 517non-existent device.
832b75ed 518
ee38a438 519Note that if the /dev/sd? addressing form is used, then older 3w-xxxx
832b75ed
GG
520drivers do not pass the "Enable Autosave"
521(\'\fB\-S on\fP\') and "Enable Automatic Offline" (\'\fB\-o on\fP\')
522commands to the disk, and produce these types of harmless syslog error
ee38a438 523messages instead: "\fB3w-xxxx: tw_ioctl(): Passthru size (123392) too
cfbba5b9 524big\fP". This can be fixed by upgrading to version 1.02.00.037 or
ee38a438 525later of the 3w-xxxx driver, or by applying a patch to older
cfbba5b9 526versions. Alternatively, use the character device /dev/twe0\-15 interface.
832b75ed 527
ee38a438
GI
528The selective self-test functions (\'\-t select,A\-B\') are only supported
529using the character device interface /dev/twl0\-15, /dev/tws0\-15, /dev/twa0\-15 and /dev/twe0\-15.
832b75ed
GG
530The necessary WRITE LOG commands can not be passed through the SCSI
531interface.
532
d008864d 533.\" %ENDIF OS FreeBSD Linux
f4e463df 534.\" %IF OS FreeBSD Linux Windows Cygwin
cfbba5b9 535.I areca,N
f4e463df
GI
536\- [FreeBSD, Linux, Windows and Cygwin only] the device consists of one or more SATA disks
537connected to an Areca SATA RAID controller. The positive integer N (in the range
538from 1 to 24 inclusive) denotes which disk on the controller is monitored.
539.\" %ENDIF OS FreeBSD Linux Windows Cygwin
d008864d
GI
540.\" %IF OS Linux
541On Linux use syntax such as:
2127e193
GI
542.nf
543\fBsmartctl \-a \-d areca,2 /dev/sg2\fP
544.fi
545.nf
546\fBsmartctl \-a \-d areca,3 /dev/sg3\fP
547.fi
d008864d
GI
548.\" %ENDIF OS Linux
549.\" %IF OS FreeBSD
550On FreeBSD use syntax such as:
551.nf
552\fBsmartctl \-a \-d areca,2 /dev/arcmsr1\fP
553.fi
554.nf
555\fBsmartctl \-a \-d areca,3 /dev/arcmsr2\fP
556.fi
557.\" %ENDIF OS FreeBSD
f4e463df 558.\" %IF OS Windows Cygwin
a86ec89e 559On Windows and Cygwin use syntax such as:
f4e463df
GI
560.nf
561\fBsmartctl \-a \-d areca,2 /dev/arcmsr0\fP
562.fi
563.nf
564\fBsmartctl \-a \-d areca,3 /dev/arcmsr1\fP
565.fi
566.\" %ENDIF OS Windows Cygwin
567.\" %IF OS FreeBSD Linux Windows Cygwin
cfbba5b9
GI
568The first line above addresses the second disk on the first Areca RAID controller.
569The second line addresses the third disk on the second Areca RAID
d008864d 570controller.
f4e463df 571.\" %ENDIF OS FreeBSD Linux Windows Cygwin
d008864d 572.\" %IF OS Linux
f4e463df 573To help identify the correct device on Linux, use the command:
2127e193
GI
574.nf
575\fBcat /proc/scsi/sg/device_hdr /proc/scsi/sg/devices\fP
576.fi
577to show the SCSI generic devices (one per line, starting with
cfbba5b9 578/dev/sg0). The correct SCSI generic devices to address for
2127e193
GI
579smartmontools are the ones with the type field equal to 3. If the
580incorrect device is addressed, please read the warning/error messages
581carefully. They should provide hints about what devices to use.
d008864d 582.\" %ENDIF OS Linux
f4e463df 583.\" %IF OS FreeBSD Linux Windows Cygwin
2127e193
GI
584
585Important: the Areca controller must have firmware version 1.46 or
cfbba5b9 586later. Lower-numbered firmware versions will give (harmless) SCSI
2127e193 587error messages and no SMART information.
4d59bff9 588
f4e463df 589.I areca,N/E
a86ec89e
GI
590\- [FreeBSD, Linux, Windows and Cygwin only] the device consists of one
591or more SATA or SAS disks connected to an Areca SAS RAID controller.
f4e463df
GI
592The integer N (range 1 to 128) denotes the channel (slot) and E (range
5931 to 8) denotes the enclosure.
ee38a438 594Important: This requires Areca SAS controller firmware version 1.51 or later.
f4e463df
GI
595
596.\" %ENDIF OS FreeBSD Linux Windows Cygwin
d008864d 597.\" %IF OS FreeBSD Linux
cfbba5b9 598.I cciss,N
ee38a438 599\- [FreeBSD and Linux only] the device consists of one or more SCSI/SAS or SATA disks
cfbba5b9
GI
600connected to a cciss RAID controller. The non-negative integer N (in the range
601from 0 to 15 inclusive) denotes which disk on the controller is monitored.
602
ee38a438
GI
603To look at disks behind HP Smart Array controllers, use syntax
604such as:
605.\" %ENDIF OS FreeBSD Linux
606.\" %IF OS Linux
607.nf
608\fBsmartctl \-a \-d cciss,0 /dev/cciss/c0d0\fP (cciss driver under Linux)
609.fi
610.nf
611\fBsmartctl \-a \-d cciss,0 /dev/sg2\fP (hpsa or hpahcisr drivers under Linux)
612.fi
613.\" %ENDIF OS Linux
614.\" %IF OS FreeBSD
615.nf
616\fBsmartctl \-a \-d cciss,0 /dev/ciss0\fP (under FreeBSD)
617.fi
618.\" %ENDIF OS FreeBSD
619.\" %IF OS FreeBSD Linux
cfbba5b9
GI
620
621.I hpt,L/M/N
622\- [FreeBSD and Linux only] the device consists of one or more ATA disks
623connected to a HighPoint RocketRAID controller. The integer L is the
624controller id, the integer M is the channel number, and the integer N
625is the PMPort number if it is available. The allowed values of L are
3d17a85c 626from 1 to 4 inclusive, M are from 1 to 128 inclusive and N from 1 to 4
cfbba5b9
GI
627if PMPort available. And also these values are limited by the model
628of the HighPoint RocketRAID controller.
629Use syntax such as:
d008864d
GI
630.\" %ENDIF OS FreeBSD Linux
631.\" %IF OS Linux
4d59bff9 632.nf
2127e193
GI
633\fBsmartctl \-a \-d hpt,1/3 /dev/sda\fP (under Linux)
634.fi
635.nf
636\fBsmartctl \-a \-d hpt,1/2/3 /dev/sda\fP (under Linux)
4d59bff9 637.fi
d008864d
GI
638.\" %ENDIF OS Linux
639.\" %IF OS FreeBSD
4d59bff9 640.nf
2127e193
GI
641\fBsmartctl \-a \-d hpt,1/3 /dev/hptrr\fP (under FreeBSD)
642.fi
643.nf
644\fBsmartctl \-a \-d hpt,1/2/3 /dev/hptrr\fP (under FreeBSD)
4d59bff9 645.fi
d008864d
GI
646.\" %ENDIF OS FreeBSD
647.\" %IF OS FreeBSD Linux
a37e7145 648Note that the /dev/sda\-z form should be the device node which stands for
2127e193
GI
649the disks derived from the HighPoint RocketRAID controllers under Linux and
650under FreeBSD, it is the character device which the driver registered (eg,
cfbba5b9 651/dev/hptrr, /dev/hptmv6).
d008864d 652.\" %ENDIF OS FreeBSD Linux
832b75ed
GG
653.TP
654.B \-T TYPE, \-\-tolerance=TYPE
2127e193
GI
655[ATA only] Specifies how tolerant \fBsmartctl\fP should be of ATA and SMART
656command failures.
832b75ed
GG
657
658The behavior of \fBsmartctl\fP depends upon whether the command is
659"\fBoptional\fP" or "\fBmandatory\fP". Here "\fBmandatory\fP" means
ee38a438 660"required by the ATA Specification if the device implements
832b75ed 661the SMART command set" and "\fBoptional\fP" means "not required by the
ee38a438 662ATA Specification even if the device implements the SMART
832b75ed
GG
663command set." The "\fBmandatory\fP" ATA and SMART commands are: (1)
664ATA IDENTIFY DEVICE, (2) SMART ENABLE/DISABLE ATTRIBUTE AUTOSAVE, (3)
665SMART ENABLE/DISABLE, and (4) SMART RETURN STATUS.
666
667The valid arguments to this option are:
668
669.I normal
670\- exit on failure of any \fBmandatory\fP SMART command, and ignore
671all failures of \fBoptional\fP SMART commands. This is the default.
672Note that on some devices, issuing unimplemented optional SMART
673commands doesn\'t cause an error. This can result in misleading
674\fBsmartctl\fP messages such as "Feature X not implemented", followed
675shortly by "Feature X: enabled". In most such cases, contrary to the
676final message, Feature X is \fBnot\fP enabled.
677
678.I conservative
679\- exit on failure of any \fBoptional\fP SMART command.
680
681.I permissive
682\- ignore failure(s) of \fBmandatory\fP SMART commands. This option
683may be given more than once. Each additional use of this option will
684cause one more additional failure to be ignored. Note that the use of
ee38a438
GI
685this option can lead to messages like "Feature X not supported",
686followed shortly by "Feature X enable failed". In a few
832b75ed
GG
687such cases, contrary to the final message, Feature X \fBis\fP enabled.
688
689.I verypermissive
690\- equivalent to giving a large number of \'\-T permissive\' options:
691ignore failures of \fBany number\fP of \fBmandatory\fP SMART commands.
692Please see the note above.
832b75ed
GG
693.TP
694.B \-b TYPE, \-\-badsum=TYPE
2127e193
GI
695[ATA only] Specifies the action \fBsmartctl\fP should take if a checksum
696error is detected in the: (1) Device Identity Structure, (2) SMART
ee38a438 697Self-Test Log Structure, (3) SMART Attribute Value Structure, (4) SMART
832b75ed
GG
698Attribute Threshold Structure, or (5) ATA Error Log Structure.
699
700The valid arguments to this option are:
701
702.I warn
703\- report the incorrect checksum but carry on in spite of it. This is the
704default.
705
706.I exit
707\- exit \fBsmartctl\fP.
708
709.I ignore
710\- continue silently without issuing a warning.
832b75ed
GG
711.TP
712.B \-r TYPE, \-\-report=TYPE
713Intended primarily to help \fBsmartmontools\fP developers understand
ee38a438 714the behavior of \fBsmartmontools\fP on non-conforming or poorly
832b75ed
GG
715conforming hardware. This option reports details of \fBsmartctl\fP
716transactions with the device. The option can be used multiple times.
717When used just once, it shows a record of the ioctl() transactions
718with the device. When used more than once, the detail of these
719ioctl() transactions are reported in greater detail. The valid
720arguments to this option are:
721
722.I ioctl
723\- report all ioctl() transactions.
724
725.I ataioctl
726\- report only ioctl() transactions with ATA devices.
727
728.I scsiioctl
729\- report only ioctl() transactions with SCSI devices. Invoking this once
730shows the SCSI commands in hex and the corresponding status. Invoking
731it a second time adds a hex listing of the first 64 bytes of data send to,
732or received from the device.
733
a86ec89e
GI
734.\" %IF OS FreeBSD Linux Windows Cygwin
735.I nvmeioctl
736\- [FreeBSD, Linux, Windows and Cygwin only]
737[NEW EXPERIMENTAL SMARTCTL FEATURE]
738report only ioctl() transactions with NVMe devices.
739
740.\" %ENDIF OS FreeBSD Linux Windows Cygwin
832b75ed
GG
741Any argument may include a positive integer to specify the level of detail
742that should be reported. The argument should be followed by a comma then
743the integer with no spaces. For example,
744.I ataioctl,2
745The default
746level is 1, so \'\-r ataioctl,1\' and \'\-r ataioctl\' are equivalent.
747
a37e7145
GG
748For testing purposes, the output of \'\-r ataioctl,2\' can later be parsed
749by \fBsmartctl\fP itself if \'\-\' is used as device path argument.
750The ATA command input parameters, sector data and return values are
751reconstructed from the debug report read from stdin.
752Then \fBsmartctl\fP internally simulates an ATA device with the same
753behaviour. This is does not work for SCSI devices yet.
4d59bff9
GG
754.TP
755.B \-n POWERMODE, \-\-nocheck=POWERMODE
2127e193 756[ATA only] Specifies if \fBsmartctl\fP should exit before performing any
ee38a438
GI
757checks when the device is in a low-power mode. It may be used to prevent
758a disk from being spun-up by \fBsmartctl\fP. The power mode is ignored by
cfbba5b9 759default. A nonzero exit status is returned if the device is in one of the
a86ec89e 760specified low-power modes (see EXIT STATUS below).
cfbba5b9
GI
761
762Note: If this option is used it may also be necessary to specify the device
ee38a438 763type with the \'\-d\' option. Otherwise the device may spin up due to
cfbba5b9
GI
764commands issued during device type autodetection.
765
766The valid arguments to this option are:
4d59bff9
GG
767
768.I never
769\- check the device always, but print the power mode if \'\-i\' is
770specified.
771
772.I sleep
773\- check the device unless it is in SLEEP mode.
774
775.I standby
776\- check the device unless it is in SLEEP or STANDBY mode. In
777these modes most disks are not spinning, so if you want to prevent
778a disk from spinning up, this is probably what you want.
779
780.I idle
781\- check the device unless it is in SLEEP, STANDBY or IDLE mode.
782In the IDLE state, most disks are still spinning, so this is probably
783not what you want.
784
832b75ed
GG
785.TP
786.B SMART FEATURE ENABLE/DISABLE COMMANDS:
787.IP
788.B Note:
789if multiple options are used to both enable and disable a
790feature, then
791.B both
792the enable and disable commands will be issued. The enable command
793will always be issued
794.B before
795the corresponding disable command.
796.TP
797.B \-s VALUE, \-\-smart=VALUE
798Enables or disables SMART on device. The valid arguments to
799this option are \fIon\fP and \fIoff\fP. Note that the command \'\-s on\'
2127e193 800(perhaps used with with the \'\-o on\' and \'\-S on\' options) should be
ee38a438 801placed in a start-up script for your machine, for example in rc.local or
2127e193 802rc.sysinit. In principle the SMART feature settings are preserved over
ee38a438 803power-cycling, but it doesn\'t hurt to be sure. It is not necessary (or
832b75ed
GG
804useful) to enable SMART to see the TapeAlert messages.
805.TP
806.B \-o VALUE, \-\-offlineauto=VALUE
2127e193
GI
807[ATA only] Enables or disables SMART automatic offline test, which scans the
808drive every four hours for disk defects. This command can be given during
809normal system operation. The valid arguments to this option are \fIon\fP
832b75ed
GG
810and \fIoff\fP.
811
812Note that the SMART automatic offline test command is listed as
813"Obsolete" in every version of the ATA and ATA/ATAPI Specifications.
ee38a438 814It was originally part of the SFF-8035i Revision 2.0 specification,
832b75ed 815but was never part of any ATA specification. However it is
d2e702cf 816implemented and used by many vendors.
832b75ed
GG
817You can tell if automatic offline testing is supported by seeing if
818this command enables and disables it, as indicated by the \'Auto
819Offline Data Collection\' part of the SMART capabilities report
820(displayed with \'\-c\').
821
822SMART provides \fBthree\fP basic categories of testing. The
823\fBfirst\fP category, called "online" testing, has no effect on the
824performance of the device. It is turned on by the \'\-s on\' option.
825
826The \fBsecond\fP category of testing is called "offline" testing. This
827type of test can, in principle, degrade the device performance. The
828\'\-o on\' option causes this offline testing to be carried out,
829automatically, on a regular scheduled basis. Normally, the disk will
830suspend offline testing while disk accesses are taking place, and then
831automatically resume it when the disk would otherwise be idle, so in
ee38a438 832practice it has little effect. Note that a one-time offline test can
832b75ed 833also be carried out immediately upon receipt of a user command. See
ee38a438 834the \'\-t offline\' option below, which causes a one-time offline test
832b75ed
GG
835to be carried out immediately.
836
ee38a438 837The choice (made by the SFF-8035i and ATA specification authors) of
832b75ed
GG
838the word \fItesting\fP for these first two categories is unfortunate,
839and often leads to confusion. In fact these first two categories of
840online and offline testing could have been more accurately described
841as online and offline \fBdata collection\fP.
842
843The results of this automatic or immediate offline testing (data
844collection) are reflected in the values of the SMART Attributes.
845Thus, if problems or errors are detected, the values of these
846Attributes will go below their failure thresholds; some types of
847errors may also appear in the SMART error log. These are visible with
848the \'\-A\' and \'\-l error\' options respectively.
849
ee38a438 850Some SMART attribute values are updated only during off-line data
832b75ed 851collection activities; the rest are updated during normal operation of
ee38a438 852the device or during both normal operation and off-line testing. The
832b75ed
GG
853Attribute value table produced by the \'\-A\' option indicates this in
854the UPDATED column. Attributes of the first type are labeled
855"Offline" and Attributes of the second type are labeled "Always".
856
857The \fBthird\fP category of testing (and the \fIonly\fP category for
858which the word \'testing\' is really an appropriate choice) is "self"
859testing. This third type of test is only performed (immediately) when
860a command to run it is issued. The \'\-t\' and \'\-X\' options can be
ee38a438 861used to carry out and abort such self-tests; please see below for
832b75ed
GG
862further details.
863
864Any errors detected in the self testing will be shown in the
ee38a438 865SMART self-test log, which can be examined using the \'\-l selftest\'
832b75ed
GG
866option.
867
868\fBNote:\fP in this manual page, the word \fB"Test"\fP is used in
869connection with the second category just described, e.g. for the
ee38a438 870"offline" testing. The words \fB"Self-test"\fP are used in
832b75ed
GG
871connection with the third category.
872.TP
873.B \-S VALUE, \-\-saveauto=VALUE
ee38a438 874[ATA] Enables or disables SMART autosave of device vendor-specific
832b75ed
GG
875Attributes. The valid arguments to this option are \fIon\fP
876and \fIoff\fP. Note that this feature is preserved across disk power
877cycles, so you should only need to issue it once.
878
e9583e0c
GI
879The ATA standard does not specify a method to check whether SMART
880autosave is enabled. Unlike SCSI (below), smartctl is unable to print
881a warning if autosave is disabled.
882
883[SCSI] For SCSI devices this toggles the value of the Global Logging
884Target Save Disabled (GLTSD) bit in the Control Mode Page. Some disk
832b75ed 885manufacturers set this bit by default. This prevents error counters,
ee38a438 886power-up hours and other useful data from being placed in non-volatile
832b75ed 887storage, so these values may be reset to zero the next time the device
ee38a438 888is power-cycled. If the GLTSD bit is set then \'smartctl \-a\' will
832b75ed 889issue a warning. Use \fIon\fP to clear the GLTSD bit and thus enable
ee38a438 890saving counters to non-volatile storage. For extreme streaming-video
832b75ed
GG
891type applications you might consider using \fIoff\fP to set the GLTSD
892bit.
d008864d
GI
893.TP
894.B \-g NAME, \-\-get=NAME, \-s NAME[,VALUE], \-\-set=NAME[,VALUE]
ee38a438 895Gets/sets non-SMART device settings.
d008864d
GI
896Note that the \'\-\-set\' option shares its short option \'\-s\' with
897\'\-\-smart\'. Valid arguments are:
898
899.I all
900\- Gets all values. This is equivalent to
901.nf
902\'-g aam -g apm -g lookahead -g security -g wcache\'
903.fi
904
905.I aam[,N|off]
906\- [ATA only] Gets/sets the Automatic Acoustic Management (AAM) feature
907(if supported). A value of 128 sets the most quiet (slowest) mode and 254
908the fastest (loudest) mode, \'off\' disables AAM. Devices may support
909intermediate levels. Values below 128 are defined as vendor specific (0)
ee38a438 910or retired (1 to 127). Note that the AAM feature was declared obsolete in
d008864d
GI
911ATA ACS-2 Revision 4a (Dec 2010).
912
913.I apm[,N|off]
914\- [ATA only] Gets/sets the Advanced Power Management (APM) feature on
915device (if supported). If a value between 1 and 254 is provided, it will
916attempt to enable APM and set the specified value, \'off\' disables APM.
917Note the actual behavior depends on the drive, for example some drives disable
918APM if their value is set above 128. Values below 128 are supposed to allow
919drive spindown, values 128 and above adjust only head-parking frequency,
920although the actual behavior defined is also vendor-specific.
921
922.I lookahead[,on|off]
923\- [ATA only] Gets/sets the read look-ahead feature (if supported).
924Read look-ahead is usually enabled by default.
925
926.I security
927\- [ATA only] Gets the status of ATA Security feature (if supported).
928If ATA Security is enabled an ATA user password is set. The drive will be
929locked on next reset then.
930
931.I security-freeze
932\- [ATA only] Sets ATA Security feature to frozen mode. This prevents that
933the drive accepts any security commands until next reset. Note that the
934frozen mode may already be set by BIOS or OS.
935
936.I standby,[N|off]
937\- [ATA only] Sets the standby (spindown) timer and places the drive in the
938IDLE mode. A value of 0 or \'off\' disables the standby timer.
939Values from 1 to 240 specify timeouts from 5 seconds to 20 minutes in 5
940second increments. Values from 241 to 251 specify timeouts from 30 minutes
941to 330 minutes in 30 minute increments. Value 252 specifies 21 minutes.
942Value 253 specifies a vendor specific time between 8 and 12 hours. Value
943255 specifies 21 minutes and 15 seconds. Some drives may use a vendor
944specific interpretation for the values. Note that there is no get option
945because ATA standards do not specify a method to read the standby timer.
946
947.I standby,now
948\- [ATA only] Places the drive in the STANDBY mode. This usually spins down
949the drive. The setting of the standby timer is not affected.
950
951.I wcache[,on|off]
ee38a438 952\- [ATA] Gets/sets the volatile write cache feature (if supported).
d008864d 953The write cache is usually enabled by default.
832b75ed 954
ee38a438 955.I wcache[,on|off]
a86ec89e 956\- [SCSI] Gets/sets the \'Write Cache Enable\' (WCE) bit (if supported).
ee38a438
GI
957The write cache is usually enabled by default.
958
3d17a85c 959.I wcreorder[,on|off]
a86ec89e 960\- [ATA only] Gets/sets Write Cache Reordering.
3d17a85c
GI
961If it is disabled (off), disk write scheduling is executed on a
962first-in-first-out (FIFO) basis. If Write Cache Reordering is enabled (on),
963then disk write scheduling may be reordered by the drive. If write cache is
964disabled, the current Write Cache Reordering state is remembered but has
965no effect on non-cached writes, which are always written in the order received.
966The state of Write Cache Reordering has no effect on either NCQ or LCQ queued
967commands.
968
ee38a438 969.I rcache[,on|off]
a86ec89e
GI
970\- [SCSI only] Gets/sets the \'Read Cache Disable\' (RCE) bit.
971\'Off\' value disables read cache (if supported).
ee38a438
GI
972The read cache is usually enabled by default.
973
832b75ed
GG
974.TP
975.B SMART READ AND DISPLAY DATA OPTIONS:
976.TP
977.B \-H, \-\-health
a86ec89e 978Prints the health status of the device or pending TapeAlert messages.
832b75ed
GG
979
980If the device reports failing health status, this means
981.B either
982that the device has already failed,
983.B or
984that it is predicting its own failure within the next 24 hours. If
985this happens, use the \'\-a\' option to get more information, and
1953ff6d 986.B get your data off the disk and to someplace safe as soon as you can.
a86ec89e
GI
987
988[ATA] Health status is obtained by checking the (boolean) result returned
989by the SMART RETURN STATUS command.
990The return value of this ATA command may be unknown due to limitations or
991bugs in some layer (e.g. RAID controller or USB bridge firmware) between
992disk and operating system.
993In this case, \fBsmartctl\fP prints a warning and checks whether any
994Prefailure SMART Attribute value is less than or equal to its threshold
995(see \'\-A\' below).
996
997[SCSI] Health status is obtained by checking the Additional Sense Code
998(ASC) and Additional Sense Code Qualifier (ASCQ) from Informal Exceptions
999(IE) log page (if supported) and/or from SCSI sense data.
1000
1001[SCSI tape drive or changer] TapeAlert status is obtained by reading the
1002TapeAlert log page.
1003Please note that the TapeAlert log page flags are cleared for the initiator
1004when the page is read.
1005This means that each alert condition is reported only once by \fBsmartctl\fP
1006for each initiator for each activation of the condition.
17d0b8d9 1007<<<<<<< HEAD
a86ec89e
GI
1008.\" %IF OS FreeBSD Linux Windows Cygwin
1009
1010[NVMe] [FreeBSD, Linux, Windows and Cygwin only]
1011[NEW EXPERIMENTAL SMARTCTL FEATURE]
1012NVMe status is obtained by reading the "Critical Warning" byte from
1013the SMART/Health Information log.
1014.\" %ENDIF OS FreeBSD Linux Windows Cygwin
17d0b8d9
GI
1015=======
1016>>>>>>> 3d8ad6fa4529eb02ae1391a1e937bf57aad3fb74
832b75ed
GG
1017.TP
1018.B \-c, \-\-capabilities
a86ec89e 1019[ATA] Prints only the generic SMART capabilities. These
2127e193 1020show what SMART features are implemented and how the device will
832b75ed
GG
1021respond to some of the different SMART commands. For example it
1022shows if the device logs errors, if it supports offline surface
ee38a438 1023scanning, and so on. If the device can carry out self-tests, this
832b75ed
GG
1024option also shows the estimated time required to run those tests.
1025
ee38a438 1026Note that the time required to run the Self-tests (listed in minutes)
832b75ed
GG
1027are fixed. However the time required to run the Immediate Offline
1028Test (listed in seconds) is variable. This means that if you issue a
1029command to perform an Immediate Offline test with the \'\-t offline\' option,
1030then the time may jump to a larger value and then count down as the
1031Immediate Offline Test is carried out. Please see REFERENCES below
1032for further information about the the flags and capabilities described
1033by this option.
a86ec89e
GI
1034.\" %IF OS FreeBSD Linux Windows Cygwin
1035
1036[NVMe] [FreeBSD, Linux, Windows and Cygwin only]
1037[NEW EXPERIMENTAL SMARTCTL FEATURE]
1038Prints various NVMe device capabilities obtained from the Identify Controller
1039and the Identify Namespace data structure.
1040.\" %ENDIF OS FreeBSD Linux Windows Cygwin
832b75ed
GG
1041.TP
1042.B \-A, \-\-attributes
2127e193
GI
1043[ATA] Prints only the vendor specific SMART Attributes. The Attributes
1044are numbered from 1 to 253 and have specific names and ID numbers. For
832b75ed
GG
1045example Attribute 12 is "power cycle count": how many times has the
1046disk been powered up.
1047
1048Each Attribute has a "Raw" value, printed under the heading
1049"RAW_VALUE", and a "Normalized" value printed under the heading
ee38a438 1050"VALUE". [Note: \fBsmartctl\fP prints these values in base-10.] In
832b75ed 1051the example just given, the "Raw Value" for Attribute 12 would be the
ee38a438 1052actual number of times that the disk has been power-cycled, for
832b75ed
GG
1053example 365 if the disk has been turned on once per day for exactly
1054one year. Each vendor uses their own algorithm to convert this "Raw"
1055value to a "Normalized" value in the range from 1 to 254. Please keep
1056in mind that \fBsmartctl\fP only reports the different Attribute
1057types, values, and thresholds as read from the device. It does
1058\fBnot\fP carry out the conversion between "Raw" and "Normalized"
1059values: this is done by the disk\'s firmware.
1060
1061The conversion from Raw value to a quantity with physical units is
1062not specified by the SMART standard. In most cases, the values printed
1063by \fBsmartctl\fP are sensible. For example the temperature Attribute
1064generally has its raw value equal to the temperature in Celsius.
1065However in some cases vendors use unusual conventions. For example
ee38a438 1066the Hitachi disk on my laptop reports its power-on hours in minutes,
832b75ed
GG
1067not hours. Some IBM disks track three temperatures rather than one, in
1068their raw values. And so on.
1069
1070Each Attribute also has a Threshold value (whose range is 0 to 255)
1071which is printed under the heading "THRESH". If the Normalized value
1072is \fBless than or equal to\fP the Threshold value, then the Attribute
ee38a438 1073is said to have failed. If the Attribute is a pre-failure Attribute,
832b75ed
GG
1074then disk failure is imminent.
1075
1076Each Attribute also has a "Worst" value shown under the heading
1077"WORST". This is the smallest (closest to failure) value that the
1078disk has recorded at any time during its lifetime when SMART was
1079enabled. [Note however that some vendors firmware may actually
ee38a438 1080\fBincrease\fP the "Worst" value for some "rate-type" Attributes.]
832b75ed
GG
1081
1082The Attribute table printed out by \fBsmartctl\fP also shows the
1083"TYPE" of the Attribute. Attributes are one of two possible types:
ee38a438 1084Pre-failure or Old age. Pre-failure Attributes are ones which, if
832b75ed
GG
1085less than or equal to their threshold values, indicate pending disk
1086failure. Old age, or usage Attributes, are ones which indicate
ee38a438 1087end-of-product life from old-age or normal aging and wearout, if
832b75ed 1088the Attribute value is less than or equal to the threshold. \fBPlease
ee38a438 1089note\fP: the fact that an Attribute is of type 'Pre-fail' does
832b75ed
GG
1090\fBnot\fP mean that your disk is about to fail! It only has this
1091meaning if the Attribute\'s current Normalized value is less than or
1092equal to the threshold value.
1093
1094If the Attribute\'s current Normalized value is less than or equal to
1095the threshold value, then the "WHEN_FAILED" column will display
1096"FAILING_NOW". If not, but the worst recorded value is less than or
1097equal to the threshold value, then this column will display
1098"In_the_past". If the "WHEN_FAILED" column has no entry (indicated by
1099a dash: \'\-\') then this Attribute is OK now (not failing) and has
1100also never failed in the past.
1101
1102The table column labeled "UPDATED" shows if the SMART Attribute values
ee38a438 1103are updated during both normal operation and off-line testing, or
832b75ed
GG
1104only during offline testing. The former are labeled "Always" and the
1105latter are labeled "Offline".
1106
1107So to summarize: the Raw Attribute values are the ones that might have
1108a real physical interpretation, such as "Temperature Celsius",
ee38a438 1109"Hours", or "Start-Stop Cycles". Each manufacturer converts these,
832b75ed
GG
1110using their detailed knowledge of the disk\'s operations and failure
1111modes, to Normalized Attribute values in the range 1\-254. The
1112current and worst (lowest measured) of these Normalized Attribute
1113values are stored on the disk, along with a Threshold value that the
1114manufacturer has determined will indicate that the disk is going to
1115fail, or that it has exceeded its design age or aging limit.
1116\fBsmartctl\fP does \fBnot\fP calculate any of the Attribute values,
1117thresholds, or types, it merely reports them from the SMART data on
1118the device.
1119
ee38a438
GI
1120Note that starting with ATA/ATAPI-4, revision 4, the meaning of these
1121Attribute fields has been made entirely vendor-specific. However most
1122newer ATA/SATA disks seem to respect their meaning, so we have retained
832b75ed
GG
1123the option of printing the Attribute values.
1124
ee38a438
GI
1125Solid-state drives use different meanings for some of the attributes.
1126In this case the attribute name printed by smartctl is incorrect unless
1127the drive is already in the smartmontools drive database.
1128
2127e193 1129[SCSI] For SCSI devices the "attributes" are obtained from the temperature
ee38a438 1130and start-stop cycle counter log pages. Certain vendor specific
832b75ed
GG
1131attributes are listed if recognised. The attributes are output in a
1132relatively free format (compared with ATA disk attributes).
a86ec89e
GI
1133.\" %IF OS FreeBSD Linux Windows Cygwin
1134
1135[NVMe] [FreeBSD, Linux, Windows and Cygwin only]
1136[NEW EXPERIMENTAL SMARTCTL FEATURE]
1137For NVMe devices the attributes are obtained from the SMART/Health
1138Information log.
1139.\" %ENDIF OS FreeBSD Linux Windows Cygwin
832b75ed 1140.TP
a7e8ffec 1141.B \-f FORMAT, \-\-format=FORMAT
e165493d 1142[ATA only] Selects the output format of the attributes:
a7e8ffec
GI
1143
1144.I old
1145\- Old smartctl format. This is the default unless the \'\-x\' option is
1146specified.
1147
1148.I brief
1149\- New format which fits into 80 colums (except in some rare cases).
1150This format also decodes four additional attribute flags.
1151This is the default if the '\-x\' option is specified.
e165493d
GI
1152
1153.I hex,id
1154\- Print all attribute IDs as hexadecimal numbers.
1155
1156.I hex,val
1157\- Print all normalized values as hexadecimal numbers.
1158
1159.I hex
1160\- Same as \'\-f hex,id \-f hex,val\'.
a7e8ffec 1161.TP
832b75ed 1162.B \-l TYPE, \-\-log=TYPE
ee38a438
GI
1163Prints either the SMART Error Log, the SMART Self-Test Log, the SMART
1164Selective Self-Test Log [ATA only], the Log Directory [ATA only], or
4d59bff9 1165the Background Scan Results Log [SCSI only].
832b75ed
GG
1166The valid arguments to this option are:
1167
1168.I error
2127e193 1169\- [ATA] prints the Summary SMART error log. SMART disks maintain a log
ee38a438
GI
1170of the most recent five non-trivial errors. For each of these errors, the
1171disk power-on lifetime at which the error occurred is recorded, as is
832b75ed
GG
1172the device status (idle, standby, etc) at the time of the error. For
1173some common types of errors, the Error Register (ER) and Status
1174Register (SR) values are decoded and printed as text. The meanings of these
1175are:
1176.nf
1177 \fBABRT\fP: Command \fBAB\fPo\fBRT\fPed
1178 \fBAMNF\fP: \fBA\fPddress \fBM\fPark \fBN\fPot \fBF\fPound
1179 \fBCCTO\fP: \fBC\fPommand \fBC\fPompletion \fBT\fPimed \fBO\fPut
1180 \fBEOM\fP: \fBE\fPnd \fBO\fPf \fBM\fPedia
1181 \fBICRC\fP: \fBI\fPnterface \fBC\fPyclic \fBR\fPedundancy \fBC\fPode (CRC) error
1182 \fBIDNF\fP: \fBID\fPentity \fBN\fPot \fBF\fPound
ee38a438 1183 \fBILI\fP: (packet command-set specific)
832b75ed
GG
1184 \fBMC\fP: \fBM\fPedia \fBC\fPhanged
1185 \fBMCR\fP: \fBM\fPedia \fBC\fPhange \fBR\fPequest
1186 \fBNM\fP: \fBN\fPo \fBM\fPedia
1187 \fBobs\fP: \fBobs\fPolete
1188 \fBTK0NF\fP: \fBT\fPrac\fBK 0 N\fPot \fBF\fPound
1189 \fBUNC\fP: \fBUNC\fPorrectable Error in Data
1190 \fBWP\fP: Media is \fBW\fPrite \fBP\fProtected
1191.fi
1192In addition, up to the last five commands that preceded the error are
1193listed, along with a timestamp measured from the start of the
1194corresponding power cycle. This is displayed in the form
1195Dd+HH:MM:SS.msec where D is the number of days, HH is hours, MM is
1196minutes, SS is seconds and msec is milliseconds. [Note: this time
1197stamp wraps after 2^32 milliseconds, or 49 days 17 hours 2 minutes and
119847.296 seconds.] The key ATA disk registers are also recorded in the
ee38a438 1199log. The final column of the error log is a text-string description
832b75ed
GG
1200of the ATA command defined by the Command Register (CR) and Feature
1201Register (FR) values. Commands that are obsolete in the most current
ee38a438
GI
1202spec are listed like this: \fBREAD LONG (w/ retry) [OBS-4]\fP,
1203indicating that the command became obsolete with or in the ATA-4
832b75ed 1204specification. Similarly, the notation \fB[RET\-\fP\fIN\fP\fB]\fP is
ee38a438 1205used to indicate that a command was retired in the ATA-\fIN\fP
832b75ed
GG
1206specification. Some commands are not defined in any version of the
1207ATA specification but are in common use nonetheless; these are marked
ee38a438 1208\fB[NS]\fP, meaning non-standard.
832b75ed 1209
d2e702cf
GI
1210The ATA Specification (ATA ACS-2 Revision 7, Section A.7.1) says:
1211\fB"Error log data structures shall include, but are not limited to,
1212Uncorrectable errors, ID Not Found errors for which the LBA requested was
1213valid, servo errors, and write fault errors. Error log data structures
1214shall not include errors attributed to the receipt of faulty commands."\fP
1215The definitions of these terms are:
832b75ed
GG
1216.br
1217\fBUNC\fP (\fBUNC\fPorrectable): data is uncorrectable. This refers
1218to data which has been read from the disk, but for which the Error
1219Checking and Correction (ECC) codes are inconsistent. In effect, this
1220means that the data can not be read.
1221.br
ee38a438 1222\fBIDNF\fP (\fBID N\fPot \fBF\fPound): user-accessible address could
832b75ed
GG
1223not be found. For READ LOG type commands, \fBIDNF\fP can also indicate
1224that a device data log structure checksum was incorrect.
1225
1226If the command that caused the error was a READ or WRITE command, then
1227the Logical Block Address (LBA) at which the error occurred will be
1228printed in base 10 and base 16. The LBA is a linear address, which
ee38a438 1229counts 512-byte sectors on the disk, starting from zero. (Because of
832b75ed
GG
1230the limitations of the SMART error log, if the LBA is greater than
12310xfffffff, then either no error log entry will be made, or the error
1232log entry will have an incorrect LBA. This may happen for drives with
1233a capacity greater than 128 GiB or 137 GB.) On Linux systems the
1234smartmontools web page has instructions about how to convert the LBA
1235address to the name of the disk file containing the erroneous disk
1236sector.
1237
1238Please note that some manufacturers \fBignore\fP the ATA
1239specifications, and make entries in the error log if the device
1240receives a command which is not implemented or is not valid.
1241
2127e193
GI
1242.I error
1243\- [SCSI] prints the error counter log pages for reads, write and verifies.
832b75ed
GG
1244The verify row is only output if it has an element other than zero.
1245
a86ec89e
GI
1246.\" %IF OS FreeBSD Linux Windows Cygwin
1247.I error[,NUM]
1248\- [NVMe] [FreeBSD, Linux, Windows and Cygwin only]
1249[NEW EXPERIMENTAL SMARTCTL FEATURE]
1250prints the NVMe Error Information log.
1251Only the 16 most recent log entries are printed by default.
1252This number can be changed by the optional parameter NUM.
1253The maximum number of log entries is vendor specific
1254(in the range from 1 to 256 inclusive).
1255
1256.\" %ENDIF OS FreeBSD Linux Windows Cygwin
2127e193 1257.I xerror[,NUM][,error]
cfbba5b9
GI
1258\- [ATA only] prints the Extended Comprehensive SMART error log
1259(General Purpose Log address 0x03). Unlike the Summary SMART error
1260log (see \'\-l error\' above), it provides sufficient space to log
1261the contents of the 48-bit LBA register set introduced with ATA-6.
1262It also supports logs with more than one sector. Each sector holds
1263up to 4 log entries. The actual number of log sectors is vendor
d2e702cf 1264specific.
2127e193
GI
1265
1266Only the 8 most recent error log entries are printed by default.
1267This number can be changed by the optional parameter NUM.
1268
1269If ',error' is appended and the Extended Comprehensive SMART error
1270log is not supported, the Summary SMART self-test log is printed.
1271
f4e463df
GI
1272Please note that recent drives may report errors only in the Extended
1273Comprehensive SMART error log. The Summary SMART error log may be reported
1274as supported but is always empty then.
2127e193 1275
832b75ed 1276.I selftest
ee38a438 1277\- [ATA] prints the SMART self-test log. The disk maintains a self-test
2127e193 1278log showing the results of the self tests, which can be run using the
832b75ed 1279\'\-t\' option described below. For each of the most recent
ee38a438
GI
1280twenty-one self-tests, the log shows the type of test (short or
1281extended, off-line or captive) and the final status of the test. If
832b75ed
GG
1282the test did not complete successfully, then the percentage of the
1283test remaining is shown. The time at which the test took place,
eb07ddf2
GI
1284measured in hours of disk lifetime, is also printed. [Note: this time
1285stamp wraps after 2^16 hours, or 2730 days and 16 hours, or about 7.5
1286years.] If any errors were detected, the Logical Block Address (LBA)
1287of the first error is printed in decimal notation. On Linux systems the
1288smartmontools web page has instructions about how to convert this LBA
1289address to the name of the disk file containing the erroneous block.
832b75ed 1290
2127e193 1291.I selftest
ee38a438 1292\- [SCSI] the self-test log for a SCSI device has a slightly different
2127e193 1293format than for an ATA device. For each of the most recent twenty
ee38a438 1294self-tests, it shows the type of test and the status (final or in
832b75ed
GG
1295progress) of the test. SCSI standards use the terms "foreground" and
1296"background" (rather than ATA\'s corresponding "captive" and
ee38a438 1297"off-line") and "short" and "long" (rather than ATA\'s corresponding
832b75ed
GG
1298"short" and "extended") to describe the type of the test. The printed
1299segment number is only relevant when a test fails in the third or
1300later test segment. It identifies the test that failed and consists
1301of either the number of the segment that failed during the test, or
1302the number of the test that failed and the number of the segment in
ee38a438 1303which the test was run, using a vendor-specific method of putting both
832b75ed
GG
1304numbers into a single byte. The Logical Block Address (LBA) of the
1305first error is printed in hexadecimal notation. On Linux systems the
1306smartmontools web page has instructions about how to convert this LBA
1307address to the name of the disk file containing the erroneous block.
1308If provided, the SCSI Sense Key (SK), Additional Sense Code (ASC) and
1309Additional Sense Code Qualifier (ASQ) are also printed. The self tests
1310can be run using the \'\-t\' option described below (using the ATA
1311test terminology).
1312
2127e193 1313.I xselftest[,NUM][,selftest]
ee38a438
GI
1314\- [ATA only] prints the Extended SMART self-test log (General Purpose
1315Log address 0x07). Unlike the SMART self-test log (see \'\-l selftest\'
cfbba5b9
GI
1316above), it supports 48-bit LBA and logs with more than one sector.
1317Each sector holds up to 19 log entries. The actual number of log sectors
d2e702cf 1318is vendor specific.
2127e193
GI
1319
1320Only the 25 most recent log entries are printed by default. This number
1321can be changed by the optional parameter NUM.
1322
1323If ',selftest' is appended and the Extended SMART self-test log is not
1324supported, the old SMART self-test log is printed.
1325
1326.I selective
1327\- [ATA only] Please see the \'\-t select\' option below for a
ee38a438 1328description of selective self-tests. The selective self-test log
832b75ed
GG
1329shows the start/end Logical Block Addresses (LBA) of each of the five
1330test spans, and their current test status. If the span is being
ee38a438
GI
1331tested or the remainder of the disk is being read-scanned, the
1332current 65536-sector block of LBAs being tested is also displayed.
1333The selective self-test log also shows if a read-scan of the
832b75ed 1334remainder of the disk will be carried out after the selective
ee38a438
GI
1335self-test has completed (see \'\-t afterselect\' option) and the time
1336delay before restarting this read-scan if it is interrupted (see
1337\'\-t pending\' option).
832b75ed 1338
2127e193
GI
1339.I directory[,gs]
1340\- [ATA only] if the device supports the General Purpose Logging feature
ee38a438 1341set (ATA-6 and above) then this prints the Log Directory (the log at
832b75ed
GG
1342address 0). The Log Directory shows what logs are available and their
1343length in sectors (512 bytes). The contents of the logs at address 1
ee38a438
GI
1344[Summary SMART error log] and at address 6 [SMART self-test log] may
1345be printed using the previously-described
832b75ed
GG
1346.I error
1347and
1348.I selftest
2127e193
GI
1349arguments to this option.
1350If your version of smartctl supports 48-bit ATA commands, both the
1351General Purpose Log (GPL) and SMART Log (SL) directories are printed in
1352one combined table. The output can be restricted to the GPL directory or
1353SL directory by \'\-l directory,q\' or \'\-l directory,s\' respectively.
1354
1355.I background
1356\- [SCSI only] the background scan results log outputs information derived
ee38a438 1357from Background Media Scans (BMS) done after power up and/or periodically
2127e193 1358(e.g. every 24 hours) on recent SCSI disks. If supported, the BMS status
4d59bff9
GG
1359is output first, indicating whether a background scan is currently
1360underway (and if so a progress percentage), the amount of time the disk
1361has been powered up and the number of scans already completed. Then there
1362is a header and a line for each background scan "event". These will
1363typically be either recovered or unrecoverable errors. That latter group
1364may need some attention. There is a description of the background scan
ee38a438 1365mechanism in section 4.18 of SBC-3 revision 6 (see www.t10.org ).
4d59bff9 1366
2127e193
GI
1367.I scttemp, scttempsts, scttemphist
1368\- [ATA only] prints the disk temperature information provided by the
1369SMART Command Transport (SCT) commands.
a37e7145
GG
1370The option \'scttempsts\' prints current temperature and temperature
1371ranges returned by the SCT Status command, \'scttemphist\' prints
1372temperature limits and the temperature history table returned by
1373the SCT Data Table command, and \'scttemp\' prints both.
1374The temperature values are preserved across power cycles.
d008864d
GI
1375The logging interval can be configured with the
1376\'\-l scttempint,N[,p]\' option, see below.
ee38a438
GI
1377The SCT commands were introduced in ATA8-ACS and were also
1378supported by many ATA-7 disks.
d008864d
GI
1379
1380.I scttempint,N[,p]
1381\- [ATA only] clears the SCT temperature history table and sets the
1382time interval for temperature logging to N minutes.
1383If \',p\' is specified, the setting is preserved across power cycles.
1384Otherwise, the setting is volatile and will be reverted to the last
1385non-volatile setting by the next hard reset. The default interval
1386is vendor specific, typical values are 1, 2, or 5 minutes.
a37e7145 1387
7f0798ef 1388.I scterc[,READTIME,WRITETIME]
d008864d
GI
1389\- [ATA only] prints values and descriptions of the SCT Error Recovery
1390Control settings. These are equivalent to TLER (as used by Western
d2e702cf 1391Digital), CCTL (as used by Samsung and Hitachi/HGST) and ERC (as used by
d008864d
GI
1392Seagate). READTIME and WRITETIME arguments (deciseconds) set the
1393specified values. Values of 0 disable the feature, other values less
1394than 65 are probably not supported. For RAID configurations, this is
1395typically set to 70,70 deciseconds.
1396
1397.I devstat[,PAGE]
ee38a438
GI
1398\- [ATA only] prints values and descriptions of the ATA Device Statistics
1399log pages (General Purpose Log address 0x04). If no PAGE number is specified,
d008864d
GI
1400entries from all supported pages are printed. If PAGE 0 is specified,
1401the list of supported pages is printed. Device Statistics was
d2e702cf 1402introduced in ACS-2 and is only supported by some recent devices.
7f0798ef 1403
2127e193 1404.I sataphy[,reset]
cfbba5b9
GI
1405\- [SATA only] prints values and descriptions of the SATA Phy Event
1406Counters (General Purpose Log address 0x11). If \'\-l sataphy,reset\'
1407is specified, all counters are reset after reading the values.
ee38a438
GI
1408This also works for SATA devices with Packet interface like CD/DVD
1409drives.
2127e193
GI
1410
1411.I sasphy[,reset]
cfbba5b9
GI
1412\- [SAS (SCSI) only] prints values and descriptions of the SAS (SSP)
1413Protocol Specific log page (log page 0x18). If \'\-l sasphy,reset\'
1414is specified, all counters are reset after reading the values.
2127e193
GI
1415
1416.I gplog,ADDR[,FIRST[\-LAST|+SIZE]]
cfbba5b9
GI
1417\- [ATA only] prints a hex dump of any log accessible via General
1418Purpose Logging (GPL) feature. The log address ADDR is the hex address
1419listed in the log directory (see \'\-l directory\' above).
1420The range of log sectors (pages) can be specified by decimal values
1421FIRST\-LAST or FIRST+SIZE. FIRST defaults to 0, SIZE defaults to 1.
1422LAST can be set to \'max\' to specify the last page of the log.
2127e193
GI
1423
1424.I smartlog,ADDR[,FIRST[\-LAST|+SIZE]]
cfbba5b9
GI
1425\- [ATA only] prints a hex dump of any log accessible via SMART Read
1426Log command. See \'\-l gplog,...\' above for parameter syntax.
2127e193
GI
1427
1428For example, all these commands:
1429.nf
1430 smartctl \-l gplog,0x80,10-15 /dev/sda
1431 smartctl \-l gplog,0x80,10+6 /dev/sda
1432 smartctl \-l smartlog,0x80,10-15 /dev/sda
1433.fi
1434print pages 10-15 of log 0x80 (first host vendor specific log).
1435
1436The hex dump format is compatible with the \'xxd \-r\' command.
1437This command:
1438.nf
1439 smartctl \-l gplog,0x11 /dev/sda | grep ^0 | xxd -r >log.bin
1440.fi
1441writes a binary representation of the one sector log 0x11
1442(SATA Phy Event Counters) to file log.bin.
d008864d 1443
a86ec89e
GI
1444.\" %IF OS FreeBSD Linux Windows Cygwin
1445.I nvmelog,PAGE,SIZE
1446\- [NVMe only] [FreeBSD, Linux, Windows and Cygwin only]
1447[NEW EXPERIMENTAL SMARTCTL FEATURE]
1448prints a hex dump of the first SIZE bytes from the NVMe log with
1449identifier PAGE.
1450PAGE is a hexadecimal number in the range from 0x1 to 0xff.
1451SIZE is a hexadecimal number in the range from 0x4 to 0x4000 (16 KiB).
1452\fBWARNING: Do not specify the identifier of an unknown log page.
1453Reading a log page may have undesirable side effects.\fP
1454
1455.\" %ENDIF OS FreeBSD Linux Windows Cygwin
d008864d
GI
1456.I ssd
1457\- [ATA] prints the Solid State Device Statistics log page.
1458This has the same effect as \'\-l devstat,7\', see above.
1459
1460.I ssd
1461\- [SCSI] prints the Solid State Media percentage used endurance
1462indicator. A value of 0 indicates as new condition while 100
1463indicates the device is at the end of its lifetime as projected by the
1464manufacturer. The value may reach 255.
832b75ed 1465.TP
a23d5117 1466.B \-v ID,FORMAT[:BYTEORDER][,NAME], \-\-vendorattribute=ID,FORMAT[:BYTEORDER][,NAME]
ee38a438 1467[ATA only] Sets a vendor-specific raw value print FORMAT, an optional
a23d5117 1468BYTEORDER and an optional NAME for Attribute ID.
bed94269 1469This option may be used multiple times.
832b75ed 1470
bed94269 1471The Attribute ID can be in the range 1 to 255. If \'N\' is specified as
a23d5117
GI
1472ID, the settings for all Attributes are changed.
1473
1474The optional BYTEORDER consists of 1 to 8 characters from the
1475set \'012345rvwz\'. The characters \'0\' to \'5\' select the byte 0
ee38a438 1476to 5 from the 48-bit raw value, \'r\' selects the reserved byte of
a23d5117
GI
1477the attribute data block, \'v\' selects the normalized value, \'w\'
1478selects the worst value and \'z\' inserts a zero byte.
ee38a438
GI
1479The default BYTEORDER is \'543210\' for all 48-bit formats, \'r543210\'
1480for the 54-bit formats, and \'543210wv\' for the 64-bit formats.
a23d5117
GI
1481For example, \'\-v 5,raw48:012345\' prints the raw value of
1482attribute 5 with big endian instead of little endian
1483byte ordering.
1484
d008864d
GI
1485The NAME is a string of letters, digits and underscore. Its length should
1486not exceed 23 characters. The \'\-P showall\' option reports an error if
1487this is the case.
bed94269
GI
1488
1489.I \-v help
832b75ed
GG
1490\- Prints (to STDOUT) a list of all valid arguments to this option,
1491then exits.
1492
bed94269
GI
1493Valid arguments for FORMAT are:
1494
1495.I raw8
ee38a438 1496\- Print the Raw value as six 8-bit unsigned base-10 integers.
bed94269
GI
1497This may be useful for decoding the meaning of the Raw value.
1498
1499.I raw16
ee38a438 1500\- Print the Raw value as three 16-bit unsigned base-10 integers.
bed94269
GI
1501This may be useful for decoding the meaning of the Raw value.
1502
1503.I raw48
ee38a438 1504\- Print the Raw value as a 48-bit unsigned base-10 integer.
bed94269
GI
1505This is the default for most attributes.
1506
1507.I hex48
1508\- Print the Raw value as a 12 digit hexadecimal number.
1509This may be useful for decoding the meaning of the Raw value.
1510
e165493d 1511.I raw56
ee38a438
GI
1512\- Print the Raw value as a 54-bit unsigned base-10 integer.
1513This includes the reserved byte which follows the 48-bit raw value.
e165493d
GI
1514
1515.I hex56
1516\- Print the Raw value as a 14 digit hexadecimal number.
ee38a438 1517This includes the reserved byte which follows the 48-bit raw value.
e165493d 1518
bed94269 1519.I raw64
ee38a438 1520\- Print the Raw value as a 64-bit unsigned base-10 integer.
bed94269 1521This includes two bytes from the normalized and worst attribute value.
e165493d 1522This raw format is used by some SSD devices with Indilinx controller.
bed94269
GI
1523
1524.I hex64
1525\- Print the Raw value as a 16 digit hexadecimal number.
1526This includes two bytes from the normalized and worst attribute value.
e165493d 1527This raw format is used by some SSD devices with Indilinx controller.
bed94269
GI
1528
1529.I min2hour
ee38a438 1530\- Raw Attribute is power-on time in minutes. Its raw value
832b75ed
GG
1531will be displayed in the form "Xh+Ym". Here X is hours, and Y is
1532minutes in the range 0\-59 inclusive. Y is always printed with two
1533digits, for example "06" or "31" or "00".
1534
bed94269 1535.I sec2hour
ee38a438 1536\- Raw Attribute is power-on time in seconds. Its raw value
832b75ed
GG
1537will be displayed in the form "Xh+Ym+Zs". Here X is hours, Y is
1538minutes in the range 0\-59 inclusive, and Z is seconds in the range
15390\-59 inclusive. Y and Z are always printed with two digits, for
1540example "06" or "31" or "00".
1541
bed94269 1542.I halfmin2hour
ee38a438 1543\- Raw Attribute is power-on time, measured in units of 30
832b75ed
GG
1544seconds. This format is used by some Samsung disks. Its raw value
1545will be displayed in the form "Xh+Ym". Here X is hours, and Y is
1546minutes in the range 0\-59 inclusive. Y is always printed with two
1547digits, for example "06" or "31" or "00".
1548
cfbba5b9 1549.I msec24hour32
ee38a438 1550\- Raw Attribute is power-on time measured in 32-bit hours and 24-bit
cfbba5b9
GI
1551milliseconds since last hour update. It will be displayed in the form
1552"Xh+Ym+Z.Ms". Here X is hours, Y is minutes, Z is seconds and M is
1553milliseconds.
1554
bed94269
GI
1555.I tempminmax
1556\- Raw Attribute is the disk temperature in Celsius. Info about
cfbba5b9
GI
1557Min/Max temperature is printed if available. This is the default
1558for Attributes 190 and 194. The recording interval (lifetime,
1559last power cycle, last soft reset) of the min/max values is device
1560specific.
832b75ed 1561
bed94269
GI
1562.I temp10x
1563\- Raw Attribute is ten times the disk temperature in Celsius.
832b75ed 1564
bed94269 1565.I raw16(raw16)
ee38a438
GI
1566\- Print the raw attribute as a 16-bit value and two optional
156716-bit values if these words are nonzero. This is the default
bed94269
GI
1568for Attributes 5 and 196.
1569
1570.I raw16(avg16)
1571\- Raw attribute is spin-up time. It is printed as a 16-bit value
1572and an optional "Average" 16-bit value if the word is nonzero.
1573This is the default for Attribute 3.
1574
e165493d 1575.I raw24(raw8)
ee38a438
GI
1576\- Print the raw attribute as a 24-bit value and three optional
15778-bit values if these bytes are nonzero. This is the default
e165493d
GI
1578for Attribute 9.
1579
bed94269 1580.I raw24/raw24
ee38a438 1581\- Raw Attribute contains two 24-bit values. The first is the
832b75ed
GG
1582number of load cycles. The second is the number of unload cycles.
1583The difference between these two values is the number of times that
1584the drive was unexpectedly powered off (also called an emergency
1585unload). As a rule of thumb, the mechanical stress created by one
1586emergency unload is equivalent to that created by one hundred normal
1587unloads.
1588
cfbba5b9 1589.I raw24/raw32
ee38a438
GI
1590\- Raw attribute is an error rate which consists of a 24-bit error
1591count and a 32-bit total count.
cfbba5b9 1592
bed94269
GI
1593The following old arguments to \'\-v\' are also still valid:
1594
1595.I 9,minutes
1596\- same as:
1597.I 9,min2hour,Power_On_Minutes.
1598
1599.I 9,seconds
1600\- same as:
1601.I 9,sec2hour,Power_On_Seconds.
1602
1603.I 9,halfminutes
1604\- same as:
1605.I 9,halfmin2hour,Power_On_Half_Minutes.
1606
1607.I 9,temp
1608\- same as:
1609.I 9,tempminmax,Temperature_Celsius.
1610
1611.I 192,emergencyretractcyclect
1612\- same as:
1613.I 192,raw48,Emerg_Retract_Cycle_Ct
1614
1615.I 193,loadunload
1616\- same as:
1617.I 193,raw24/raw24.
1618
832b75ed 1619.I 194,10xCelsius
bed94269
GI
1620\- same as:
1621.I 194,temp10x,Temperature_Celsius_x10.
832b75ed
GG
1622
1623.I 194,unknown
bed94269
GI
1624\- same as:
1625.I 194,raw48,Unknown_Attribute.
832b75ed 1626
2127e193 1627.I 197,increasing
bed94269
GI
1628\- same as:
1629.I 197,raw48,Total_Pending_Sectors.
1630Also means that Attribute number 197 (Current Pending Sector Count)
1631is not reset if uncorrectable sectors are reallocated
1632(see \fBsmartd.conf\fP(5) man page).
2127e193
GI
1633
1634.I 198,increasing
bed94269
GI
1635\- same as:
1636.I 198,raw48,Total_Offl_Uncorrectabl.
1637Also means that Attribute number 198 (Offline Uncorrectable Sector Count)
1638is not reset if uncorrectable sectors are reallocated
1639(see \fBsmartd.conf\fP(5) man page).
2127e193 1640
832b75ed 1641.I 198,offlinescanuncsectorct
bed94269
GI
1642\- same as:
1643.I 198,raw48,Offline_Scan_UNC_SectCt.
832b75ed
GG
1644
1645.I 200,writeerrorcount
bed94269
GI
1646\- same as:
1647.I 200,raw48,Write_Error_Count.
832b75ed
GG
1648
1649.I 201,detectedtacount
bed94269
GI
1650\- same as:
1651.I 201,raw48,Detected_TA_Count.
832b75ed
GG
1652
1653.I 220,temp
bed94269 1654\- same as:
ee38a438 1655.I 220,tempminmax,Temperature_Celsius.
832b75ed
GG
1656.TP
1657.B \-F TYPE, \-\-firmwarebug=TYPE
2127e193 1658[ATA only] Modifies the behavior of \fBsmartctl\fP to compensate for some
ee38a438
GI
1659known and understood device firmware or driver bug. This option may be used
1660multiple times. The valid arguments are:
832b75ed
GG
1661
1662.I none
1663\- Assume that the device firmware obeys the ATA specifications. This
1664is the default, unless the device has presets for \'\-F\' in the
d2e702cf 1665drive database. Using this option on the command line will override any
ee38a438
GI
1666preset values.
1667
1668.I nologdir
1669\- Suppresses read attempts of SMART or GP Log Directory.
1670Support for all standard logs is assumed without an actual check.
1671Some Intel SSDs may freeze if log address 0 is read.
832b75ed
GG
1672
1673.I samsung
1674\- In some Samsung disks (example: model SV4012H Firmware Version:
ee38a438
GI
1675RM100-08) some of the two- and four-byte quantities in the SMART data
1676structures are byte-swapped (relative to the ATA specification).
832b75ed 1677Enabling this option tells \fBsmartctl\fP to evaluate these quantities
ee38a438
GI
1678in byte-reversed order. Some signs that your disk needs this option
1679are (1) no self-test log printed, even though you have run self-tests;
832b75ed
GG
1680(2) very large numbers of ATA errors reported in the ATA error log;
1681(3) strange and impossible values for the ATA error log timestamps.
1682
1683.I samsung2
e9583e0c
GI
1684\- In some Samsung disks the number of ATA errors reported is byte swapped.
1685Enabling this option tells \fBsmartctl\fP to evaluate this quantity in
ee38a438
GI
1686byte-reversed order. An indication that your Samsung disk needs this
1687option is that the self-test log is printed correctly, but there are a
832b75ed
GG
1688very large number of errors in the SMART error log. This is because
1689the error count is byte swapped. Thus a disk with five errors
1690(0x0005) will appear to have 20480 errors (0x5000).
1691
a37e7145 1692.I samsung3
ee38a438
GI
1693\- Some Samsung disks (at least SP2514N with Firmware VF100-37) report
1694a self-test still in progress with 0% remaining when the test was already
1695completed. Enabling this option modifies the output of the self-test
a37e7145
GG
1696execution status (see options \'\-c\' or \'\-a\' above) accordingly.
1697
ee38a438
GI
1698.I xerrorlba
1699\- Fixes LBA byte ordering in Extended Comprehensive SMART error log.
d2e702cf 1700Some disks use little endian byte ordering instead of ATA register
ee38a438 1701ordering to specifiy the LBA addresses in the log entries.
832b75ed 1702
a37e7145
GG
1703.I swapid
1704\- Fixes byte swapped ATA identify strings (device name, serial number,
1705firmware version) returned by some buggy device drivers.
832b75ed
GG
1706.TP
1707.B \-P TYPE, \-\-presets=TYPE
2127e193
GI
1708[ATA only] Specifies whether \fBsmartctl\fP should use any preset options
1709that are available for this drive. By default, if the drive is recognized
832b75ed
GG
1710in the \fBsmartmontools\fP database, then the presets are used.
1711
832b75ed
GG
1712The argument
1713.I show
1714will show any preset options for your drive and the argument
1715.I showall
1716will show all known drives in the \fBsmartmontools\fP database, along
1717with their preset options. If there are no presets for your drive and
1718you think there should be (for example, a \-v or \-F option is needed
1719to get \fBsmartctl\fP to display correct values) then please contact
1720the \fBsmartmontools\fP developers so that this information can be
1721added to the \fBsmartmontools\fP database. Contact information is at the
1722end of this man page.
1723
1724The valid arguments to this option are:
1725
1726.I use
1727\- if a drive is recognized, then use the stored presets for it. This
ee38a438
GI
1728is the default. Note that presets will NOT override additional
1729Attribute interpretation (\'\-v N,something\') command-line options or
1730explicit \'\-F\' command-line options..
832b75ed
GG
1731
1732.I ignore
1733\- do not use presets.
1734
1735.I show
1736\- show if the drive is recognized in the database, and if so, its
1737presets, then exit.
1738
1739.I showall
1740\- list all recognized drives, and the presets that are set for them,
d008864d
GI
1741then exit. This also checks the drive database regular expressions
1742and settings for syntax errors.
832b75ed
GG
1743
1744The \'\-P showall\' option takes up to two optional arguments to
1745match a specific drive type and firmware version. The command:
1746.nf
1747 smartctl \-P showall
1748.fi
1749lists all entries, the command:
1750.nf
1751 smartctl \-P showall \'MODEL\'
1752.fi
1753lists all entries matching MODEL, and the command:
1754.nf
1755 smartctl \-P showall \'MODEL\' \'FIRMWARE\'
1756.fi
1757lists all entries for this MODEL and a specific FIRMWARE version.
2127e193
GI
1758.TP
1759.B \-B [+]FILE, \-\-drivedb=[+]FILE
cfbba5b9
GI
1760[ATA only] Read the drive database from FILE. The new database replaces
1761the built in database by default. If \'+\' is specified, then the new
1762entries prepend the built in entries.
2127e193 1763
d008864d
GI
1764Optional entries are read from the file
1765.\" %IF NOT OS Windows
1766\fB/usr/local/etc/smart_drivedb.h\fP
1767.\" %ENDIF NOT OS Windows
1768.\" %IF OS ALL
1769 (Windows: \fBEXEDIR/drivedb-add.h\fP)
1770.\" %ENDIF OS ALL
1771.\" %IF OS Windows
1772.\"! \fBEXEDIR/drivedb-add.h\fP.
1773.\" %ENDIF OS Windows
1774.\" %IF ENABLE_DRIVEDB
1775if this option is not specified.
1776
1777If
1778.\" %IF NOT OS Windows
1779\fB/usr/local/share/smartmontools/drivedb.h\fP
1780.\" %ENDIF NOT OS Windows
1781.\" %IF OS ALL
1782(Windows: \fBEXEDIR/drivedb.h\fP)
1783.\" %ENDIF OS ALL
1784.\" %IF OS Windows
1785.\"! \fBEXEDIR/drivedb.h\fP
1786.\" %ENDIF OS Windows
1787is present, the contents of this file is used instead of the built in table.
a86ec89e 1788.\" %IF ENABLE_UPDATE_SMART_DRIVEDB
d008864d
GI
1789
1790Run
1791.\" %IF NOT OS Windows
1792\fB/usr/local/sbin/update-smart-drivedb\fP
1793.\" %ENDIF NOT OS Windows
1794.\" %IF OS ALL
1795(Windows: \fBEXEDIR/update-smart-drivedb.exe\fP)
1796.\" %ENDIF OS ALL
1797.\" %IF OS Windows
1798.\"! \fBEXEDIR/update-smart-drivedb.exe\fP
1799.\" %ENDIF OS Windows
1800to update this file from the smartmontools SVN repository.
a86ec89e 1801.\" %ENDIF ENABLE_UPDATE_SMART_DRIVEDB
d008864d 1802.\" %ENDIF ENABLE_DRIVEDB
2127e193
GI
1803
1804The database files use the same C/C++ syntax that is used to initialize
1805the built in database array. C/C++ style comments are allowed.
1806Example:
1807
1808.nf
1809 /* Full entry: */
1810 {
1811 "Model family", // Info about model family/series.
1812 "MODEL1.*REGEX", // Regular expression to match model of device.
1813 "VERSION.*REGEX", // Regular expression to match firmware version(s).
1814 "Some warning", // Warning message.
1815 "\-v 9,minutes" // String of preset \-v and \-F options.
1816 },
1817 /* Minimal entry: */
1818 {
1819 "", // No model family/series info.
1820 "MODEL2.*REGEX", // Regular expression to match model of device.
1821 "", // All firmware versions.
1822 "", // No warning.
1823 "" // No options preset.
1824 },
e9583e0c
GI
1825 /* USB ID entry: */
1826 {
1827 "USB: Device; Bridge", // Info about USB device and bridge name.
1828 "0x1234:0xabcd", // Regular expression to match vendor:product ID.
1829 "0x0101", // Regular expression to match bcdDevice.
1830 "", // Not used.
1831 "\-d sat" // String with device type option.
1832 },
2127e193
GI
1833 /* ... */
1834.fi
1835
832b75ed 1836.TP
ee38a438 1837.B SMART RUN/ABORT OFFLINE TEST AND self-test OPTIONS:
832b75ed
GG
1838.TP
1839.B \-t TEST, \-\-test=TEST
1840Executes TEST immediately. The \'\-C\' option can be used in
1841conjunction with this option to run the short or long (and also for
ee38a438 1842ATA devices, selective or conveyance) self-tests in captive mode
832b75ed
GG
1843(known as "foreground mode" for SCSI devices). Note that only one
1844test type can be run at a time, so only one test type should be
1845specified per command line. Note also that if a computer is shutdown
ee38a438
GI
1846or power cycled during a self-test, no harm should result. The
1847self-test will either be aborted or will resume automatically.
1848
1849All \'\-t TEST\' commands can be given during normal system operation
1850unless captive mode (\'\-C\' option) is used.
1851A running self-test can, however, degrade performance of the drive.
1852Frequent I/O requests from the operating system increase the duration
1853of a test. These impacts may vary from device to device.
832b75ed 1854
ee38a438
GI
1855If a test failure occurs then the device may discontinue the testing
1856and report the result immediately.
1857
1858The valid arguments to this option are:
832b75ed
GG
1859
1860.I offline
e9583e0c 1861\- [ATA] runs SMART Immediate Offline Test. This immediately
832b75ed
GG
1862starts the test described above. This command can be given during
1863normal system operation. The effects of this test are visible only in
1864that it updates the SMART Attribute values, and if errors are
1865found they will appear in the SMART error log, visible with the \'\-l error\'
e9583e0c 1866option.
832b75ed
GG
1867
1868If the \'\-c\' option to \fBsmartctl\fP shows that the device has the
1869"Suspend Offline collection upon new command" capability then you can
1870track the progress of the Immediate Offline test using the \'\-c\'
1871option to \fBsmartctl\fP. If the \'\-c\' option show that the device
1872has the "Abort Offline collection upon new command" capability then
1873most commands will abort the Immediate Offline Test, so you should not
1874try to track the progress of the test with \'\-c\', as it will abort
1875the test.
1876
e9583e0c
GI
1877.I offline
1878\- [SCSI] runs the default self test in foreground. No entry is placed
1879in the self test log.
1880
832b75ed 1881.I short
e9583e0c 1882\- [ATA] runs SMART Short Self Test (usually under ten minutes).
832b75ed
GG
1883This command can be given during normal system operation (unless run in
1884captive mode \- see the \'\-C\' option below). This is a
1885test in a different category than the immediate or automatic offline
1886tests. The "Self" tests check the electrical and mechanical
1887performance as well as the read performance of the disk. Their
1888results are reported in the Self Test Error Log, readable with
1889the \'\-l selftest\' option. Note that on some disks the progress of the
ee38a438 1890self-test can be monitored by watching this log during the self-test; with other disks
832b75ed
GG
1891use the \'\-c\' option to monitor progress.
1892
e9583e0c 1893.I short
ee38a438 1894\- [SCSI] runs the "Background short" self-test.
e9583e0c 1895
832b75ed 1896.I long
e9583e0c 1897\- [ATA] runs SMART Extended Self Test (tens of minutes). This is a
832b75ed
GG
1898longer and more thorough version of the Short Self Test described
1899above. Note that this command can be given during normal
1900system operation (unless run in captive mode \- see the \'\-C\' option below).
1901
e9583e0c 1902.I long
ee38a438 1903\- [SCSI] runs the "Background long" self-test.
e9583e0c 1904
832b75ed 1905.I conveyance
2127e193 1906\- [ATA only] runs a SMART Conveyance Self Test (minutes). This
ee38a438
GI
1907self-test routine is intended to identify damage incurred during
1908transporting of the device. This self-test routine should take on the
832b75ed
GG
1909order of minutes to complete. Note that this command can be given
1910during normal system operation (unless run in captive mode \- see the
1911\'\-C\' option below).
1912
a37e7145 1913.I select,N\-M, select,N+SIZE
2127e193
GI
1914\- [ATA only] runs a SMART Selective Self Test, to test a \fBrange\fP
1915of disk Logical Block Addresses (LBAs), rather than the entire disk.
1916Each range of LBAs that is checked is called a "span" and is specified
1917by a starting LBA (N) and an ending LBA (M) with N less than or equal
1918to M. The range can also be specified as N+SIZE. A span at the end of
1919a disk can be specified by N\-\fBmax\fP.
a37e7145
GG
1920
1921For example the commands:
832b75ed 1922.nf
a86ec89e
GI
1923 smartctl \-t select,10\-20 /dev/sda
1924 smartctl \-t select,10+11 /dev/sda
832b75ed 1925.fi
a37e7145
GG
1926both runs a self test on one span consisting of LBAs ten to twenty
1927(inclusive). The command:
1928.nf
a86ec89e 1929 smartctl \-t select,100000000\-max /dev/sda
a37e7145
GG
1930.fi
1931run a self test from LBA 100000000 up to the end of the disk.
1932The \'\-t\' option can be given up to five times, to test
832b75ed
GG
1933up to five spans. For example the command:
1934.nf
a86ec89e 1935 smartctl \-t select,0\-100 \-t select,1000\-2000 /dev/sda
832b75ed
GG
1936.fi
1937runs a self test on two spans. The first span consists of 101 LBAs
1938and the second span consists of 1001 LBAs. Note that the spans can
1939overlap partially or completely, for example:
1940.nf
a86ec89e 1941 smartctl \-t select,0\-10 \-t select,5\-15 \-t select,10\-20 /dev/sda
832b75ed 1942.fi
ee38a438
GI
1943The results of the selective self-test can be obtained (both during
1944and after the test) by printing the SMART self-test log, using the
832b75ed
GG
1945\'\-l selftest\' option to smartctl.
1946
1947Selective self tests are particularly useful as disk capacities
1948increase: an extended self test (smartctl \-t long) can take several
ee38a438
GI
1949hours. Selective self-tests are helpful if (based on SYSLOG error
1950messages, previous failed self-tests, or SMART error log entries) you
832b75ed
GG
1951suspect that a disk is having problems at a particular range of
1952Logical Block Addresses (LBAs).
1953
ee38a438 1954Selective self-tests can be run during normal system operation (unless
832b75ed
GG
1955done in captive mode \- see the \'\-C\' option below).
1956
ee38a438 1957The following variants of the selective self-test command use spans based
a37e7145
GG
1958on the ranges from past tests already stored on the disk:
1959
1960.I select,redo[+SIZE]
2127e193
GI
1961\- [ATA only] redo the last SMART Selective Self Test using the same LBA
1962range. The starting LBA is identical to the LBA used by last test, same
1963for ending LBA unless a new span size is specified by optional +SIZE
1964argument.
a37e7145
GG
1965
1966For example the commands:
1967.nf
a86ec89e
GI
1968 smartctl \-t select,10\-20 /dev/sda
1969 smartctl \-t select,redo /dev/sda
1970 smartctl \-t select,redo+20 /dev/sda
a37e7145
GG
1971.fi
1972have the same effect as:
1973.nf
a86ec89e
GI
1974 smartctl \-t select,10\-20 /dev/sda
1975 smartctl \-t select,10\-20 /dev/sda
1976 smartctl \-t select,10\-29 /dev/sda
a37e7145
GG
1977.fi
1978
1979.I select,next[+SIZE]
2127e193
GI
1980\- [ATA only] runs a SMART Selective Self Test on the LBA range which
1981follows the range of the last test. The starting LBA is set to (ending
1982LBA +1) of the last test. A new span size may be specified by the
1983optional +SIZE argument.
a37e7145
GG
1984
1985For example the commands:
1986.nf
a86ec89e
GI
1987 smartctl \-t select,0\-999 /dev/sda
1988 smartctl \-t select,next /dev/sda
1989 smartctl \-t select,next+2000 /dev/sda
a37e7145
GG
1990.fi
1991have the same effect as:
1992.nf
a86ec89e
GI
1993 smartctl \-t select,0\-999 /dev/sda
1994 smartctl \-t select,1000\-1999 /dev/sda
1995 smartctl \-t select,2000\-3999 /dev/sda
a37e7145
GG
1996.fi
1997
1998If the last test ended at the last LBA of the disk, the new range starts
1999at LBA 0. The span size of the last span of a disk is adjusted such that
2000the total number of spans to check the full disk will not be changed
2001by future uses of \'\-t select,next\'.
2002
2003.I select,cont[+SIZE]
2127e193
GI
2004\- [ATA only] performs a \'redo\' (above) if the self test status reports
2005that the last test was aborted by the host. Otherwise it run the \'next\'
2006(above) test.
832b75ed
GG
2007
2008.I afterselect,on
ee38a438 2009\- [ATA only] perform an offline read scan after a Selective self-test
832b75ed
GG
2010has completed. This option must be used together with one or more of
2011the \fIselect,N\-M\fP options above. If the LBAs that have been
ee38a438 2012specified in the Selective self-test pass the test with no errors
832b75ed 2013found, then read scan the \fBremainder\fP of the disk. If the device
ee38a438 2014is powered-cycled while this read scan is in progress, the read scan
832b75ed
GG
2015will be automatically resumed after a time specified by the pending
2016timer (see below). The value of this option is preserved between
ee38a438 2017selective self-tests.
832b75ed
GG
2018
2019.I afterselect,off
2127e193 2020\- [ATA only] do not read scan the remainder of the disk after a
ee38a438 2021Selective self-test has completed. This option must be use together
832b75ed 2022with one or more of the \fIselect,N\-M\fP options above. The value of this
ee38a438 2023option is preserved between selective self-tests.
832b75ed
GG
2024
2025.I pending,N
2127e193 2026\- [ATA only] set the pending offline read scan timer to N minutes.
832b75ed 2027Here N is an integer in the range from 0 to 65535 inclusive. If the
ee38a438
GI
2028device is powered off during a read scan after a Selective self-test,
2029then resume the test automatically N minutes after power-up. This
832b75ed
GG
2030option must be use together with one or more of the \fIselect,N\-M\fP
2031options above. The value of this option is preserved between selective
ee38a438 2032self-tests.
832b75ed 2033
cfbba5b9
GI
2034.I vendor,N
2035\- [ATA only] issues the ATA command SMART EXECUTE OFF-LINE IMMEDIATE
2036with subcommand N in LBA LOW register. The subcommand is specified as
a7e8ffec 2037a hex value in the range 0x00 to 0xff. Subcommands 0x40-0x7e and
cfbba5b9 20380x90-0xff are reserved for vendor specific use, see table 61 of
a7e8ffec
GI
2039T13/1699-D Revision 6a (ATA8-ACS). Note that the subcommands
20400x00-0x04,0x7f,0x81-0x84 are supported by other smartctl options
2041(e.g. 0x01: \'\-t short\', 0x7f: \'\-X\', 0x82: \'\-C \-t long\').
cfbba5b9
GI
2042
2043\fBWARNING: Only run subcommands documented by the vendor of the
2044device.\fP
2045
d2e702cf 2046Example for some Intel SSDs only:
a7e8ffec
GI
2047The subcommand 0x40 (\'\-t vendor,0x40\') clears the timed workload
2048related SMART attributes (226, 227, 228). Note that the raw values of
2049these attributes are held at 65535 (0xffff) until the workload timer
2050reaches 60 minutes.
d008864d
GI
2051
2052.I force
ee38a438
GI
2053\- start new self-test even if another test is already running.
2054By default a running self-test will not be interrupted to begin another
d008864d 2055test.
832b75ed
GG
2056.TP
2057.B \-C, \-\-captive
ee38a438 2058[ATA] Runs self-tests in captive mode. This has no effect with \'\-t
e9583e0c 2059offline\' or if the \'\-t\' option is not used.
832b75ed
GG
2060
2061\fBWARNING: Tests run in captive mode may busy out the drive for the
2062length of the test. Only run captive tests on drives without any
2063mounted partitions!\fP
2064
ee38a438 2065[SCSI] Runs the self-test in "Foreground" mode.
832b75ed
GG
2066.TP
2067.B \-X, \-\-abort
ee38a438 2068Aborts non-captive SMART Self Tests. Note that this
832b75ed
GG
2069command will abort the Offline Immediate Test routine only if your
2070disk has the "Abort Offline collection upon new command" capability.
d2e702cf 2071
2127e193
GI
2072.SH ATA, SCSI command sets and SAT
2073In the past there has been a clear distinction between storage devices
2074that used the ATA and SCSI command sets. This distinction was often
2075reflected in their device naming and hardware. Now various SCSI
2076transports (e.g. SAS, FC and iSCSI) can interconnect to both SCSI
2077disks (e.g. FC and SAS) and ATA disks (especially SATA). USB and
2078IEEE 1394 storage devices use the SCSI command set externally but
2079almost always contain ATA or SATA disks (or flash). The storage
2080subsystems in some operating systems have started to remove the
2081distinction between ATA and SCSI in their device naming policies.
2082.PP
208399% of operations that an OS performs on a disk involve the SCSI INQUIRY,
2084READ CAPACITY, READ and WRITE commands, or their ATA equivalents. Since
2085the SCSI commands are slightly more general than their ATA equivalents,
2086many OSes are generating SCSI commands (mainly READ and WRITE) and
2087letting a lower level translate them to their ATA equivalents as the
2088need arises. An important note here is that "lower level" may be in
2089external equipment and hence outside the control of an OS.
2090.PP
2091SCSI to ATA Translation (SAT) is a standard (ANSI INCITS 431-2007) that
2092specifies how this translation is done. For the other 1% of operations
2093that an OS performs on a disk, SAT provides two options. First is an
2094optional ATA PASS-THROUGH SCSI command (there are two variants). The
2095second is a translation from the closest SCSI command. Most current
2096interest is in the "pass-through" option.
2097.PP
2098The relevance to smartmontools (and hence smartctl) is that its
2099interactions with disks fall solidly into the "1%" category. So even
2100if the OS can happily treat (and name) a disk as "SCSI", smartmontools
2101needs to detect the native command set and act accordingly.
2102As more storage manufacturers (including external SATA drives) comply
2103with SAT, smartmontools is able to automatically distinguish the native
2104command set of the device. In some cases the '\-d sat' option is needed
2105on the command line.
2106.PP
2107There are also virtual disks which typically have no useful information
2108to convey to smartmontools, but could conceivably in the future. An
2109example of a virtual disk is the OS's view of a RAID 1 box. There are
2110most likely two SATA disks inside a RAID 1 box. Addressing those SATA
2111disks from a distant OS is a challenge for smartmontools. Another
2112approach is running a tool like smartmontools inside the RAID 1 box (e.g.
2113a Network Attached Storage (NAS) box) and fetching the logs via a
2114browser.
d2e702cf 2115
832b75ed
GG
2116.SH EXAMPLES
2117.nf
a86ec89e 2118.B smartctl \-a /dev/sda
17d0b8d9 2119<<<<<<< HEAD
2127e193 2120.fi
3d8ad6fa 2121Print a large amount of SMART information for drive /dev/sda .
832b75ed
GG
2122.PP
2123.nf
3d8ad6fa 2124.B smartctl \-s off /dev/sdd
832b75ed 2125.fi
3d8ad6fa 2126Disable SMART monitoring and data log collection on drive /dev/sdd .
832b75ed
GG
2127.PP
2128.nf
3d8ad6fa 2129.B smartctl \-\-smart=on \-\-offlineauto=on \-\-saveauto=on /dev/sda
832b75ed 2130.fi
17d0b8d9 2131=======
832b75ed 2132.fi
a86ec89e 2133Print a large amount of SMART information for drive /dev/sda .
2127e193
GI
2134.PP
2135.nf
a86ec89e 2136.B smartctl \-s off /dev/sdd
2127e193 2137.fi
a86ec89e 2138Disable SMART monitoring and data log collection on drive /dev/sdd .
832b75ed
GG
2139.PP
2140.nf
a86ec89e 2141.B smartctl \-\-smart=on \-\-offlineauto=on \-\-saveauto=on /dev/sda
832b75ed 2142.fi
17d0b8d9 2143>>>>>>> 3d8ad6fa4529eb02ae1391a1e937bf57aad3fb74
a86ec89e 2144Enable SMART on drive /dev/sda, enable automatic offline
832b75ed 2145testing every four hours, and enable autosaving of
ee38a438 2146SMART Attributes. This is a good start-up line for your system\'s
832b75ed
GG
2147init files. You can issue this command on a running system.
2148.PP
2149.nf
a86ec89e 2150.B smartctl \-t long /dev/sdc
832b75ed 2151.fi
a86ec89e 2152Begin an extended self-test of drive /dev/sdc. You can issue this
ee38a438 2153command on a running system. The results can be seen in the self-test
832b75ed
GG
2154log visible with the \'\-l selftest\' option after it has completed.
2155.PP
2156.nf
a86ec89e 2157.B smartctl \-s on \-t offline /dev/sda
832b75ed
GG
2158.fi
2159Enable SMART on the disk, and begin an immediate offline test of
a86ec89e 2160drive /dev/sda. You can issue this command on a running system. The
832b75ed
GG
2161results are only used to update the SMART Attributes, visible
2162with the \'\-A\' option. If any device errors occur, they are logged to
2163the SMART error log, which can be seen with the \'\-l error\' option.
2164.PP
2165.nf
a86ec89e 2166.B smartctl \-A \-v 9,minutes /dev/sda
832b75ed 2167.fi
ee38a438 2168Shows the vendor Attributes, when the disk stores its power-on time
832b75ed
GG
2169internally in minutes rather than hours.
2170.PP
2171.nf
a86ec89e 2172.B smartctl \-q errorsonly \-H \-l selftest /dev/sda
832b75ed
GG
2173.fi
2174Produces output only if the device returns failing SMART status,
ee38a438 2175or if some of the logged self-tests ended with errors.
832b75ed
GG
2176.PP
2177.nf
a86ec89e 2178.B smartctl \-q silent \-a /dev/sda
832b75ed 2179.fi
a86ec89e 2180Examine all SMART data for device /dev/sda, but produce no
832b75ed
GG
2181printed output. You must use the exit status (the
2182.B $?
2183shell variable) to learn if any Attributes are out of bound, if the
2184SMART status is failing, if there are errors recorded in the
ee38a438 2185self-test log, or if there are errors recorded in the disk error log.
832b75ed
GG
2186.PP
2187.nf
2188.B smartctl \-a \-d 3ware,0 /dev/sda
2189.fi
2190Examine all SMART data for the first ATA disk connected to a 3ware
2191RAID controller card.
2192.PP
2193.nf
2194.B smartctl \-a \-d 3ware,0 /dev/twe0
2195.fi
2196Examine all SMART data for the first ATA disk connected to a 3ware
2197RAID 6000/7000/8000 controller card.
2198.PP
2199.nf
2200.B smartctl \-a \-d 3ware,0 /dev/twa0
2201.fi
cfbba5b9
GI
2202Examine all SMART data for the first ATA disk connected to a
22033ware RAID 9000 controller card.
2204.PP
2205.nf
2206.B smartctl \-a \-d 3ware,0 /dev/twl0
2207.fi
2208Examine all SMART data for the first SATA (not SAS) disk connected to a
22093ware RAID 9750 controller card.
832b75ed
GG
2210.PP
2211.nf
2212.B smartctl \-t short \-d 3ware,3 /dev/sdb
2213.fi
ee38a438 2214Start a short self-test on the fourth ATA disk connected to the 3ware RAID
832b75ed 2215controller card which is the second SCSI device /dev/sdb.
4d59bff9
GG
2216.PP
2217.nf
2127e193
GI
2218.B smartctl \-t long \-d areca,4 /dev/sg2
2219.fi
ee38a438 2220Start a long self-test on the fourth SATA disk connected to an Areca RAID
2127e193
GI
2221controller addressed by /dev/sg2.
2222.PP
2223.nf
2224.B smartctl \-a \-d hpt,1/3 /dev/sda (under Linux)
2225.B smartctl \-a \-d hpt,1/3 /dev/hptrr (under FreeBSD)
4d59bff9
GG
2226.fi
2227Examine all SMART data for the (S)ATA disk directly connected to the third channel of the
2228first HighPoint RocketRAID controller card.
2229.nf
2230.PP
2231.nf
2127e193
GI
2232.B smartctl \-t short \-d hpt,1/1/2 /dev/sda (under Linux)
2233.B smartctl \-t short \-d hpt,1/1/2 /dev/hptrr (under FreeBSD)
4d59bff9 2234.fi
ee38a438 2235Start a short self-test on the (S)ATA disk connected to second pmport on the
4d59bff9
GG
2236first channel of the first HighPoint RocketRAID controller card.
2237.PP
832b75ed 2238.nf
a86ec89e 2239.B smartctl \-t select,10\-100 \-t select,30\-300 \-t afterselect,on \-t pending,45 /dev/sda
832b75ed 2240.fi
ee38a438
GI
2241Run a selective self-test on LBAs 10 to 100 and 30 to 300. After the
2242these LBAs have been tested, read-scan the remainder of the disk. If the disk is
2243power-cycled during the read-scan, resume the scan 45 minutes after power to the
832b75ed
GG
2244device is restored.
2245.PP
ba59cff1
GG
2246.nf
2247.B smartctl \-a \-d cciss,0 /dev/cciss/c0d0
2248.fi
2249Examine all SMART data for the first SCSI disk connected to a cciss
2250RAID controller card.
d2e702cf 2251
a86ec89e
GI
2252.SH EXIT STATUS
2253The exit statuses of \fBsmartctl\fP are defined by a bitmask.
2254If all is well with the disk, the exit status (return value) of
832b75ed 2255\fBsmartctl\fP is 0 (all bits turned off). If a problem occurs, or an
ee38a438 2256error, potential error, or fault is detected, then a non-zero status
a86ec89e
GI
2257is returned. In this case, the eight different bits in the exit status
2258have the following meanings for ATA disks; some of these values
832b75ed
GG
2259may also be returned for SCSI disks.
2260.TP
2261.B Bit 0:
2262Command line did not parse.
2263.TP
2264.B Bit 1:
cfbba5b9
GI
2265Device open failed, device did not return an IDENTIFY DEVICE structure,
2266or device is in a low-power mode (see \'\-n\' option above).
832b75ed
GG
2267.TP
2268.B Bit 2:
d008864d
GI
2269Some SMART or other ATA command to the disk failed, or there was a checksum
2270error in a SMART data structure (see \'\-b\' option above).
832b75ed
GG
2271.TP
2272.B Bit 3:
2273SMART status check returned "DISK FAILING".
2274.TP
2275.B Bit 4:
a37e7145 2276We found prefail Attributes <= threshold.
832b75ed
GG
2277.TP
2278.B Bit 5:
2279SMART status check returned "DISK OK" but we found that some (usage
2280or prefail) Attributes have been <= threshold at some time in the
2281past.
2282.TP
2283.B Bit 6:
2284The device error log contains records of errors.
2285.TP
2286.B Bit 7:
ee38a438 2287The device self-test log contains records of errors.
cfbba5b9 2288[ATA only] Failed self-tests outdated by a newer successful extended
ee38a438 2289self-test are ignored.
d008864d 2290.PP
832b75ed 2291To test within the shell for whether or not the different bits are
d2e702cf
GI
2292turned on or off, you can use the following type of construction
2293(which should work with any POSIX compatible shell):
832b75ed
GG
2294.nf
2295.B smartstat=$(($? & 8))
2296.fi
2297This looks at only at bit 3 of the exit status
2298.B $?
2299(since 8=2^3). The shell variable
2300$smartstat will be nonzero if SMART status check returned "disk
2301failing" and zero otherwise.
d2e702cf
GI
2302.PP
2303This shell script prints all status bits:
d008864d 2304.nf
d2e702cf
GI
2305val=$?; mask=1
2306for i in 0 1 2 3 4 5 6 7; do
2307 echo "Bit $i: $(((val & mask) && 1))"
2308 mask=$((mask << 1))
d008864d
GI
2309done
2310.fi
2311
d2e702cf
GI
2312.\" %IF NOT OS Windows
2313.SH FILES
2314.TP
2315.B /usr/local/sbin/smartctl
2316full path of this executable.
2317.\" %IF ENABLE_DRIVEDB
2318.TP
2319.B /usr/local/share/smartmontools/drivedb.h
2320drive database (see \'\-B\' option).
2321.\" %ENDIF ENABLE_DRIVEDB
2322.TP
2323.B /usr/local/etc/smart_drivedb.h
2324optional local drive database (see \'\-B\' option).
2325
2326.\" %ENDIF NOT OS Windows
ee38a438 2327.SH AUTHORS
a86ec89e 2328\fBBruce Allen\fP (project initiator),
ee38a438 2329.br
a86ec89e 2330\fBChristian Franke\fP (project manager, Windows port and all sort of things),
ee38a438 2331.br
a86ec89e 2332\fBDouglas Gilbert\fP (SCSI subsystem),
ee38a438 2333.br
a86ec89e 2334\fBVolker Kuhlmann\fP (moderator of support and database mailing list),
d2e702cf 2335.br
a86ec89e 2336\fBGabriele Pohl\fP (wiki & development team support),
d2e702cf 2337.br
a86ec89e
GI
2338\fBAlex Samorukov\fP (FreeBSD port and more, new Trac wiki).
2339
2340Many other individuals have made contributions and corrections,
2341see AUTHORS, ChangeLog and repository files.
2342
2343The first smartmontools code was derived from the smartsuite package,
2344written by Michael Cornwell and Andre Hedrick.
2345
2346.SH REPORTING BUGS
2347To submit a bug report, create a ticket in smartmontools wiki:
d2e702cf 2348.br
a86ec89e 2349<\fBhttp://www.smartmontools.org/\fP>.
d2e702cf 2350.br
a86ec89e 2351Alternatively send the info to the smartmontools support mailing list:
d2e702cf 2352.br
a86ec89e 2353<\fBhttps://lists.sourceforge.net/lists/listinfo/smartmontools-support\fB>.
832b75ed 2354
d2e702cf 2355.SH SEE ALSO
a86ec89e
GI
2356\fBsmartd\fP(8).
2357.\" %IF ENABLE_UPDATE_SMART_DRIVEDB
2358.br
2359\fBupdate-smart-drivedb\fP(8).
2360.\" %ENDIF ENABLE_UPDATE_SMART_DRIVEDB
d2e702cf
GI
2361
2362.SH REFERENCES
2363Please see the following web site for more info:
a86ec89e 2364\fBhttp://www.smartmontools.org/\fP
d2e702cf 2365
832b75ed
GG
2366An introductory article about smartmontools is \fIMonitoring Hard
2367Disks with SMART\fP, by Bruce Allen, Linux Journal, January 2004,
ee38a438 2368pages 74-77. This is \fBhttp://www.linuxjournal.com/article/6983\fP
832b75ed
GG
2369online.
2370
2371If you would like to understand better how SMART works, and what it
2372does, a good place to start is with Sections 4.8 and 6.54 of the first
ee38a438 2373volume of the \'AT Attachment with Packet Interface-7\' (ATA/ATAPI-7)
e9583e0c
GI
2374specification Revision 4b. This documents the SMART functionality which the
2375\fBsmartmontools\fP utilities provide access to.
832b75ed 2376
ee38a438
GI
2377The functioning of SMART was originally defined by the SFF-8035i
2378revision 2 and the SFF-8055i revision 1.4 specifications. These are
e9583e0c
GI
2379publications of the Small Form Factors (SFF) Committee.
2380
2381Links to these and other documents may be found on the Links page of the
d2e702cf 2382\fBsmartmontools\fP Wiki at \fBhttp://www.smartmontools.org/wiki/Links\fP .
832b75ed 2383
a86ec89e
GI
2384.SH PACKAGE VERSION
2385CURRENT_SVN_VERSION CURRENT_SVN_DATE CURRENT_SVN_REV
2386.br
17d0b8d9 2387<<<<<<< HEAD
a86ec89e 2388$Id: smartctl.8.in 4311 2016-04-27 21:03:01Z chrfranke $
17d0b8d9 2389=======
3d8ad6fa 2390$Id: smartctl.8.in 4099 2015-05-30 17:32:13Z chrfranke $
17d0b8d9 2391>>>>>>> 3d8ad6fa4529eb02ae1391a1e937bf57aad3fb74