Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created December 13, 2018 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/8de5b553cf8a928c0470cf9073de6c13 to your computer and use it in GitHub Desktop.
Save grahamc/8de5b553cf8a928c0470cf9073de6c13 to your computer and use it in GitHub Desktop.
[nix-shell:~]# smartctl --all /dev/sda
smartctl 6.6 2017-11-05 r4594 [aarch64-linux-4.14.73] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: INTEL SSDSCKHB340G4
Serial Number: BTWM609507GG340C
LU WWN Device Id: 5 5cd2e4 04c1d8818
Firmware Version: G2010140
User Capacity: 340,076,814,336 bytes [340 GB]
Sector Sizes: 512 bytes logical, 4096 bytes 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: ACS-2 T13/2015-D revision 3
SATA Version is: SATA 2.6, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Thu Dec 13 00:36:23 2018 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: (0x79) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
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: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 2) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 1
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 000 Old_age Always - 0
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 17687
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 7151
170 Unknown_Attribute 0x0033 100 100 010 Pre-fail Always - 0
171 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 0
172 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 0
174 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 6733
175 Program_Fail_Count_Chip 0x0033 100 100 010 Pre-fail Always - 408183706724
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0033 100 100 090 Pre-fail Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 059 059 000 Old_age Always - 41 (Min/Max 35/58)
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 6733
194 Temperature_Celsius 0x0022 100 100 000 Old_age Always - 41
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
199 UDMA_CRC_Error_Count 0x003e 100 100 000 Old_age Always - 0
225 Unknown_SSD_Attribute 0x0032 100 100 000 Old_age Always - 13777360
226 Unknown_SSD_Attribute 0x0032 100 100 000 Old_age Always - 102196
227 Unknown_SSD_Attribute 0x0032 100 100 000 Old_age Always - 4
228 Power-off_Retract_Count 0x0032 100 100 000 Old_age Always - 1045103
232 Available_Reservd_Space 0x0033 100 100 010 Pre-fail Always - 0
233 Media_Wearout_Indicator 0x0032 001 001 000 Old_age Always - 0
234 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 1024
241 Total_LBAs_Written 0x0032 100 100 000 Old_age Always - 13777360
242 Total_LBAs_Read 0x0032 100 100 000 Old_age Always - 644069
243 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 40590563
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment