Skip to content

Instantly share code, notes, and snippets.

@acovrig
Created December 8, 2020 21:37
Show Gist options
  • Save acovrig/7eebae30c63c509ae41bc07d253248ab to your computer and use it in GitHub Desktop.
Save acovrig/7eebae30c63c509ae41bc07d253248ab to your computer and use it in GitHub Desktop.
smartctl
# smartctl -A /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-2-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 4
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Reallocated_Sector_Ct 0x0032 100 100 --- Old_age Always - 42
9 Power_On_Hours 0x0032 100 100 --- Old_age Always - 20490
12 Power_Cycle_Count 0x0032 100 100 --- Old_age Always - 82
165 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 8148441051401
166 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 141
167 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 76
168 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 211
169 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 342
170 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 42
171 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 0
172 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 43
173 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 171
174 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 42
184 End-to-End_Error 0x0032 100 100 --- Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 --- Old_age Always - 0
188 Command_Timeout 0x0032 100 100 --- Old_age Always - 0
194 Temperature_Celsius 0x0022 072 038 --- Old_age Always - 28 (Min/Max 19/38)
199 UDMA_CRC_Error_Count 0x0032 100 100 --- Old_age Always - 0
230 Unknown_SSD_Attribute 0x0032 100 100 --- Old_age Always - 27531026241802
232 Available_Reservd_Space 0x0033 100 100 004 Pre-fail Always - 100
233 Media_Wearout_Indicator 0x0032 100 100 --- Old_age Always - 86619
234 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 152302
241 Total_LBAs_Written 0x0030 253 253 --- Old_age Offline - 58457
242 Total_LBAs_Read 0x0030 253 253 --- Old_age Offline - 44826
244 Unknown_Attribute 0x0032 000 100 --- Old_age Always - 0
# smartctl -t long -a /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-2-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: SanDisk SDSSDH3500G
Serial Number: 181123806270
LU WWN Device Id: 5 001b44 8b6a41ce6
Firmware Version: X61110RL
User Capacity: 500,107,862,016 bytes [500 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: Unknown(0x0ff0), ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is: SATA >3.2 (0x1ff), 6.0 Gb/s (current: 1.5 Gb/s)
Local Time is: Tue Dec 8 21:30:51 2020 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
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: ( 0) seconds.
Offline data collection
capabilities: (0x11) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
No 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: ( 10) minutes.
SMART Attributes Data Structure revision number: 4
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Reallocated_Sector_Ct 0x0032 100 100 --- Old_age Always - 42
9 Power_On_Hours 0x0032 100 100 --- Old_age Always - 20490
12 Power_Cycle_Count 0x0032 100 100 --- Old_age Always - 82
165 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 8148441051401
166 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 141
167 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 76
168 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 211
169 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 342
170 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 42
171 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 0
172 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 43
173 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 171
174 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 42
184 End-to-End_Error 0x0032 100 100 --- Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 --- Old_age Always - 0
188 Command_Timeout 0x0032 100 100 --- Old_age Always - 0
194 Temperature_Celsius 0x0022 075 038 --- Old_age Always - 25 (Min/Max 19/38)
199 UDMA_CRC_Error_Count 0x0032 100 100 --- Old_age Always - 0
230 Unknown_SSD_Attribute 0x0032 100 100 --- Old_age Always - 27531026241802
232 Available_Reservd_Space 0x0033 100 100 004 Pre-fail Always - 100
233 Media_Wearout_Indicator 0x0032 100 100 --- Old_age Always - 86619
234 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 152302
241 Total_LBAs_Written 0x0030 253 253 --- Old_age Offline - 58457
242 Total_LBAs_Read 0x0030 253 253 --- Old_age Offline - 44826
244 Unknown_Attribute 0x0032 000 100 --- Old_age Always - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 18056 -
# 2 Short offline Completed without error 00% 18054 -
# 3 Short offline Completed without error 00% 18030 -
# 4 Short offline Completed without error 00% 18006 -
# 5 Short offline Completed without error 00% 17982 -
# 6 Short offline Completed without error 00% 17958 -
# 7 Short offline Completed without error 00% 17934 -
# 8 Short offline Completed without error 00% 17910 -
# 9 Extended offline Completed without error 00% 17888 -
#10 Short offline Completed without error 00% 17886 -
#11 Short offline Completed without error 00% 17862 -
#12 Short offline Completed without error 00% 17838 -
#13 Short offline Completed without error 00% 17814 -
#14 Short offline Completed without error 00% 17790 -
#15 Short offline Completed without error 00% 17766 -
#16 Short offline Completed without error 00% 17742 -
#17 Extended offline Completed without error 00% 17720 -
#18 Short offline Completed without error 00% 17718 -
#19 Short offline Completed without error 00% 17694 -
#20 Short offline Completed without error 00% 17671 -
#21 Short offline Completed without error 00% 17647 -
Selective Self-tests/Logging not supported
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".
Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 10 minutes for test to complete.
Test will complete after Tue Dec 8 21:40:51 2020
Use smartctl -X to abort test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment