SMARTCTL(8) smartmontools manual SMARTCTL(8) (NAME) smartctl - (SMART) (SYNOPSIS) smartctl [] (DESCRIPTION) [ smartmontools . .] smartctl (Self-Monitoring, Analysis and Reporting Technology SMART) (SSD) ATA/SATA SCSI/SAS . SMART . smartctl SMART . smartctl ACS-3 ACS-2 ATA8-ACS ATA/ATAPI-7 ( (REFERENCES) ). smartctl (Tape Drives) (Changers) SCSI ( (TAPE DRIVES) ). smartctl . '-d' ( << ATA SCSI SAT>> ). : LINUX: ATA/SATA SCSI/SAS "/dev/sd[a-z]" . SCSI "/dev/nst*" "/dev/sg*" . 3ware "/dev/sd[a-z]" "/dev/twe[0-9]" "/dev/twa[0-9]" "/dev/twl[0-9]" : . HighPoint RocketRAID "/dev/sd[a-z]" . Areca SATA RAID "/dev/sg[2-9]" ( smartmontools Areca SCSI SCSI )! HP Smart Array RAID : cciss hpsa hpahcisr. cciss "/dev/cciss/c[0-9]d0" . hpahcisr hpsa "/dev/sg[0-9]*" . ( "lsscsi -g" scsi .) RAID . -d . NVMe "/dev/nvme[0-9]" ( / broadcast namespace) "/dev/nvme[0-9]n[1-9]" ( / specific namespace 1-9) . '-' smartctl (debug) (standard input) . '-r ataioctl' . smartctl . '-d' . smartctl ( / decimal) ( / hexadecimal) . "0x" : "0xff". . (OPTIONS) . smartctl : / / . (SHOW INFORMATION OPTIONS): -h, --help, --usage STDOUT . -V, --version, --copyright, --license () SVN smartctl STDOUT . -i, --info () / ATA . SMART SMART . ( LBA) . ( " " (clipped) .) smartmontools ( '-v' ). . '-n' ( ) . [NVMe] NVMe Identify Controller Identify Namespace . --identify[=[w][nvb]] [ ATA] IDENTIFY DEVICE . ( 0x0000 0xffff ) . 'wnvb' . 'w' . 'n' 'v' 'b' . '--identify=n' ( ) '--identify=wb' ( ) . -a, --all SMART . ATA '-H -i -c -A -l error -l selftest -l selective'. ATA SMART ATA ( '-x' ). SCSI '-H -i -A -l error -l selftest'. NVMe '-H -i -c -A -l error -l selftest'. -x, --xall SMART SMART . ATA '-H -i -g all -c -A -f brief -l xerror,error -l xselftest,selftest -l selective -l directory -l scttemp -l scterc -l devstat -l defects -l sataphy'. '-a' '-l error -l selftest' . [ SMARTCTL 7.5] '-g wcreorder' . SCSI '-H -i -g all -A -l error -l selftest -l background -l sasphy -l defects -l envrep -l genstats -l ssd -l zdevstat' (tape) (changers) SCSI '-l tapedevstat' . NVMe '-H -i -c -A -l error -l selftest'. --scan ([ATA] [SCSI]) . '-d TYPE' TYPE . DEVICESCAN smartd(8) . --scan-open --scan . ( '-d test' ). smartd.conf . '--' . : smartctl --scan-open -- -a -W 4,45,50 -m admin@work > smartd.conf '-d TYPE' '--scan[-open]' TYPE . -g NAME, --get=NAME SMART . '-s, --set' . (RUN-TIME BEHAVIOR OPTIONS): -j, --json[=cgiosuvy] JSON YAML . 'cgiosuvy' : 'c': (compact) . (pretty- printed) . YAML . 'g': JSON grep . . gron : 'json.KEY1[INDEX2].KEY3 = VALUE;'. 'o': (original plaintext output) smartctl JSON 'smartctl.output[]' . 's': JSON (sorted) . . 'v': (verbose) . JSON ( ) ( 'KEY') ('KEY_s') . ('KEY_le') . . 'y': YAML . : 'i': JSON (implemented) . 'smartctl_NNNN_i' . 'u': JSON (unimplemented). 'smartctl_NNNN_u' . -q TYPE, --quietmode=TYPE smartctl (quiet modes) . : errorsonly - : '-l error' SMART (power-on time) '-l selftest' '-H' " " (disk failing) SMART (Attributes) ( ) '-A' ( ) . silent - . smartctl ( (EXIT STATUS) ). noserial - . LU WWN (ATA) SAS (SCSI) . ATA NVMe . : SCSI . [ SMARTCTL 7.4] Namespace IEEE EUI-64 (NVMe) . [ SMARTCTL 7.5] (World Wide Name) FARM ( '-l farm' ) . -d TYPE, --device=TYPE . : auto - USB ID . . test - TYPE ( ) TYPE . ata - ATA . SCSI smartctl ATA . scsi - SCSI . ATA smartctl SCSI . nvme[,NSID] - NVM Express (NVMe) . NSID (namespace id ) . 0xffffffff (broadcast namespace id) . NSID . sat[,auto][,N] - SCSI to ATA Translation (SAT) . ATA SCSI SATL) ATA) . SAT ATA PASS THROUGH SCSI . '-d sat,12' '-d sat,16' . '-d sat,auto' SAT ( ATA/SATA) SCSI INQUIRY SATL (VENDOR: "ATA "). SCSI ( SCSI/SAS) . usbasm1352r,PORT - [ SMARTCTL 7.4] SATA ASMedia ASM1352R USB SATA (RAID) . PORT ( 0 1) . : USB '-d sat' . . usbcypress - ATA Cypress USB PATA . ATACB scsi pass through . (operation code) SCSI 0x24 '-d usbcypress,0xN' ( N scsi ) . usbjmicron[,p][,x][,PORT] - SATA JMicron USB PATA/SATA . - ATA ( '-l xerror' ) . '-d usbjmicron,x' . (PORT 0 1) . (port multiplier) PORT . /dev/ice . : ',x' / (I/O) . PORT . Prolific PL2507/3507 USB pass-through JMicron '-d usbjmicron,0' . Prolific '-d usbjmicron,p' . SMART . usbprolific - SATA Prolific PL2571/2771/2773/2775 USB SATA . usbsunplus - SATA SunplusIT USB SATA . sntasmedia[/sat] - NVMe ASMedia USB NVMe . [ SMARTCTL 7.5] '/sat' NVMe Identify Controller '-d sat' . USB M.2 NVMe SATA . sntjmicron[,NSID][/sat] - NVMe JMicron USB NVMe . NSID (namespace id ) . (0xffffffff) . '/sat' '-d sntasmedia' . sntrealtek[/sat] - NVMe Realtek USB NVMe . '/sat' '-d sntasmedia' . marvell - [ ] ( ). megaraid,N - [ FreeBSD ] SCSI/SAS MegaRAID . N ( ) . Dell PERC . : smartctl -a -d megaraid,2 /dev/sda smartctl -a -d megaraid,0 /dev/sdb smartctl -a -d megaraid,0 /dev/bus/0 RAID /dev/bus/N N SCSI . /proc/devices : PERC2/3/4: megadevN PERC5/6: megaraid_sas_ioctlN aacraid,H,L,ID - [ Cygwin] SCSI/SAS SATA AacRaid . H,L,ID ( Lun ID) . : smartctl -a -d aacraid,0,0,2 /dev/sda smartctl -a -d aacraid,1,0,4 /dev/sdb '-d sat,auto+...' SATA . '-d scsi+aacraid,H,L,ID' . /proc/devices : aac. /dev/aacH ( H= ) . 3ware,N - [ FreeBSD ] ATA 3ware RAID . N ( ) . : smartctl -a -d 3ware,2 /dev/sda [ ] smartctl -a -d 3ware,0 /dev/twe0 smartctl -a -d 3ware,1 /dev/twa0 smartctl -a -d 3ware,1 /dev/twl0 [ ] smartctl -a -d 3ware,1 /dev/tws0 [ FreeBSD] /dev/sda-z ( ) /dev/twe0-15 6000 7000 8000 3ware 3x-xxxx . /dev/twa0-15 9000 3ware 3w-9xxx . /dev/twl0-15 [] /dev/tws0-15 [FreeBSD] 3ware/LSI 9750 3w-sas . /dev/tw[ls]?, /dev/twa? /dev/twe? smartctl . areca,N - [ FreeBSD Cygwin] SATA Areca SATA RAID . N ( ) . : smartctl -a -d areca,2 /dev/sg2 smartctl -a -d areca,3 /dev/sg3 Areca RAID . Areca RAID . : cat /proc/scsi/sg/device_hdr /proc/scsi/sg/devices SCSI ( /dev/sg0) . SCSI smartmontools (type) . / . . : Areca . . SCSI () SMART . areca,N/E - [ FreeBSD Cygwin] SATA SAS Areca SAS RAID . N ( ) () E ( ) (enclosure) . : . Areca SAS . cciss,N - [ FreeBSD ] SCSI/SAS SATA cciss RAID . N ( ) . '-d sat,auto+...' SATA . '-d scsi+cciss,N' . HP Smart Array : smartctl -a -d cciss,0 /dev/cciss/c0d0 ( cciss ) smartctl -a -d cciss,0 /dev/sg2 ( hpsa hpahcisr ) hpt,L/M/N - [ FreeBSD ] ATA HighPoint RocketRAID . L M N PMPort . L M N PMPort ( ) . HighPoint RocketRAID . : smartctl -a -d hpt,1/3 /dev/sda ( ) smartctl -a -d hpt,1/2/3 /dev/sda ( ) /dev/sda-z HighPoint RocketRAID FreeBSD ( /dev/hptrr, /dev/hptmv6). sssraid,E,S - [ : SMARTCTL 7.4] SCSI/SAS SATA SSSRAID . E ( ) (enclosure) S ( ) . : smartctl -a -d sssraid,0,1 /dev/bsg/sssraid0 RAID /dev/bsg/sssraidN N SCSI . intelliprop,N[+TYPE] - ( ). jmb39x[-q[2]],N[,sLBA][,force][+TYPE] - SATA JMicron JMB39x RAID . '-q' (NAS) QNAP TR-004 . N . [ SMARTCTL 7.5] '-q2' NAS QNAP TR-002 . : ATA pass-through READ/WRITE LBA RAID . . LBA . LBA ( ) . GPT LBA 33 ( ) . . MBR LBA 33 (boot loader) . . 'force' . : smartctl . jms56x,N[,sLBA][,force][+TYPE] - SATA JMicron JMS56x USB SATA RAID . 'jmb39x...' . -T TYPE, --tolerance=TYPE [ ATA] smartctl ATA SMART . smartctl <<>> (optional) <<>> (mandatory). <<>> << SMART ATA >> <<>> << SMART ATA .>> ATA SMART <<>> : () ATA IDENTIFY DEVICE () SMART ENABLE/DISABLE ATTRIBUTE AUTOSAVE () SMART ENABLE/DISABLE () SMART RETURN STATUS. : normal - SMART SMART . . SMART . smartctl <> <> . X . conservative - SMART . permissive - () SMART . . . <> <> . X . verypermissive - '-T permissive' : SMART . . -b TYPE, --badsum=TYPE [ ATA] smartctl (checksum error) : () (Device Identity Structure) () SMART (SMART Self-Test Log Structure) () SMART (SMART Attribute Value Structure) () SMART (SMART Attribute Threshold Structure) () ATA (ATA Error Log Structure). : warn - . . exit - smartctl . ignore - . -r TYPE, --report=TYPE smartmontools smartmontools . smartctl . . ioctl() . ioctl() . : ioctl - ioctl() . ataioctl - ioctl() ATA . scsiioctl - ioctl() SCSI . SCSI . . nvmeioctl - ioctl() NVMe . . . ataioctl,2 '-r ataioctl,1' '-r ataioctl' . '-' '-r ataioctl,2' smartctl . ATA (stdin) . smartctl ATA . SCSI . -n POWERMODE[,STATUS[,STATUS2]], --nocheck=POWERMODE[,STATUS[,STATUS2]] [ATA SCSI] (low-power mode) smartctl . (spin-up) smartctl . . : '-d' . . . ( << >> EXIT STATUS ). STATUS . STATUS ( ) . '-n standby,0' SLEEP STANDBY . '-n standby,3' . : never - '-i' . sleep[,STATUS[,STATUS2]] - SLEEP . standby[,STATUS[,STATUS2]] - SLEEP STANDBY . . idle[,STATUS[,STATUS2]] - SLEEP STANDBY IDLE . IDLE . '-n' . [ ATA] STATUS2 smartctl STATUS2 . '-n standby,3,5' STANDBY UNSUPPORTED . / SMART: : . . -s VALUE, --smart=VALUE SMART . on off . [ATA] ATA SMART ENABLE/DISABLE OPERATIONS ATA ACS-4 ( ) . [ SCSI] TapeAlert SMART ( ). -o VALUE, --offlineauto=VALUE [ ATA] SMART . . on off . SMART ATA ATA/ATAPI <<>> (Obsolete) . SFF-8035i . ATA . . <> SMART ( '-c' ) . SMART . <<>> (online) . '-s on' . <<>> (offline) . . '-o on' . . . '-t offline' . testing () ( SFF-8035i ATA ) . (data collection) . ( ) (Attributes) SMART . SMART . '-A' '-l error' . SMART . '-A' UPDATED . <> <> . ( 'testing' ) <<>> (self-testing) . () . '-t' '-X' . SMART '-l selftest' . : "Test" ( <<>>) . "Self-test" . -S VALUE, --saveauto=VALUE [ATA] (autosave) SMART . on off . . ATA SMART . SCSI ( ) smartctl . ATA SMART ENABLE/DISABLE AUTOSAVE ATA ACS-4 ( ) . [SCSI] SCSI Global Logging Target Save Disabled (GLTSD) (Control Mode Page) . . (non-volatile) . GLTSD 'smartctl -a' . on GLTSD . (streaming-video) off GLTSD . -g NAME, --get=NAME, -s NAME[,VALUE], --set=NAME[,VALUE] SMART / . '-s' '--set' '--smart' . : all - . '-g aam -g apm -g lookahead -g security -g wcache -g rcache -g dsn' aam[,N|off] - [ ATA] (Automatic Acoustic Management AAM) / ( ). () () 'off' AAM . . () / ( ) . AAM 4a ATA ACS-2 ( ) . apm[,N|off] - [ ATA] (Advanced Power Management APM) / ( ). APM 'off' APM . APM . (spindown) . lookahead[,on|off] - [ ATA] (read look-ahead) / ( ). . security - [ ATA] ATA ( ). ATA ATA . (reset) . security-freeze - [ ATA] ATA (frozen mode) . . BIOS . standby,[N|off] - [ATA] (standby/spindown timer) IDLE . 'off' . . . . . . . get ATA . '-s standby,now' STANDBY IDLE . ATA . [SCSI] 'standby,off' 'standby,0' SCSI "ACTIVE" . standby,now - [ATA] STANDBY . . '-s standby,[N|off]' . [SCSI] SCSI "STANDBY_Z" . wcache[,on|off] - [ATA] (volatile write cache) / ( ). . wcache[,on|off] - [SCSI] <> (WCE) / ( ). . wcache-sct[,ata|on|off[,p]] - [ ATA] SCT Feature Control / ( ). SCT Feature Control <> <> <> . SCT Feature Control ATA Set Features ( wcache[,on|off]) . SCT Feature Control <> <> wcache[,on|off] . SCT Feature Control <> . ',p' . wcreorder[,on|off[,p]] - [ ATA] (Write Cache Reordering) / . (off) (FIFO) . (on) . Write Cache Reordering ( ) . Write Cache Reordering NCQ LCQ . ',p' . rcache[,on|off] - [ SCSI] <> (RCE) / . 'Off' ( ). . dsn[,on|off] - [ ATA] DSN / ( ). dsn . SMART (SMART READ AND DISPLAY DATA OPTIONS): -H, --health . . '-x' . [ATA] () SMART RETURN STATUS . ATA ( RAID USB) . smartctl (Attributes) (Prefailure) SMART (threshold) ( '-A' ). [SCSI] (ASC) (ASCQ) Informal Exceptions (IE) ( ) / (sense data) (SCSI) . [ SCSI] TapeAlert TapeAlert ( TAPE DRIVES ). [NVMe] NVMe <> ( ) SMART/Health . -c, --capabilities [ATA] SMART . SMART SMART . . . [NVMe] NVMe Identify Controller Identify Namespace . -A, --attributes [ATA] (Attributes) SMART . . <> ( / ) : . (<>) <> (<>) <> . [: smartctl .] (Raw Value) . (<>) (<>) . smartctl . <> <> : (firmware) . SMART . smartctl . . . . IBM . (Threshold) ( ) <> . (fail ) . (pre-failure) . <<>> (Worst) <> . ( ) SMART . [ <> (rate-type) .] smartctl <> () . : Pre-failure () Old age ( / ). Pre-failure . Old age . : <> ! . <> <> . <> . <> ( : '-' ) ( ) . <> SMART . <> <> . : (Raw) << >> <<>> << ->> (Start-Stop Cycles). - . ( ) (Threshold) . smartctl SMART . ATA/ATAPI-4 (vendor- specific) . ATA/SATA . (SSD) . smartctl smartmontools . ATA SMART READ DATA ATA ACS-4 ( ) . [SCSI] SCSI <<>> - . . ( ATA) . [NVMe] NVMe SMART/Health . [ SMARTCTL 7.5] SMART/Health (namespace) (broadcast namespace) . -f FORMAT, --format=FORMAT [ ATA] : old - smartctl. '-x' . brief - ( ). . '-x' . hex,id - . hex,val - . hex - '-f hex,id -f hex,val' . -l TYPE, --log=TYPE (logs) . : error - [ATA] SMART (Summary SMART error log) . SMART . (idle standby ) . (ER Error Register) (SR Status Register) . : ABRT: Command ABoRTed AMNF: Address Mark Not Found CCTO: Command Completion Timed Out EOM: End Of Media ICRC: Interface Cyclic Redundancy Code (CRC) error IDNF: IDentity Not Found ILI: (packet command-set specific) MC: Media Changed MCR: Media Change Request NM: No Media obs: obsolete TK0NF: TracK 0 Not Found UNC: UNCorrectable Error in Data WP: Media is Write Protected . Dd+HH:MM:SS.msec D HH MM SS msec . [: ^ (wrap) .] ATA . ATA (CR) (FR) . : READ LONG (w/ retry) [OBS-4] ATA-4 . [RET-N] ATA-N . ATA [NS] . ATA ( ATA ACS-2 A.7.1) : << (ID Not Found) LBA (servo) . .>> : UNC (UNCorrectable): . (ECC) . . IDNF (ID Not Found): . READ LOG IDNF (checksum) . READ WRITE (LBA Logical Block Address) . LBA (sectors) . ( SMART LBA 0xfffffff LBA . (GiB) (GB) .) smartmontools LBA . ATA . error - [SCSI] (verifies) . verify . error[,NUM] - [NVMe] NVMe (NVMe Error Information log) . . NUM . ( ). / <> SMART/Health . xerror[,NUM][,error] - [ ATA] SMART (Extended Comprehensive SMART error log) ( General Purpose Log 0x03). SMART ( '-l error' ) LBA ATA-6 . (sector) . . . . NUM . ',error' SMART SMART . SMART . SMART . selftest - [ATA] SMART . '-t' . ( / [captive]) . . . [: ^ .] (LBA) . selftest - [SCSI] SCSI ATA . ( ) . SCSI <<>> (foreground) <<>> (background) ( <> <> ATA) <<>> (short) <<>> (long) ( <> <> ATA) . (segment number) . . (LBA) . (Sense Key SK) (ASC) (ASCQ) . '-t' ( ATA) . selftest - [NVMe: SMARTCTL 7.4] NVMe . [ SMARTCTL 7.5] (broadcast namespace) . . xselftest[,NUM][,selftest] - [ ATA] SMART ( General Purpose Log 0x07) . SMART ( '-l selftest' ) LBA . . . . NUM . ',selftest' SMART SMART . selective - [ ATA] '-t select' . (LBA) / (test spans) . LBA . ( '-t afterselect' ) ( '-t pending' ). directory[,gs] - [ ATA] General Purpose Logging (ATA-6 ) (Log Directory - 0) . ( ) . [ SMART] [ SMART] error selftest . smartctl ATA General Purpose Log (GPL) SMART Log (SL) . '-l directory,g' '-l directory,s' GPL SL . background - [ SCSI] (BMS Background Media Scans) / ( ) SCSI . BMS ( ) . <<>> . . . 4.18 SBC-3 ( www.t10.org ). scttemp, scttempsts, scttemphist - [ ATA] SMART Command Transport (SCT) . 'scttempsts' SCT Status 'scttemphist' SCT Data Table 'scttemp' . / . '-l scttempint,N[,p]' . SCT ATA8-ACS ATA-7 . scttempint,N[,p] - [ ATA] SCT N . ',p' / . () (hard reset) . . scterc[,READTIME,WRITETIME][,p|reset] - [ ATA] SCT ( SCT Error Recovery Control) . TLER ( ) CCTL ( /HGST) ERC ( ) . READTIME WRITETIME ( ) . 0 65 . RAID 70,70 . 'scterc,READTIME,WRITETIME,p' (power-on reset) . 'scterc,p' . 'scterc,reset' SCT . ',p' ',reset' ATA ACS-4 . devstat[,PAGE] - [ ATA] Device Statistics ATA ( General Purpose Log 0x04) . (PAGE) . PAGE 0 . Device Statistics ACS-2 . defects[,NUM] - [ATA] LBA ATA ( ATA Pending Defects log General Purpose Log 0x0c) . . NUM . . ACS-4 01 ( ) . defects - [SCSI] LBA ( defect) . ( ) LBA ( ) . LBA . envrep - [ SCSI] Environmental reporting SCSI . . . genstats - [ SCSI: SMARTCTL 7.4] (General statistics and performance) SCSI . sataphy[,reset] - [ SATA] SATA Phy ( General Purpose Log 0x11) . '-l sataphy,reset' . SATA Packet CD/DVD . sasphy[,reset] - [ SAS (SCSI)] SAS (SSP) ( 0x18) . '-l sasphy,reset' . tapealert - [ SCSI] Tape Alert (SSC) . TAPE DRIVES . tapedevstat - [ SCSI] Device Statistics (SSC) . zdevstat - [ SCSI] Zoned Block Device Statistics (ZBC-2) . gplog,ADDR[,FIRST[-LAST|+SIZE]] - [ ATA] General Purpose Logging (GPL) . ADDR ( '-l directory' ). () FIRST-LAST FIRST+SIZE . FIRST 0 SIZE 1 . LAST 'max' . smartlog,ADDR[,FIRST[-LAST|+SIZE]] - [ ATA] SMART Read Log . '-l gplog,...' . : smartctl -l gplog,0x80,10-15 /dev/sda smartctl -l gplog,0x80,10+6 /dev/sda smartctl -l smartlog,0x80,10-15 /dev/sda 10-15 0x80 ( ) . 'xxd -r' . : smartctl -l gplog,0x11 /dev/sda | grep ^0 | xxd -r >log.bin 0x11 ( SATA Phy) log.bin . nvmelog,PAGE,SIZE - [ NVMe] SIZE NVMe PAGE . PAGE 0x1 0xff . SIZE 0x4 0x4000 ( ) . : . . ssd - [ATA] Solid State Device Statistics . '-l devstat,7' . ssd - [SCSI] (percentage used endurance) . 0 100 . 255 . farm - [ Seagate ATA SAS (SCSI): SMARTCTL 7.4] FARM Field Access Reliability Metrics (FARM) . ATA SAS . : FARM . -v ID,FORMAT[:BYTEORDER][,NAME], --vendorattribute=ID,FORMAT... [ ATA] (FORMAT) (BYTEORDER) (NAME) (Attribute ID) . . (Attribute ID) . 'N' ID . BYTEORDER '012345rvwz' . '0' '5' 'r' 'v' 'w' 'z' . BYTEORDER '543210' 'r543210' '543210wv' . '-v 5,raw48:012345' (big endian) (little endian) . NAME (underscore) . . '-P showall' . -v help - ( STDOUT) . FORMAT : raw8 - (Raw) . . raw16 - . . raw48 - . . hex48 - . . raw56 - . . hex56 - . . raw64 - . . SSD Indilinx . hex64 - . . SSD Indilinx . min2hour - (power-on time) . "Xh+Ym" . X Y 0-59 ( ) . Y "06" "31" "00". sec2hour - . "Xh+Ym+Zs" . X Y 0-59 Z 0-59 . Y Z "06" "31" "00". halfmin2hour - . . "Xh+Ym" . X Y 0-59 . Y "06" "31" "00". msec24hour32 - . "Xh+Ym+Z.Ms" . X Y Z M . tempminmax - . / . . ( ) / . temp10x - . raw16(raw16) - (words) . . raw16(avg16) - (spin-up time) . "Average" () . . raw24(raw8) - . . raw24/raw24 - . (load cycles) . / (unload cycles) . ( emergency unload ). . raw24/raw32 - . '-v' : 9,minutes - : 9,min2hour,Power_On_Minutes. 9,seconds - : 9,sec2hour,Power_On_Seconds. 9,halfminutes - : 9,halfmin2hour,Power_On_Half_Minutes. 9,temp - : 9,tempminmax,Temperature_Celsius. 192,emergencyretractcyclect - : 192,raw48,Emerg_Retract_Cycle_Ct 193,loadunload - : 193,raw24/raw24. 194,10xCelsius - : 194,temp10x,Temperature_Celsius_x10. 194,unknown - : 194,raw48,Unknown_Attribute. 197,increasing - : 197,raw48,Total_Pending_Sectors. (Current Pending Sector Count) ( smartd.conf(5) ). 198,increasing - : 198,raw48,Total_Offl_Uncorrectabl. (Offline Uncorrectable Sector Count) ( smartd.conf(5) ). 198,offlinescanuncsectorct - : 198,raw48,Offline_Scan_UNC_SectCt. 200,writeerrorcount - : 200,raw48,Write_Error_Count. 201,detectedtacount - : 201,raw48,Detected_TA_Count. 220,temp - : 220,tempminmax,Temperature_Celsius. -F TYPE, --firmwarebug=TYPE [ ATA] smartctl . . : none - ATA . '-F' . . nologdir - SMART GP . . SSD Intel 0 (freeze ). samsung - (Samsung) ( : SV4012H : RM100-08) SMART ( ATA). smartctl . : () () ATA ATA () ATA . samsung2 - ATA . smartctl . SMART . (0x0005) (0x5000) . samsung3 - ( SP2514N VF100-37) . ( '-c' '-a' ) . xerrorlba - LBA SMART (Extended Comprehensive SMART error log) . ATA (little endian) LBA . swapid - ATA ( ) . -P TYPE, --presets=TYPE [ ATA] smartctl . smartmontools . show showall smartmontools . ( -v -F smartctl ) smartmontools smartmontools . . : use - . . ('-v N,something') '-F' . ignore - . show - . showall - . . '-P showall' . : smartctl -P showall : smartctl -P showall 'MODEL' MODEL : smartctl -P showall 'MODEL' 'FIRMWARE' MODEL (FIRMWARE) . -B [+]FILE, --drivedb=[+]FILE [ ATA] FILE . . '+' . /etc/smart_drivedb.h . /usr/share/smartmontools/drivedb.h . /usr/bin/update-smart-drivedb SVN smartmontools . C/C++ . () C/C++ . : /* Full entry: */ { "Model family", // Info about model family/series. "MODEL1.*REGEX", // Regular expression to match model of device. "VERSION.*REGEX", // Regular expression to match firmware version(s). "Some warning", // Warning message. "-v 9,minutes" // String of preset -v and -F options. }, /* Minimal entry: */ { "", // No model family/series info. "MODEL2.*REGEX", // Regular expression to match model of device. "", // All firmware versions. "", // No warning. "" // No options preset. }, /* USB ID entry: */ { "USB: Device; Bridge", // Info about USB device and bridge name. "0x1234:0xabcd", // Regular expression to match vendor:product ID. "0x0101", // Regular expression to match bcdDevice. "", // Not used. "-d sat" // String with device type option. }, /* ... */ / SMART (SMART RUN/ABORT OFFLINE TEST AND self-test OPTIONS): -t TEST, --test=TEST TEST . '-C' ( ATA ) ( SCSI << >> ) . . (power cycle) . . '-t TEST' ( '-C') . . / (I/O) . . . [ATA] ATA SMART EXECUTE OFF- LINE IMMEDIATE ( ) ATA ACS-4 Revision 10 ( ) . : offline - [ATA] SMART (SMART Immediate Offline Test) . . . SMART SMART '-l error' . '-c' smartctl <> '-c' smartctl . '-c' <> '-c' . offline - [SCSI] . . short - [ATA] SMART ( ) . ( - '-C' ). . <> . (Self Test Error Log) '-l selftest' . '-c' . short - [SCSI] <> . short - [NVMe: SMARTCTL 7.4] <> (namespace) . long - [ATA] SMART ( ) . . ( - '-C' ). long - [SCSI] <> . long - [NVMe: SMARTCTL 7.4] <> . conveyance - [ ATA] SMART ( ) . . . ( - '-C' ). select,N-M, select,N+SIZE - [ ATA] SMART (LBAs) . LBA <<>> (span) LBA (N) LBA (M) N M . N+SIZE . N-max . : smartctl -t select,10-20 /dev/sda smartctl -t select,10+11 /dev/sda LBA ( ) . : smartctl -t select,100000000-max /dev/sda LBA . '-t' . : smartctl -t select,0-100 -t select,1000-2000 /dev/sda . LBA LBA . : smartctl -t select,0-10 -t select,5-15 -t select,10-20 /dev/sda ( ) SMART '-l selftest' smartctl . : (smartctl -t long) . ( SYSLOG SMART) (LBAs) . ( - '-C' ). : select,redo[+SIZE] - [ ATA] SMART LBA. LBA LBA LBA +SIZE . : smartctl -t select,10-20 /dev/sda smartctl -t select,redo /dev/sda smartctl -t select,redo+20 /dev/sda : smartctl -t select,10-20 /dev/sda smartctl -t select,10-20 /dev/sda smartctl -t select,10-29 /dev/sda select,next[+SIZE] - [ ATA] SMART LBA . LBA (LBA + ) . +SIZE . : smartctl -t select,0-999 /dev/sda smartctl -t select,next /dev/sda smartctl -t select,next+2000 /dev/sda : smartctl -t select,0-999 /dev/sda smartctl -t select,1000-1999 /dev/sda smartctl -t select,2000-3999 /dev/sda LBA LBA 0 . '-t select,next' . select,cont[+SIZE] - [ ATA] 'redo' ( ) . 'next' ( ) . afterselect,on - [ ATA] . select,N-M . LBA . (power- cycled) (pending timer - ) . . afterselect,off - [ ATA] . select,N-M . . pending,N - [ ATA] N . N 0 65535 ( ) . N . select,N-M . . vendor,N - [ ATA] ATA SMART EXECUTE OFF-LINE IMMEDIATE N LBA LOW . 0x00 0xff . 0x40-0x7e 0x90-0xff T13/1699-D Revision 6a (ATA8-ACS) . 0x00-0x04 0x7f 0x81-0x84 smartctl ( 0x01: '-t short' 0x7f: '-X' 0x82: '-C -t long'). : . SSD (Intel): 0x40 ('-t vendor,0x40') SMART (226 227 228) . 65535 (0xffff) . force - . . -C, --captive [ATA] (captive mode) . '-t offline' '-t' . : . ! [SCSI] <<>> (Foreground) . -X, --abort (non-captive) SMART . <> . ATA SCSI SAT (ATA, SCSI command sets and SAT) ATA SCSI . . SCSI ( SAS FC iSCSI) SCSI ( FC SAS) ATA ( SATA) . USB IEEE 1394 SCSI ATA SATA ( ) . ATA SCSI . SCSI INQUIRY READ CAPACITY READ WRITE ATA . SCSI ATA SCSI ( READ WRITE) ATA . << >> . SCSI ATA SAT ( SCSI to ATA Translation) (ANSI INCITS 431-2007) . SAT . SCSI ATA PASS-THROUGH ( ). SCSI . <> ( ) . smartmontools ( smartctl) <<>> . <> ( ) smartmontools . ( SATA) SAT smartmontools . -d sat . smartmontools . RAID 1 . SATA RAID 1 . SATA smartmontools . smartmontools RAID 1 ( NAS) . (TAPE DRIVES) SCSI SSC-4 (ANSI INCITS 516-2013). SSC <> ( SCSI) . . SMART SCSI SCSI . (log page) <> . TapeAlert ( ) TapeAlert - (I_T nexus) (SCSI LOG SENSE) ( HBA ) . [ TAPLSD [SSC] Device Configuration Extension : TapeAlert. sdparm TAPLSD .] smartctl (polling) TapeAlert --health . . smartctl TapeAlert --health ( --log=tapealert ). --log=tapedevstat ( ). (EXAMPLES) smartctl -a /dev/sda SMART /dev/sda. smartctl -s off /dev/sdd SMART /dev/sdd. smartctl --smart=on --offlineauto=on --saveauto=on /dev/sda SMART /dev/sda SMART. (init) . . smartctl -t long /dev/sdc () /dev/sdc. . -l selftest . smartctl -s on -t offline /dev/sda SMART /dev/sda. . SMART -A . SMART -l error . smartctl -A -v 9,minutes /dev/sda (vendor) . smartctl -q errorsonly -H -l selftest /dev/sda SMART . smartctl -q silent -a /dev/sda SMART /dev/sda . ( $?) SMART . smartctl -a -d 3ware,0 /dev/twl0 SMART SATA ( SAS) 3ware RAID 9750. smartctl -t long -d areca,4 /dev/sg2 SATA Areca RAID /dev/sg2. smartctl -a -d hpt,1/3 /dev/sda ( ) smartctl -a -d hpt,1/3 /dev/hptrr ( FreeBSD) SMART (S)ATA HighPoint RocketRAID. smartctl -t short -d hpt,1/1/2 /dev/sda ( ) smartctl -t short -d hpt,1/1/2 /dev/hptrr ( FreeBSD) (S)ATA pmport HighPoint RocketRAID. smartctl -t select,10-100 -t select,30-300 -t afterselect,on -t pending,45 /dev/sda LBA . LBA . . smartctl -a -d cciss,0 /dev/cciss/c0d0 SMART SCSI cciss RAID. (EXIT STATUS) smartctl (bitmask) . ( ) smartctl ( ). . ATA SCSI . : ( ). : IDENTIFY DEVICE ( -n ). : SMART ATA (checksum) SMART ( -b ). : SMART <> ( ) . : (prefail) (threshold) . : SMART <> ( ) . : . : . [ ATA] . ( POSIX ): smartstat=$(($? & 8)) $? ( 2^3=8). smartstat$ SMART <> . : val=$?; mask=1 for i in 0 1 2 3 4 5 6 7; do echo "Bit $i: $(((val & mask) && 1))" mask=$((mask << 1)) done (FILES) /usr/bin/smartctl . /usr/share/smartmontools/drivedb.h ( -B ). /etc/smart_drivedb.h ( -B ). (AUTHORS) Bruce Allen ( ) Christian Franke ( ) Douglas Gilbert ( SCSI) Volker Kuhlmann ( ) Gabriele Pohl ( ) Alex Samorukov ( FreeBSD Trac). AUTHORS ChangeLog . smartmontools smartsuite Michael Cornwell Andre Hedrick . (REPORTING BUGS) smartmontools : . smartmontools : . (SEE ALSO) smartd(8). update-smart-drivedb(8). (REFERENCES) : smartmontools Monitoring Hard Disks with SMART Bruce Allen Linux Journal - . : . SMART . . <> (ATA/ATAPI-7) 4b . SMART smartmontools . SMART SFF-8035i SFF-8055i . . (SFF) . smartmontools . (PACKAGE VERSION) smartmontools-7.5 2025-04-30 r5714 $Id: smartctl.8.in 5692 2025-04-21 15:21:15Z chrfranke $ smartmontools-7.4 2023-05-09 SMARTCTL(8)