Skip to content

Instantly share code, notes, and snippets.

@polymorphm
Created October 7, 2014 19:31
Show Gist options
  • Save polymorphm/8d0c6284735408e240bb to your computer and use it in GitHub Desktop.
Save polymorphm/8d0c6284735408e240bb to your computer and use it in GitHub Desktop.
# smartctl -d sat -x /dev/sdb
[regular-user@localhost ~]$ sudo -i
[sudo] password for regular-user:
[root@localhost ~]# smartctl -x /dev/sdb
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.16.3-1-ARCH] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
/dev/sdb: Unknown USB bridge [0x04e8:0x61c8 (0x1301)]
Please specify device type with the -d option.
Use smartctl -h to get a usage summary
[root@localhost ~]# smartctl -d sat -x /dev/sdb
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.16.3-1-ARCH] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Samsung SpinPoint M8U (USB)
Device Model: ST1000LM025 HN-M101ABB
Serial Number: F0583G941A18WD
LU WWN Device Id: 0 000000 000000000
Firmware Version: 2BA30001
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 6
SATA Version is: SATA 3.0, 3.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Tue Oct 7 23:30:59 2014 MSK
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is: Disabled
APM feature is: Disabled
Rd look-ahead is: Enabled
Write cache is: Enabled
ATA Security is: Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: Unknown
=== START OF READ SMART DATA SECTION ===
SMART Status not supported: Incomplete response, ATA output registers missing
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (13260) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 221) minutes.
SCT capabilities: (0x003f) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE
1 Raw_Read_Error_Rate POSR-K 100 100 051 - 1
2 Throughput_Performance -OS--K 252 252 000 - 0
3 Spin_Up_Time PO---K 090 090 025 - 3187
4 Start_Stop_Count -O--CK 100 100 000 - 76
5 Reallocated_Sector_Ct PO--CK 252 252 010 - 0
7 Seek_Error_Rate -OSR-K 252 252 051 - 0
8 Seek_Time_Performance --S--K 252 252 015 - 0
9 Power_On_Hours -O--CK 100 100 000 - 66
10 Spin_Retry_Count -O--CK 252 252 051 - 0
11 Calibration_Retry_Count -O--CK 252 252 000 - 0
12 Power_Cycle_Count -O--CK 100 100 000 - 41
191 G-Sense_Error_Rate -O---K 252 252 000 - 0
192 Power-Off_Retract_Count -O---K 252 252 000 - 0
194 Temperature_Celsius -O---- 064 064 000 - 32 (Min/Max 24/53)
195 Hardware_ECC_Recovered -O-RCK 100 100 000 - 0
196 Reallocated_Event_Count -O--CK 252 252 000 - 0
197 Current_Pending_Sector -O--CK 252 252 000 - 0
198 Offline_Uncorrectable ----CK 252 252 000 - 0
199 UDMA_CRC_Error_Count -OS-CK 200 200 000 - 0
200 Multi_Zone_Error_Rate -O-R-K 100 100 000 - 7
223 Load_Retry_Count -O--CK 252 252 000 - 0
225 Load_Cycle_Count -O--CK 100 100 000 - 629
||||||_ K auto-keep
|||||__ C event count
||||___ R error rate
|||____ S speed/performance
||_____ O updated online
|______ P prefailure warning
General Purpose Log Directory Version 1
SMART Log Directory Version 1 [multi-sector log support]
Address Access R/W Size Description
0x00 GPL,SL R/O 1 Log Directory
0x01 SL R/O 1 Summary SMART error log
0x02 SL R/O 2 Comprehensive SMART error log
0x03 GPL R/O 2 Ext. Comprehensive SMART error log
0x06 SL R/O 1 SMART self-test log
0x07 GPL R/O 2 Extended self-test log
0x08 GPL R/O 2 Power Conditions log
0x09 SL R/W 1 Selective self-test log
0x10 GPL R/O 1 NCQ Command Error log
0x11 GPL R/O 1 SATA Phy Event Counters
0x80-0x9f GPL,SL R/W 16 Host vendor specific log
0xc0-0xdf GPL,SL VS 16 Device vendor specific log
0xe0 GPL,SL R/W 1 SCT Command/Status
0xe1 GPL,SL R/W 1 SCT Data Transfer
SMART Extended Comprehensive Error Log Version: 1 (2 sectors)
No Errors Logged
SMART Extended Self-test Log Version: 1 (2 sectors)
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Completed [00% left] (0-65535)
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
SCT Status Version: 2
SCT Version (vendor specific): 256 (0x0100)
SCT Support Level: 1
Device State: Active (0)
Current Temperature: 33 Celsius
Power Cycle Min/Max Temperature: 31/33 Celsius
Lifetime Min/Max Temperature: 22/53 Celsius
Under/Over Temperature Limit Count: 0/0
SCT Temperature History Version: 2
Temperature Sampling Period: 5 minutes
Temperature Logging Interval: 5 minutes
Min/Max recommended Temperature: -5/80 Celsius
Min/Max Temperature Limit: -10/85 Celsius
Temperature History Size (Index): 128 (44)
Index Estimated Time Temperature Celsius
45 2014-10-07 12:55 33 **************
46 2014-10-07 13:00 42 ***********************
47 2014-10-07 13:05 35 ****************
48 2014-10-07 13:10 34 ***************
49 2014-10-07 13:15 35 ****************
50 2014-10-07 13:20 36 *****************
51 2014-10-07 13:25 38 *******************
52 2014-10-07 13:30 39 ********************
53 2014-10-07 13:35 41 **********************
54 2014-10-07 13:40 42 ***********************
55 2014-10-07 13:45 43 ************************
56 2014-10-07 13:50 43 ************************
57 2014-10-07 13:55 44 *************************
58 2014-10-07 14:00 44 *************************
59 2014-10-07 14:05 44 *************************
60 2014-10-07 14:10 45 **************************
... ..( 7 skipped). .. **************************
68 2014-10-07 14:50 45 **************************
69 2014-10-07 14:55 46 ***************************
... ..( 21 skipped). .. ***************************
91 2014-10-07 16:45 46 ***************************
92 2014-10-07 16:50 47 ****************************
93 2014-10-07 16:55 46 ***************************
94 2014-10-07 17:00 46 ***************************
95 2014-10-07 17:05 47 ****************************
... ..( 4 skipped). .. ****************************
100 2014-10-07 17:30 47 ****************************
101 2014-10-07 17:35 46 ***************************
102 2014-10-07 17:40 47 ****************************
103 2014-10-07 17:45 46 ***************************
104 2014-10-07 17:50 46 ***************************
105 2014-10-07 17:55 46 ***************************
106 2014-10-07 18:00 47 ****************************
107 2014-10-07 18:05 47 ****************************
108 2014-10-07 18:10 46 ***************************
... ..( 2 skipped). .. ***************************
111 2014-10-07 18:25 46 ***************************
112 2014-10-07 18:30 47 ****************************
113 2014-10-07 18:35 47 ****************************
114 2014-10-07 18:40 47 ****************************
115 2014-10-07 18:45 46 ***************************
116 2014-10-07 18:50 46 ***************************
117 2014-10-07 18:55 46 ***************************
118 2014-10-07 19:00 47 ****************************
... ..( 31 skipped). .. ****************************
22 2014-10-07 21:40 47 ****************************
23 2014-10-07 21:45 48 *****************************
... ..( 11 skipped). .. *****************************
35 2014-10-07 22:45 48 *****************************
36 2014-10-07 22:50 49 ******************************
37 2014-10-07 22:55 49 ******************************
38 2014-10-07 23:00 46 ***************************
39 2014-10-07 23:05 45 **************************
40 2014-10-07 23:10 46 ***************************
41 2014-10-07 23:15 46 ***************************
42 2014-10-07 23:20 46 ***************************
43 2014-10-07 23:25 32 *************
44 2014-10-07 23:30 33 **************
SMART WRITE LOG does not return COUNT and LBA_LOW register
SCT (Get) Error Recovery Control command failed
Device Statistics (GP Log 0x04) not supported
SATA Phy Event Counters (GP Log 0x11)
ID Size Value Description
0x0001 4 0 Command failed due to ICRC error
0x0002 4 0 R_ERR response for data FIS
0x0003 4 0 R_ERR response for device-to-host data FIS
0x0004 4 0 R_ERR response for host-to-device data FIS
0x0005 4 0 R_ERR response for non-data FIS
0x0006 4 0 R_ERR response for device-to-host non-data FIS
0x0007 4 0 R_ERR response for host-to-device non-data FIS
0x0008 4 0 Device-to-host non-data FIS retries
0x0009 4 1 Transition from drive PhyRdy to drive PhyNRdy
0x000a 4 0 Device-to-host register FISes sent due to a COMRESET
0x000b 4 0 CRC errors within host-to-device FIS
0x000d 4 0 Non-CRC errors within host-to-device FIS
0x000f 4 0 R_ERR response for host-to-device data FIS, CRC
0x0010 4 0 R_ERR response for host-to-device data FIS, non-CRC
0x0012 4 0 R_ERR response for host-to-device non-data FIS, CRC
0x0013 4 0 R_ERR response for host-to-device non-data FIS, non-CRC
0x8e00 4 0 Vendor specific
0x8e01 4 0 Vendor specific
0x8e02 4 0 Vendor specific
0x8e03 4 0 Vendor specific
0x8e04 4 0 Vendor specific
0x8e05 4 0 Vendor specific
0x8e06 4 0 Vendor specific
0x8e07 4 0 Vendor specific
0x8e08 4 0 Vendor specific
0x8e09 4 0 Vendor specific
0x8e0a 4 0 Vendor specific
0x8e0b 4 0 Vendor specific
0x8e0c 4 0 Vendor specific
0x8e0d 4 0 Vendor specific
0x8e0e 4 0 Vendor specific
0x8e0f 4 0 Vendor specific
0x8e10 4 0 Vendor specific
0x8e11 4 0 Vendor specific
[root@localhost ~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment