Giter Club home page Giter Club logo

smartmontools's Introduction

About Smartmontools

The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (SMART) built into most modern ATA/SATA, SCSI/SAS and NVMe disks. In many cases, these utilities will provide advanced warning of disk degradation and failure.

Smartmontools was originally derived from the Linux smartsuite package and actually supports ATA/SATA, SCSI/SAS and NVMe disks and also SCSI/SAS tape devices. It should run on any modern Linux, FreeBSD, NetBSD, OpenBSD, Darwin (macOS), Solaris, Windows, Cygwin, OS/2, eComStation or QNX system. Smartmontools can also be run from one of many different Live CDs/DVDs.

Important links

Code Signing

This program uses free code signing provided by SignPath.io, and a free code signing certificate by the SignPath Foundation

License

Smartmontools uses GNU GPL Version 2 license.

smartmontools's People

Contributors

samm-git avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smartmontools's Issues

Seagate XF1230-1A0480: Not in smartctl database, wrong attribute values detected

Attribute 231 for SSD drive XF1230-1A0480 is incorrectly considered as Temperature_Celsius (duplicated) as the same attribute appears under 194:

smartctl -a /dev/sda
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-4-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     XF1230-1A0480
Serial Number:    7CS0075Y
LU WWN Device Id: 5 000c50 0813ba3d0
Firmware Version: ST200354
User Capacity:    480,103,981,056 bytes [480 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-3 (minor revision not indicated)
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu Feb  1 00:29:26 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:  (0x02) Offline data collection activity
                                        was completed without error.
                                        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:                ( 1676) seconds.
Offline data collection
capabilities:                    (0x19) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        No Selective Self-test supported.
SMART capabilities:            (0x0002) Does not save 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:        (  60) minutes.
SCT capabilities:              (0x0035) SCT Status supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 0
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   100   100   006    Pre-fail  Always       -       0
  5 Reallocated_Sector_Ct   0x0032   100   100   036    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   098   098   000    Old_age   Always       -       2097
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       14
174 Unknown_Attribute       0x0030   100   100   000    Old_age   Offline      -       7
175 Program_Fail_Count_Chip 0x0032   100   100   000    Old_age   Always       -       0
176 Erase_Fail_Count_Chip   0x0032   100   100   000    Old_age   Always       -       0
177 Wear_Leveling_Count     0x0032   100   100   000    Old_age   Always       -       3843072
178 Used_Rsvd_Blk_Cnt_Chip  0x0032   100   100   000    Old_age   Always       -       61
179 Used_Rsvd_Blk_Cnt_Tot   0x0032   100   100   000    Old_age   Always       -       294
180 Unused_Rsvd_Blk_Cnt_Tot 0x003b   100   100   006    Pre-fail  Always       -       0
181 Program_Fail_Cnt_Total  0x0032   100   100   000    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   100   100   000    Old_age   Always       -       0
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   000    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0
189 Unknown_SSD_Attribute   0x0000   100   100   000    Old_age   Offline      -       0
190 Airflow_Temperature_Cel 0x0000   100   100   000    Old_age   Offline      -       0
194 Temperature_Celsius     0x0002   074   060   000    Old_age   Always       -       26 (Min/Max 24/40)
195 Hardware_ECC_Recovered  0x0032   100   100   000    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x003e   100   100   000    Old_age   Always       -       0
201 Unknown_SSD_Attribute   0x000e   100   100   000    Old_age   Always       -       0
204 Soft_ECC_Correction     0x000e   100   100   000    Old_age   Always       -       0
231 Temperature_Celsius     0x0033   100   100   001    Pre-fail  Always       -       100
234 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       15477
241 Total_LBAs_Written      0x0032   100   100   000    Old_age   Always       -       3738
242 Total_LBAs_Read         0x0032   100   100   000    Old_age   Always       -       8270
245 Unknown_Attribute       0x0033   100   100   001    Pre-fail  Always       -       100
250 Read_Error_Retry_Rate   0x0032   100   100   000    Old_age   Always       -       0

SMART Error Log Version: 0
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%        13         -
# 2  Extended offline    Completed without error       00%         0         -

Selective Self-tests/Logging not supported

Similar issue was also reported here: https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/1581594

smartd.conf manpage "-O" directive

I found what might be a typo in the manpage:

Send a warning email to the email address \fBADD\fP if the \*(Aq\-H\*(Aq,
\*(Aq\-l\*(Aq, \*(Aq\-f\*(Aq, \*(Aq\-C\*(Aq, or \*(Aq\-O\*(Aq Directives

I see no instances of an -O directive in the manpage or sourcecode, and I believe it should be replaced with the -U and -W directives.

TOSHIBA THNSN5256GPUK not in smartctl database

Dear all,
currently the Toshiba 256Gb used in Dell XPS13 6593 is not in the list. Here is the output of smartctl.
Thanks

smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-4-amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       THNSN5256GPUK NVMe TOSHIBA 256GB
Serial Number:                      Z62S101GT18T
Firmware Version:                   5KDA4101
PCI Vendor/Subsystem ID:            0x1179
IEEE OUI Identifier:                0x00080d
Controller ID:                      0
Number of Namespaces:               1
Namespace 1 Size/Capacity:          256,060,514,304 [256 GB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            00080d 020017e4ee
Local Time is:                      Sat Apr 27 17:35:53 2019 CEST
Firmware Updates (0x02):            1 Slot
Optional Admin Commands (0x0017):   Security Format Frmw_DL Self_Test
Optional NVM Commands (0x001e):     Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat
Warning  Comp. Temp. Threshold:     78 Celsius
Critical Comp. Temp. Threshold:     82 Celsius

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     6.00W       -        -    0  0  0  0        0       0
 1 +     2.40W       -        -    1  1  1  1        0       0
 2 +     1.90W       -        -    2  2  2  2        0       0
 3 -   0.0120W       -        -    3  3  3  3     5000   25000
 4 -   0.0060W       -        -    4  4  4  4   100000   70000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         2
 1 -    4096       0         1

=== START OF SMART DATA SECTION ===
Read NVMe SMART/Health Information failed: NVMe Status 0x4002

Unable to run self test on QNAP TR-004

I have a QNAP TR-004. Commands like smartctl -d jmb39x-q,0 -A /dev/sda work fine, I can read SMART information and capabilities from the drives. But if I try to start a test e.g. smartctl -d jmb39x-q,0 -t short /dev/sda I get the error

Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Command "Execute SMART Short self-test routine immediately in off-line mode" failed: NO DATA ATA commands not implemented [JMB39x]

Trying to read the selftest results e.g. smartctl -d jmb39x-q,0 -l selftest /dev/sda gives me

Read SMART Self-test Log failed: ATA command not implemented due to truncated response [JMB39x]

I've tested the latest build and also tried compiling the first revision with support for the QNAP TR-004, same results.

Separately, I noticed that adding the sLBA parameter to any command (e.g. smartctl -d jmb39x-q,0,33 ...) also results in an error:

/dev/sda: Option -d jmb39x[-q],N[,sLBA][,force] must have 0 <= N <= 4 [, 33 <= LBA <= 62]

If there's anything I can do to help troubleshoot this, let me know!

System information:

$ uname -a
Linux potados 5.4.43-1-lts #2-Alpine SMP Thu, 28 May 2020 20:13:48 UTC x86_64 Linux

Seagate Ironwolf ST4000NE0025 is not in smartd database

Seem the new Seagate Ironwolf is not in smartd database.
Wonder if this might cause smatmontools reading error ?

smartd[519]: Device: /dev/sde, type changed from 'scsi' to 'sat' smartd[519]: Device: /dev/sde [SAT], opened smartd[519]: Device: /dev/sde [SAT], ST4000NE0025-2EW107, S/N:redacted, WWN:5-000c50-0af6717a5, FW:EN02, 4.00 TB smartd[519]: Device: /dev/sde [SAT], not found in smartd database.

Why is a SCSI type hard disk recognized as sat

I'm going to get some hard disk information through smartctl, including the type of hard disk. I think it is a good idea get info from json data. But I found that the hard disk type information output with "-ji" option is not correct.
I have a scsi type disk. If I run smartctl with "--scan" option, I get the correct result:
$ sudo ./smartctl --scan
/dev/sda -d scsi # /dev/sda, SCSI device

But I run smartctl with "-ji" option, the device type is "sat":
$ sudo ./smartctl -ji /dev/sda
{ "json_format_version":[ 1, 0 ], "smartctl":{ "version":[ 7, 2 ], "platform_info":"x86_64-linux-4.19.0-6-amd64", "build_info":"(local build)", "argv":[ "smartctl", "-ji", "/dev/sda" ], "exit_status":0 }, "device":{ "name":"/dev/sda", "info_name":"/dev/sda [SAT]", "type":"sat", "protocol":"ATA" }, .......

why is that? Is there a problem with this

AMP99L16 smartctl

smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-1127.18.2.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     AMP99L16
Firmware Version: M-011221
User Capacity:    249,790,889,984 bytes [249 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:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu Mar 11 14:46:33 2021 KST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Unavailable
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: Unavailable

=== 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: 		(   16) seconds.
Offline data collection
capabilities: 			 (0x1d) SMART execute Offline immediate.
					No Auto Offline data collection support.
					Abort Offline collection upon new
					command.
					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: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 (  60) minutes.

SMART Attributes Data Structure revision number: 11
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     -O--CK   100   100   000    -    0
  9 Power_On_Hours          -O--CK   100   100   000    -    0
 12 Power_Cycle_Count       -O--CK   100   100   000    -    2
 13 Read_Soft_Error_Rate    -O--CK   100   100   000    -    0
181 Program_Fail_Cnt_Total  -O--CK   100   100   000    -    0
184 Initial_Bad_Block_Count -O--CK   200   200   000    -    66
187 Reported_Uncorrect      -O--CK   100   100   000    -    0
190 Airflow_Temperature_Cel -O--CK   039   100   000    -    39
194 Temperature_Celsius     -O--CK   039   100   000    -    39
199 UDMA_CRC_Error_Count    -O--CK   100   100   099    -    0
200 Unknown_SSD_Attribute   -O--CK   100   100   000    -    0
201 Unknown_SSD_Attribute   -O--CK   100   100   000    -    54
202 Total_LBAs_Written         -O--CK   100   100   000    -    0
204 Total_LBAs_Read           -O--CK   100   100   000    -    4360
209 User_Block_Endurance   -O--CK   100   100   000    -    99
210 Unknown_Attribute       -O--CK   100   100   000    -    4295032833
213 Unknown_Attribute       -O--CK   100   100   000    -    3000
225 Unknown_SSD_Attribute   -O--CK   100   100   000    -    1
226 Unknown_SSD_Attribute   -O--CK   100   100   000    -    4
227 Unknown_SSD_Attribute   -O--CK   100   100   000    -    100199976408668
228 Power-off_Retract_Count -O--CK   100   100   000    -    7962
229 Unknown_Attribute       -O--CK   100   100   000    -    68719476736
230 Unknown_SSD_Attribute   -O--CK   100   100   000    -    21422
241 Total_PBAs_Written      -O--CK   100   100   000    -    128
242 Total_LBAs_Read         -O--CK   100   100   000    -    0
243 Unknown_Attribute       -O--CK   100   100   000    -    0
244 Unknown_Attribute       -O--CK   100   100   000    -    4
245 Index_Block_Endurance  -O--CK   100   100   000    -    9999
                            ||||||_ 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       GPL,SL  R/O      1  Summary SMART error log
0x02       GPL,SL  R/O     51  Comprehensive SMART error log
0x03       GPL,SL  R/O     29  Ext. Comprehensive SMART error log
0x06       GPL,SL  R/O      1  SMART self-test log
0x07       GPL,SL  R/O      1  Extended self-test log
0x09       GPL,SL  R/W      1  Selective self-test log
0x10       GPL,SL  R/O      1  NCQ Command Error log
0x11       GPL,SL  R/O      1  SATA Phy Event Counters log
0x80       GPL,SL  R/W     32  Host vendor specific log
0xa0       GPL,SL  VS       1  Device vendor specific log

SMART Extended Comprehensive Error Log Version: 0 (29 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 0 (1 sectors)
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

Selective Self-tests/Logging not supported

SCT Commands not supported

Device Statistics (GP/SMART Log 0x04) not supported

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description

Change comma separator for csmi devices [Question]

Hello.
It's not an issue, just question.
May someone help me to change separator for csmi devices ?
E.g. in zabbix I cant use parameters with comma.
If change /dev/csmi0,3 to /dev/csmi0.3 it would be better.

Samsung 850 PRO - Values

Hellou this is Samsung 850 PRO smarty table.

$ smartctl -a /dev/sdh | grep -E 'Wear_Leveling_Count'\|'LBAs'\|'Model'\|'Number'\|'Firmware'
Model Family:     Samsung based SSDs
Device Model:     Samsung SSD 850 PRO 128GB
Serial Number:    S24ZNXAH211973D
Firmware Version: EXM02B6Q
177 Wear_Leveling_Count     0x0013   002   002   000    Pre-fail  Always       -       5887
241 Total_LBAs_Written      0x0032   099   099   000    Old_age   Always       -       62578693422

I used calculator https://www.virten.net/2016/12/ssd-total-bytes-written-calculator/ and put raw LBAs value (62578693422) in it. The result is: 29.14 TB.

I looked up in specs and find out that:
"Samsung's 3D V-NAND technology is built to handle 150 Tera Bytes Written (TBW) for 128GB"
So it's 1/5 part of its wareout.

So why the "Wear_Leveling_Count" is so low? How to interprate this? Are these parameters depends on each other or not?

Is this disc is junk right now or not? Does smartctl reads this values in good way?

ST10000NM001G missing from db

sudo smartctl -q noserial -x /dev/sdb
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-4.19.0-10-amd64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     ST10000NM001G-2MW103
Firmware Version: SN02
User Capacity:    10,000,831,348,736 bytes [10.0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-4 (minor revision not indicated)
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Sep  8 10:54:23 2020 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Unavailable
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Disabled
ATA Security is:  Disabled, frozen [SEC2]
Write SCT (Get) Feature Control Command failed: scsi error badly formed scsi parameters
Wt Cache Reorder: Unknown (SCT Feature Control command failed)

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

Support for Toshiba MG04ACA400NY

Hello Toshiba 4 TB drive is not supported by current db
I couldn't find the data sheet. sorry.......

=== START OF INFORMATION SECTION ===
Device Model:     TOSHIBA MG04ACA400NY
Serial Number:    --private--
LU WWN Device Id: 5 000039 a0bb808bf
Add. Product Id:  DELL(tm)
Firmware Version: FK5D
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Feb  8 18:47:17 2021 JST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM level is:     254 (maximum performance)
Rd look-ahead is: Enabled
Write cache is:   Disabled
DSN feature is:   Unavailable
ATA Security is:  Unavailable
Wt Cache Reorder: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x85) Offline data collection activity
                                        was aborted by an interrupting command from host.
                                        Auto Offline Data Collection: Enabled.
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:                (   90) 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:        ( 452) 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: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     PO-R--   100   100   050    -    0
  2 Throughput_Performance  --S---   100   100   000    -    0
  3 Spin_Up_Time            POS--K   100   100   001    -    6865
  4 Start_Stop_Count        -O--CK   100   100   000    -    42
  5 Reallocated_Sector_Ct   PO--CK   100   100   050    -    0
  7 Seek_Error_Rate         -O-R--   100   100   000    -    0
  8 Seek_Time_Performance   --S---   100   100   000    -    0
  9 Power_On_Hours          -O--CK   089   089   000    -    4494
 10 Spin_Retry_Count        -O--CK   100   100   000    -    0
 12 Power_Cycle_Count       -O--CK   100   100   000    -    42
192 Power-Off_Retract_Count -O--CK   100   100   000    -    25
193 Load_Cycle_Count        -O--CK   100   100   000    -    45
194 Temperature_Celsius     -O---K   100   100   000    -    48 (Min/Max 23/55)
196 Reallocated_Event_Count -O--CK   100   100   000    -    0
198 Offline_Uncorrectable   ----CK   100   100   000    -    0
199 UDMA_CRC_Error_Count    -O--CK   200   253   000    -    0
241 Total_LBAs_Written      -O--CK   100   100   000    -    16578932308
242 Total_LBAs_Read         -O--CK   100   100   000    -    3036085391
                            ||||||_ 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     51  Comprehensive SMART error log
0x03       GPL     R/O     64  Ext. Comprehensive SMART error log
0x04       GPL,SL  R/O      8  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x08       GPL     R/O      2  Power Conditions log
0x09           SL  R/W      1  Selective self-test log
0x0c       GPL     R/O   2048  Pending Defects log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x24       GPL     R/O  12288  Current Device Internal Status Data log
0x25       GPL     R/O  12288  Saved Device Internal Status Data log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xa7       GPL     VS       8  Device vendor specific log
0xdf       GPL,SL  VS       1  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 (64 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%      4084         -
# 2  Short offline       Completed without error       00%         0         -

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.

SCT Status Version:                  3
SCT Version (vendor specific):       1 (0x0001)
Device State:                        Active (0)
Current Temperature:                    48 Celsius
Power Cycle Min/Max Temperature:     23/55 Celsius
Lifetime    Min/Max Temperature:     23/55 Celsius
Under/Over Temperature Limit Count:   0/0

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        1 minute
Min/Max recommended Temperature:      5/55 Celsius
Min/Max Temperature Limit:            5/55 Celsius
Temperature History Size (Index):    478 (82)

Index    Estimated Time   Temperature Celsius
  83    2021-02-08 10:50    47  ****************************
 ...    ..( 31 skipped).    ..  ****************************
 115    2021-02-08 11:22    47  ****************************
 116    2021-02-08 11:23    48  *****************************
 117    2021-02-08 11:24    47  ****************************
 118    2021-02-08 11:25    48  *****************************
 119    2021-02-08 11:26    47  ****************************
 120    2021-02-08 11:27    48  *****************************
 121    2021-02-08 11:28    47  ****************************
 122    2021-02-08 11:29    48  *****************************
 123    2021-02-08 11:30    48  *****************************
 124    2021-02-08 11:31    48  *****************************
 125    2021-02-08 11:32    47  ****************************
 126    2021-02-08 11:33    48  *****************************
 ...    ..(433 skipped).    ..  *****************************
  82    2021-02-08 18:47    48  *****************************

SCT Error Recovery Control:
           Read:     80 (8.0 seconds)
          Write:     80 (8.0 seconds)

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 2) ==
0x01  0x008  4              42  ---  Lifetime Power-On Resets
0x01  0x010  4            4494  ---  Power-on Hours
0x01  0x018  6     16578932308  ---  Logical Sectors Written
0x01  0x020  6        79660199  ---  Number of Write Commands
0x01  0x028  6      3036085391  ---  Logical Sectors Read
0x01  0x030  6        21956987  ---  Number of Read Commands
0x02  =====  =               =  ===  == Free-Fall Statistics (rev 1) ==
0x02  0x010  4              65  ---  Overlimit Shock Events
0x03  =====  =               =  ===  == Rotating Media Statistics (rev 1) ==
0x03  0x008  4            4494  ---  Spindle Motor Power-on Hours
0x03  0x010  4            4494  ---  Head Flying Hours
0x03  0x018  4              45  ---  Head Load Events
0x03  0x020  4               0  ---  Number of Reallocated Logical Sectors
0x03  0x028  4               0  ---  Read Recovery Attempts
0x03  0x030  4               0  ---  Number of Mechanical Start Failures
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4               0  ---  Number of Reported Uncorrectable Errors
0x04  0x010  4               0  ---  Resets Between Cmd Acceptance and Completion
0x05  =====  =               =  ===  == Temperature Statistics (rev 1) ==
0x05  0x008  1              48  ---  Current Temperature
0x05  0x010  1              43  N--  Average Short Term Temperature
0x05  0x018  1              43  N--  Average Long Term Temperature
0x05  0x020  1              55  ---  Highest Temperature
0x05  0x028  1              23  ---  Lowest Temperature
0x05  0x030  1              50  N--  Highest Average Short Term Temperature
0x05  0x038  1              37  N--  Lowest Average Short Term Temperature
0x05  0x040  1              47  N--  Highest Average Long Term Temperature
0x05  0x048  1              42  N--  Lowest Average Long Term Temperature
0x05  0x050  4              20  ---  Time in Over-Temperature
0x05  0x058  1              55  ---  Specified Maximum Operating Temperature
0x05  0x060  4               0  ---  Time in Under-Temperature
0x05  0x068  1               5  ---  Specified Minimum Operating Temperature
0x06  =====  =               =  ===  == Transport Statistics (rev 1) ==
0x06  0x008  4             192  ---  Number of Hardware Resets
0x06  0x018  4               0  ---  Number of Interface CRC Errors
0x07  =====  =               =  ===  == Solid State Device Statistics (rev 1) ==
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

Pending Defects log (GP Log 0x0c)
No Defects Logged

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            2  Transition from drive PhyRdy to drive PhyNRdy
0x000a  4            2  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

Why does this wake up the drive? smartctl -i -n standby /dev/sdx

The way I see this command should leave the disk spun down:

-n POWERMODE, --nocheck=POWERMODE

standby - check the device unless it is in SLEEP or STANDBY mode. In these modes most disks are not spinning, so if you want to prevent a disk from spinning up, this is probably what you want.

--

Still, in my case (SATA drive in a USB enclosure) this command will wake up a WD MyBook:

`root@odroidn2:/root# smartctl -i -n standby /dev/sdc
smartctl 7.1 2019-12-30 r5022 [aarch64-linux-4.9.219-meson64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

Device is in SLEEP mode, exit(2)
`

Drive starts up, needs a few seconds...

Then:

`root@odroidn2:/root# smartctl -i -n standby /dev/sdc
smartctl 7.1 2019-12-30 r5022 [aarch64-linux-4.9.219-meson64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     WDC HGST Ultrastar He10
Device Model:     WDC WD80EZAZ-11TDBA0
Serial Number:    xxx
LU WWN Device Id: 5 000cca 257e79007
Firmware Version: 83.H0A83
User Capacity:    8,001,563,222,016 bytes [8.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Jul  8 15:45:05 2020 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Power mode is:    ACTIVE or IDLE
`

What am I missing here? At first it does recognize the drive is in SLEEP, but still triggers a spin-up? Thanks for your review!

[Question] Version of smartmon and drivedb.h

Probably a greenhorn question:
In case I got stucked to Ubuntu Xenial Xerus 16.04.7 LTS and smartmontools 6.4 (6.5?), do I have to use the corresponding release of drivedb.h (here: 6.4 https://www.smartmontools.org/browser/branches/RELEASE_6_4_DRIVEDB/smartmontools/drivedb.h or can I use the newest release of drivedb.h (7.0/7.1 https://www.smartmontools.org/browser/branches/RELEASE_7_0_DRIVEDB/smartmontools/drivedb.h ?

smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.15.0-96-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
....
smartmontools release 6.5 dated 2015-06-04 at 16:29:41 UTC
smartmontools SVN rev 4214 dated 2016-01-24 at 22:53:37
smartmontools build host: x86_64-pc-linux-gnu
smartmontools build with: GCC 5.4.0 20160609

(BTW: Why does it say 'release 6.5' if newest version available for Xenial is 6.4 ? https://packages.ubuntu.com/xenial/smartmontools)

Question regarding return value of smartctl

I have a question regarding the return value of smartctl.

Does it always reflect the device's status or is that only the case when using --health? The man page is unclear about this.

In my specific use case, I need attributes and device health, preferably in a single run, but it remains unclear for me if the return value reflects the device's status when running smartctl --attributes <device>.

Sadly (or luckily), I have no broken device to test/verify.

smartmontools-6.5 wrong Temperature_Celsius THRESH

Hi All,

it seems on my Crucial BX500 120GB (CT120BX500SSD1) the smart threshold for Temperature in Celsius is too low.

According to https://content.crucial.com/content/dam/crucial/ssd-products/bx500/flyer/crucial-bx500-ssd-productflyer.pdf all BX500 have an operating temperature of "0°C to 70°C" .

I guess the DB can be updated with this THRESH instead of the current "50"

Here is a short output of the smartctl:

# smartctl -a /dev/sda
smartctl 6.5 2016-05-07 r4318 [x86_64-linux-3.10.0-957.21.2.el7.x86_64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     CT120BX500SSD1
Serial Number:    1847E164B637
LU WWN Device Id: 0 000000 000000000
Firmware Version: M6CR013
User Capacity:    120,034,123,776 bytes [120 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:   ACS-2 T13/2015-D revision 3
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Jun 21 16:18:39 2019 EEST
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
See vendor-specific Attribute list for marginal Attributes.

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:                (  120) 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:            (0x0002) Does not save 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: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   100   050    Pre-fail  Always       -       0
  5 Reallocated_Sector_Ct   0x0032   100   100   010    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   050    Old_age   Always       -       3220
 12 Power_Cycle_Count       0x0032   100   100   050    Old_age   Always       -       36
171 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       0
172 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       0
173 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       193
174 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       24
180 Unused_Rsvd_Blk_Cnt_Tot 0x0032   100   100   050    Old_age   Always       -       100
183 Runtime_Bad_Block       0x0032   100   100   050    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   050    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   050    Old_age   Always       -       0
194 Temperature_Celsius     0x0022   058   036   050    Old_age   Always   In_the_past 42 (Min/Max 39/64)
196 Reallocated_Event_Count 0x0032   100   100   050    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   100   100   050    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   100   050    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   100   100   050    Old_age   Always       -       0
202 Unknown_SSD_Attribute   0x0030   088   088   001    Old_age   Offline      -       88
206 Unknown_SSD_Attribute   0x002e   100   100   050    Old_age   Always       -       0
210 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       0
246 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       24902761268
247 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       778211289
248 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       585673016

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]

Selective Self-tests/Logging not supported

TSxxxSSD420K not recognized

"TS((16|32|64|128|256|512)G|1T)(SSD|MSA)(370S?|420I?)|" // Transcend SSD370/420 SATA/mSATA, TS6500,

I have a TS32GSSD420K/P1225CE which exposes the same identical interface, but is currently not recognized as such. I tried replacing 420I? with 420K? and that seems to work.

Any chance this could be added to the database?
Thank you!

WDC WD100EFAX-68LHPN0 support

smartctl 6.6 2017-11-05 r4594 [x86_64-linux-5.0.0-15-generic] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     WDC WD100EFAX-68LHPN0
Serial Number:    --------
LU WWN Device Id: - ------ ---------
Firmware Version: 83.H0A83
User Capacity:    10.000.831.348.736 bytes [10,0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sun May 19 19:37:20 2019 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM level is:     254 (maximum performance)
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, frozen [SEC2]
Wt Cache Reorder: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82)	Offline data collection activity
					was completed without error.
					Auto Offline Data Collection: Enabled.
Self-test execution status:      (  37)	The self-test routine was interrupted
					by the host with a hard or soft reset.
Total time to complete Offline 
data collection: 		(   93) 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: 	 (1134) 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: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     PO-R--   100   100   016    -    0
  2 Throughput_Performance  --S---   130   130   054    -    108
  3 Spin_Up_Time            POS---   171   171   024    -    388 (Average 381)
  4 Start_Stop_Count        -O--C-   100   100   000    -    51
  5 Reallocated_Sector_Ct   PO--CK   100   100   005    -    0
  7 Seek_Error_Rate         -O-R--   100   100   067    -    0
  8 Seek_Time_Performance   --S---   128   128   020    -    18
  9 Power_On_Hours          -O--C-   100   100   000    -    15
 10 Spin_Retry_Count        -O--C-   100   100   060    -    0
 12 Power_Cycle_Count       -O--CK   100   100   000    -    41
 22 Unknown_Attribute       PO---K   100   100   025    -    100
192 Power-Off_Retract_Count -O--CK   100   100   000    -    53
193 Load_Cycle_Count        -O--C-   100   100   000    -    53
194 Temperature_Celsius     -O----   151   151   000    -    43 (Min/Max 21/45)
196 Reallocated_Event_Count -O--CK   100   100   000    -    0
197 Current_Pending_Sector  -O---K   100   100   000    -    0
198 Offline_Uncorrectable   ---R--   100   100   000    -    0
199 UDMA_CRC_Error_Count    -O-R--   200   200   000    -    0
                            ||||||_ 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      1  Comprehensive SMART error log
0x03       GPL     R/O      1  Ext. Comprehensive SMART error log
0x04       GPL     R/O    256  Device Statistics log
0x04       SL      R/O    255  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x08       GPL     R/O      2  Power Conditions log
0x09           SL  R/W      1  Selective self-test log
0x0c       GPL     R/O   5501  Pending Defects log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x12       GPL     R/O      1  SATA NCQ Non-Data log
0x13       GPL     R/O      1  SATA NCQ Send and Receive log
0x15       GPL     R/W      1  Rebuild Assist log
0x21       GPL     R/O      1  Write stream error log
0x22       GPL     R/O      1  Read stream error log
0x24       GPL     R/O    256  Current Device Internal Status Data log
0x25       GPL     R/O    256  Saved Device Internal Status Data log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host 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 (1 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short captive       Interrupted (host reset)      50%        15         -
# 2  Short offline       Completed without error       00%         0         -

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.

SCT Status Version:                  3
SCT Version (vendor specific):       256 (0x0100)
SCT Support Level:                   0
Device State:                        Active (0)
Current Temperature:                    43 Celsius
Power Cycle Min/Max Temperature:     36/44 Celsius
Lifetime    Min/Max Temperature:     21/45 Celsius
Under/Over Temperature Limit Count:   0/0

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        1 minute
Min/Max recommended Temperature:      0/65 Celsius
Min/Max Temperature Limit:           -40/70 Celsius
Temperature History Size (Index):    128 (25)

Index    Estimated Time   Temperature Celsius
  26    2019-05-19 17:30    40  *********************
  27    2019-05-19 17:31    41  **********************
  28    2019-05-19 17:32    41  **********************
  29    2019-05-19 17:33    41  **********************
  30    2019-05-19 17:34    32  *************
  31    2019-05-19 17:35    32  *************
  32    2019-05-19 17:36    32  *************
  33    2019-05-19 17:37    33  **************
 ...    ..(  2 skipped).    ..  **************
  36    2019-05-19 17:40    33  **************
  37    2019-05-19 17:41    34  ***************
  38    2019-05-19 17:42    34  ***************
  39    2019-05-19 17:43    34  ***************
  40    2019-05-19 17:44    35  ****************
  41    2019-05-19 17:45    35  ****************
  42    2019-05-19 17:46    36  *****************
 ...    ..(  4 skipped).    ..  *****************
  47    2019-05-19 17:51    36  *****************
  48    2019-05-19 17:52    37  ******************
  49    2019-05-19 17:53    37  ******************
  50    2019-05-19 17:54    37  ******************
  51    2019-05-19 17:55    38  *******************
 ...    ..(  2 skipped).    ..  *******************
  54    2019-05-19 17:58    38  *******************
  55    2019-05-19 17:59    39  ********************
  56    2019-05-19 18:00    39  ********************
  57    2019-05-19 18:01    39  ********************
  58    2019-05-19 18:02    40  *********************
 ...    ..(  3 skipped).    ..  *********************
  62    2019-05-19 18:06    40  *********************
  63    2019-05-19 18:07    41  **********************
 ...    ..(  4 skipped).    ..  **********************
  68    2019-05-19 18:12    41  **********************
  69    2019-05-19 18:13    42  ***********************
 ...    ..(  5 skipped).    ..  ***********************
  75    2019-05-19 18:19    42  ***********************
  76    2019-05-19 18:20    43  ************************
 ...    ..( 12 skipped).    ..  ************************
  89    2019-05-19 18:33    43  ************************
  90    2019-05-19 18:34    44  *************************
 ...    ..(  8 skipped).    ..  *************************
  99    2019-05-19 18:43    44  *************************
 100    2019-05-19 18:44    43  ************************
 ...    ..(  6 skipped).    ..  ************************
 107    2019-05-19 18:51    43  ************************
 108    2019-05-19 18:52    44  *************************
 109    2019-05-19 18:53    44  *************************
 110    2019-05-19 18:54    44  *************************
 111    2019-05-19 18:55    43  ************************
 ...    ..( 22 skipped).    ..  ************************
   6    2019-05-19 19:18    43  ************************
   7    2019-05-19 19:19    44  *************************
   8    2019-05-19 19:20    43  ************************
 ...    ..( 15 skipped).    ..  ************************
  24    2019-05-19 19:36    43  ************************
  25    2019-05-19 19:37    40  *********************

SCT Error Recovery Control:
           Read:     70 (7,0 seconds)
          Write:     70 (7,0 seconds)

Device Statistics (GP/SMART Log 0x04) not supported

Pending Defects log (GP Log 0x0c) supported [please try: '-l defects']

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0002  2            0  R_ERR response for data FIS
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0005  2            0  R_ERR response for non-data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x0008  2            0  Device-to-host non-data FIS retries
0x0009  2           72  Transition from drive PhyRdy to drive PhyNRdy
0x000a  2            4  Device-to-host register FISes sent due to a COMRESET
0x000b  2            0  CRC errors within host-to-device FIS
0x000d  2            0  Non-CRC errors within host-to-device FIS

Crucial MX500 SSD return 1 pending sector intermittently (add --firmwarebug option?)

Hello,

Here are the report I receive from three different machine (hardware is new):

Device: /dev/sdb [SAT], 1 Currently unreadable (pending) sectors

Device info:
CT250MX500SSD1, S/N:1931E21587D5, WWN:5-00a075-1e21587d5, FW:M3CR023, 250 GB
Device: /dev/sdb [SAT], 1 Currently unreadable (pending) sectors

Device info:
CT250MX500SSD1, S/N:1931E215B362, WWN:5-00a075-1e215b362, FW:M3CR023, 250 GB
Device: /dev/sdb [SAT], 1 Currently unreadable (pending) sectors

Device info:
CT500MX500SSD1, S/N:1934E21A7C80, WWN:5-00a075-1e21a7c80, FW:M3CR023, 500 GB

In this Trac ticket https://www.smartmontools.org/ticket/977 someone (from your team ?) stated that a --firmwarebug options could be added to workaround this.

All drive are running latest firwmare (from 2018 so I doubt it'll ever get fixed) and you can found plenty of similar report over Internet.

Thanks in advance,

Regards, Adam.

`$SMARTD_DEVICETYPE` incorrectly set

https://www.smartmontools.org/ticket/113 is happening again: the value of $SMARTD_DEVICETYPE is sometimes incorrect when using device auto-detection.

The log indicates that my device's type changed from "scsi" to "sat", but $SMARTD_DEVICETYPE is set to "scsi" when calling my notification script, breaking calls to smartctl.

Mar 18 00:44:50 hp2 smartd[10516]: Device: /dev/sdd, type changed from 'scsi' to 'sat'
Mar 18 00:44:50 hp2 smartd[10516]: Device: /dev/sdd [SAT], opened
Mar 18 00:44:50 hp2 smartd[10516]: Device: /dev/sdd [SAT], […]
Mar 18 00:44:50 hp2 smartd[10516]: Device: /dev/sdd [SAT], is SMART capable. Adding to "monitor" list.
Mar 18 00:44:50 hp2 smartd[10516]: Monitoring 4 ATA/SATA, 0 SCSI/SAS and 0 NVMe devices
Mar 18 00:44:50 hp2 smartd[10516]: Executing test of /nix/store/7haj5vrsb5qk9pqa11yyz9d57q5n4pgi-smartd-notify.sh to <nomailer> ...

Version info: smartmontools 7.1 with driverdb 5033

trac server is not sending confirmation email

The trac server at www.smartmontools.org is not sending confirmation email for new accounts, so people attempting to sign up in order to report bugs are left without the privileges to do so.

Relatedly, the recaptcha implementation on the signup page is a royal pain. My experience went something like this:

  • Complete the signup form
  • Submit
  • Get error page complaining that a captcha wasn't completed.
  • Look for captcha
  • Discover that it was a recaptcha, served by google.com, and was therefore (correctly) blocked by normal web browser safety measures
  • Whilelist google.com scripts for smartmontools.org pages
  • Resubmit
  • Discover that recaptcha requires gstatic.com scripts as well
  • Whilelist gstatic.com scripts for smartmontools.org pages
  • Resubmit
  • Discover that recaptcha requires google.com frame permissions as well
  • Whilelist google.com frames for smartmontools.org pages
  • Resubmit
  • Discover that recaptcha requires google.com media permissions as well
  • Whilelist google.com media for smartmontools.org pages
  • Resubmit
  • Click the images expected by recaptcha, and the Verify button
  • Get another batch of captcha images to click
  • Click the images expected by recaptcha, and the Verify button, again
  • Get yet another batch of captcha images to click
  • Click the images expected by recaptcha, but wait a couple of seconds before clicking Verify
  • Notice that, given a few seconds, each clicked captcha image slowly fades out, and then a new image slowly fades in to replace it
  • Continue clicking each new recaptcha image, waiting for the painfully slow replacements to appear, and clicking those as well, for maybe ten or fifteen more seconds
  • Curse at the people who made it such a huge pain just to submit a bug report
  • Finally reach the point where no new images are fading in, and click Verify
  • Submit the signup form
  • Get error page complaining that a password is required, despite the fact that I already entered it twice, because this infuriating procedure deleted the one that I entered
  • Enter my new password again, twice
  • Go through recaptcha hell again
  • Submit the signup form
  • Get message directing me to verify my email address when the verification email arrives
  • Wait 10-15 minutes, with no such email arriving
  • Test my email address, and find that it is accepting and delivering messages just fine, and quite quickly
  • Conclude that trac never sent the verification email
  • Realize that I just spent something like 20-25 minutes just trying to work my way past all the obstacles that someone put in the way of reporting a simple bug
  • Give up

I eventually found this github site. I hope someone on the team reads it. I don't have the endurance to keep tangling with your trac server.

strange "seek error read" and "raw read error" value for Seagate Ironwolf ST4000NE0025

Hello,

I am running an home-made NAS running under Debian Stretch using latest smartmontools installed from apt-get.

System is running on a transcend SSD. Motherboard is a Gigabyte GA-F2A88XM-D3HP.

For data storage, i have a raid6 array made with 6 HDD running from 2 ICY-FATCAGE.

  • 2 HITACHI Ultrastar 7K4000 ( with normal reading ).
  • 2 WESTERN DIGITAL Red Pro 4TO ( with normal reading).
  • 2 Seagate Ironwolf ST4000NE0025 ( with strange reading ! )

All disk are brand new, bought from different sellers and different batch ( witch make six different ordres ). All disk have passed their smart test under W10 with their own tools. Unfortunatly, under smartmontools [smartmontools (6.5+svn4324-1)] I am getting those value:
Raw Read Error Rate | 174408703 (Normalized: 082)
Seek Error Rate | 106777099 (Normalized: 080)
Those reading are exactly the same for the two different disk, witch make me think of a bug.
First disk got Power On Hours 549H and second got Power On Hours 487H

The others disk shown reading like:
Raw Read Error Rate | 0 (Normalized: 200)
Seek Error Rate | 0 (Normalized: 200)

Any clue ??


Offline data collection status | Offline data collection activity was completed without error.Auto Offline Data Collection: Enabled.
-- | --
Self-test execution status | The previous self-test routine completed without error or no self-test has ever been run.
Total time to complete Offline data collection | 567 seconds.
Offline data collection capabilities | SMART execute Offline immediate.Auto Offline data collection on/off support.Suspend Offline collection upon new command.Offline surface scan supported.Self-test supported.Conveyance Self-test supported.Selective Self-test supported.
SMART capabilities | Saves SMART data before entering power-saving mode.Supports SMART auto save timer.
Error logging capability | Error logging supported.General Purpose Logging supported.
Short self-test routine recommended polling time | 1 minutes.
Extended self-test routine recommended polling time | 363 minutes.
Conveyance self-test routine recommended polling time | 2 minutes.
SCT capabilities | SCT Status supported.SCT Error Recovery Control supported.SCT Feature Control supported.SCT Data Table supported.
Raw Read Error Rate | 194339453 (Normalized: 083)
Spin Up Time | 0 (Normalized: 091)
Start Stop Count | 8 (Normalized: 100)
Reallocated Sector Ct | 0 (Normalized: 100)
Seek Error Rate | 91268471 (Normalized: 080)
Power On Hours | 489 (Normalized: 100)
Spin Retry Count | 0 (Normalized: 100)
Power Cycle Count | 8 (Normalized: 100)
End-to-End Error | 0 (Normalized: 100)
Reported Uncorrect | 0 (Normalized: 100)
Command Timeout | 0 (Normalized: 100)
High Fly Writes | 0 (Normalized: 100)
Airflow Temperature Cel | 36 (Normalized: 064)
G-Sense Error Rate | 151 (Normalized: 100)
Power-Off Retract Count | 3 (Normalized: 100)
Load Cycle Count | 6092 (Normalized: 097)
Temperature Celsius | 36 (Normalized: 036)
Hardware ECC Recovered | 194339453 (Normalized: 006)
Current Pending Sector | 0 (Normalized: 100)
Offline Uncorrectable | 0 (Normalized: 100)
Head Flying Hours | 331 (Normalized: 100)
Total LBAs Written | 2002020754 (Normalized: 100)
Total LBAs Read | 6694710450 (Normalized: 100)
`

`smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-6-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     ST4000NE0025-2EW107
Serial Number:    REDACTED
LU WWN Device Id: 5 000c50 0af66854b
Firmware Version: EN02
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Apr 16 21:30:00 2018 CEST
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:  (0x82)	Offline data collection activity
					was completed without error.
					Auto Offline Data Collection: Enabled.
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: 		(  567) seconds.
Offline data collection
capabilities: 			 (0x7b) SMART execute Offline immediate.
					Auto Offline data collection on/off 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: 	 ( 363) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x50bd)	SCT Status supported.
					SCT Error Recovery Control supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   083   064   044    Pre-fail  Always       -       194339453
  3 Spin_Up_Time            0x0003   091   091   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       8
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   080   060   045    Pre-fail  Always       -       91268471
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       489
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       8
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   064   055   040    Old_age   Always       -       36 (Min/Max 27/36)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       151
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       3
193 Load_Cycle_Count        0x0032   097   097   000    Old_age   Always       -       6092
194 Temperature_Celsius     0x0022   036   045   000    Old_age   Always       -       36 (0 18 0 0 0)
195 Hardware_ECC_Recovered  0x001a   006   004   000    Old_age   Always       -       194339453
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       331 (133 3 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       2002020754
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       6694710450

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.

"-f hex" option is not working

Hello,

I'm trying to get SMART information using attribute IDs instead of pretty display name and it just don't work (neither with 6.5 nor 6.6):

smartctl -f hex,id -a /dev/sdb
[...]
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Logical Unit id:      0x5000c5008422ecab
Serial number:        Z1Z9H2EZ
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Tue Sep 25 13:47:32 2018 CEST
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Current Drive Temperature:     24 C
Drive Trip Temperature:        60 C
[...]

I expect to see attributes id...

Regards, Adam.

Intenso external SSD not in drivedb

Please add the drive to the db.

smartctl 6.6 2017-11-05 r4594 [armv7l-linux-5.4.74-v7l+] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     INTENSO
Serial Number:    AA000000000000001135
Firmware Version: S1211A0
User Capacity:    128.035.676.160 bytes [128 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:   ACS-2 T13/2015-D revision 3
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Dec  4 18:49:57 2020 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Unavailable
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: Unavailable

=== 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:                (  120) 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:            (0x0002) Does not save 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: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     -O--CK   100   100   050    -    0
  5 Reallocated_Sector_Ct   -O--CK   100   100   050    -    0
  9 Power_On_Hours          -O--CK   100   100   050    -    512
 12 Power_Cycle_Count       -O--CK   100   100   050    -    31
160 Unknown_Attribute       -O--CK   100   100   050    -    0
161 Unknown_Attribute       PO--CK   100   100   050    -    100
163 Unknown_Attribute       -O--CK   100   100   050    -    9
164 Unknown_Attribute       -O--CK   100   100   050    -    1560
165 Unknown_Attribute       -O--CK   100   100   050    -    4
166 Unknown_Attribute       -O--CK   100   100   050    -    2
167 Unknown_Attribute       -O--CK   100   100   050    -    3
168 Unknown_Attribute       -O--CK   100   100   050    -    7000
169 Unknown_Attribute       -O--CK   100   100   050    -    100
175 Program_Fail_Count_Chip -O--CK   100   100   050    -    0
176 Erase_Fail_Count_Chip   -O--CK   100   100   050    -    0
177 Wear_Leveling_Count     -O--CK   100   100   050    -    0
178 Used_Rsvd_Blk_Cnt_Chip  -O--CK   100   100   050    -    0
181 Program_Fail_Cnt_Total  -O--CK   100   100   050    -    0
182 Erase_Fail_Count_Total  -O--CK   100   100   050    -    0
192 Power-Off_Retract_Count -O--CK   100   100   050    -    29
194 Temperature_Celsius     -O---K   100   100   050    -    37
195 Hardware_ECC_Recovered  -O--CK   100   100   050    -    4
196 Reallocated_Event_Count -O--CK   100   100   050    -    0
197 Current_Pending_Sector  -O--CK   100   100   050    -    0
198 Offline_Uncorrectable   -O--CK   100   100   050    -    0
199 UDMA_CRC_Error_Count    -O--CK   100   100   050    -    0
232 Available_Reservd_Space -O--CK   100   100   050    -    100
241 Total_LBAs_Written      ----CK   100   100   050    -    3795
242 Total_LBAs_Read         ----CK   100   100   050    -    94
245 Unknown_Attribute       -O--CK   100   100   050    -    1521
                            ||||||_ 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      1  Comprehensive SMART error log
0x03       GPL     R/O      1  Ext. Comprehensive SMART error log
0x04       GPL,SL  R/O      8  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xde       GPL     VS       8  Device vendor specific log

SMART Extended Comprehensive Error Log Version: 1 (1 sectors)
Device Error Count: 62 (device log contains only the most recent 4 errors)
        CR     = Command Register
        FEATR  = Features Register
        COUNT  = Count (was: Sector Count) Register
        LBA_48 = Upper bytes of LBA High/Mid/Low Registers ]  ATA-8
        LH     = LBA High (was: Cylinder High) Register    ]   LBA
        LM     = LBA Mid (was: Cylinder Low) Register      ] Register
        LL     = LBA Low (was: Sector Number) Register     ]
        DV     = Device (was: Device/Head) Register
        DC     = Device Control Register
        ER     = Error register
        ST     = Status register
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 62 [1] log entry is empty
Error 61 [0] log entry is empty
Error 60 [3] log entry is empty
Error 59 [2] occurred at disk power-on lifetime: 0 hours (0 days + 0 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  00 -- 00 00 00 00 00 00 00 00 00 00 00

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  b0 00 d1 01 01 00 00 4f 00 c2 01 00 00     00:00:00.000  SMART READ ATTRIBUTE THRESHOLDS [OBS-4]
  2f 00 00 01 01 00 00 00 00 00 03 00 00     00:00:00.000  READ LOG EXT
  2f 00 00 01 01 00 00 00 00 00 00 00 00     00:00:00.000  READ LOG EXT
  b0 00 d5 01 01 00 00 4f 00 c2 00 00 00     00:00:00.000  SMART READ LOG
  b0 00 da 00 00 00 00 4f 00 c2 00 00 00     00:00:00.000  SMART RETURN STATUS

SMART Extended Self-test Log Version: 1 (1 sectors)
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

Selective Self-tests/Logging not supported

SCT Commands not supported

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4              31  ---  Lifetime Power-On Resets
0x01  0x010  4             512  ---  Power-on Hours
0x01  0x018  6       248720575  ---  Logical Sectors Written
0x01  0x020  6        10961808  ---  Number of Write Commands
0x01  0x028  6         6190662  ---  Logical Sectors Read
0x01  0x030  6           39031  ---  Number of Read Commands
0x07  =====  =               =  ===  == Solid State Device Statistics (rev 1) ==
0x07  0x008  1               0  ---  Percentage Used Endurance Indicator
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

Pending Defects log (GP Log 0x0c) 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
0x0005  4            0  R_ERR response for non-data FIS
0x000a  4            0  Device-to-host register FISes sent due to a COMRESET

Missing support of SanDisk SDSSDH3 2T00

sudo smartctl -a -d sat  /dev/sda             
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.66-1-lts] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     SanDisk SDSSDH3 2T00
Serial Number:    ############
LU WWN Device Id: ###############
Firmware Version: 411040RL
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
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:   ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sun Sep 27 14:13:06 2020 CST
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       -       0
  9 Power_On_Hours          0x0032   100   100   ---    Old_age   Always       -       376
 12 Power_Cycle_Count       0x0032   100   100   ---    Old_age   Always       -       8
165 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       4325413
166 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       0
167 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       76
168 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       1
169 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       848
170 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       0
171 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       0
172 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       0
173 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       0
174 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       0
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   062   051   ---    Old_age   Always       -       38 (Min/Max 25/51)
199 UDMA_CRC_Error_Count    0x0032   100   100   ---    Old_age   Always       -       0
230 Unknown_SSD_Attribute   0x0032   001   001   ---    Old_age   Always       -       30064771079
232 Available_Reservd_Space 0x0033   100   100   004    Pre-fail  Always       -       100
233 Media_Wearout_Indicator 0x0032   100   100   ---    Old_age   Always       -       1146
234 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       1177
241 Total_LBAs_Written      0x0030   253   253   ---    Old_age   Offline      -       1164
242 Total_LBAs_Read         0x0030   253   253   ---    Old_age   Offline      -       152
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
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

Selective Self-tests/Logging not supported

Running smartctl inside a Docker without -privileged

Hello together

I hope im allowed to ask this here:
I'm trying to run smartctl inside a docker container, but if possible without the -privileged option.
So for example this works:

$ sudo docker container run -it --rm -privileged --name test testimage bash

I can then install smartmontools inside in and call smartctl with:
$ smartctl --all /dev/sda

But if possible I would like to avoid the -priviliged flag when running the container.
I read into it and I found that there are possibilities to map stuff into the container in a more finegrained manner like this (avoiding -priviliged):

$ sudo docker container run --rm --device=/dev/sda:rw --device=/dev/bus/usb/001 --device=/dev/bus/usb/002 --name test testimage

But this didn't work, maybe you know more about the implementation details of smartmontools and can help me, how I could achieve this. I know it's open source and I could look into it myself but It would definitly take me forever and im not sure if I'm even skilled enough.

For your information, I used this call inside the docker:
$ smartctl --all /dev/sda -d ata -T permissive
and
$ smartctl --all /dev/sda -d sat -T permissive

If you have any idea how I could get smartctl to work inside a docker container I would appreciate it!

Kingston UV400 not in smartctl database

Similar to other Kingston SSDs: https://www.smartmontools.org/ticket/673

The UV400 also maps temp/media_wearout_indicator the opposite way around.

Helpful Link: https://media.kingston.com/support/downloads/UV400-SMART-attribute.pdf

smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.13.0-36-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     KINGSTON SUV400S37120G
Serial Number:    [REDACTED]
LU WWN Device Id: 5 0026b7 67b023558
Firmware Version: 0C3J96R9
User Capacity:    120,034,123,776 bytes [120 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    Solid State Device
Form Factor:      M.2
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   Unknown(0x0ffe), ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Mar 12 09:03:05 2018 GMT
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:                (    5) seconds.
Offline data collection
capabilities:                    (0x71) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Suspend Offline collection upon new
                                        command.
                                        No 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:        (   2) minutes.
Extended self-test routine
recommended polling time:        (   5) minutes.
Conveyance self-test routine
recommended polling time:        (   0) 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: 48
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   100   000    Pre-fail  Always       -       0
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       3
100 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       288
101 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
170 Unknown_Attribute       0x0032   100   100   000    Old_age   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       -       1
175 Program_Fail_Count_Chip 0x0032   100   100   000    Old_age   Always       -       0
176 Erase_Fail_Count_Chip   0x0032   100   100   000    Old_age   Always       -       0
177 Wear_Leveling_Count     0x0032   100   100   000    Old_age   Always       -       0
178 Used_Rsvd_Blk_Cnt_Chip  0x0002   100   100   000    Old_age   Always       -       0
180 Unused_Rsvd_Blk_Cnt_Tot 0x0002   100   100   000    Old_age   Always       -       686
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
187 Reported_Uncorrect      0x0033   100   100   000    Pre-fail  Always       -       0
194 Temperature_Celsius     0x0022   022   100   000    Old_age   Always       -       22 (Min/Max 22/23)
195 Hardware_ECC_Recovered  0x0032   100   100   000    Old_age   Always       -       0
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x0012   100   100   000    Old_age   Always       -       0
201 Unknown_SSD_Attribute   0x0032   100   100   000    Old_age   Always       -       0
204 Soft_ECC_Correction     0x0032   100   100   000    Old_age   Always       -       0
231 Temperature_Celsius     0x0032   100   100   000    Old_age   Always       -       0
233 Media_Wearout_Indicator 0x0032   100   100   000    Old_age   Always       -       0
234 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
241 Total_LBAs_Written      0x0032   100   100   000    Old_age   Always       -       0
242 Total_LBAs_Read         0x0032   100   100   000    Old_age   Always       -       1
250 Read_Error_Retry_Rate   0x0032   100   100   000    Old_age   Always       -       0

smartctl sigserv on ia64

Hello!

Trying to use latest git version of smartctl, returns sigserv on my machine:

$ git describe --always
b8e4173c

(gdb) file smartctl
Reading symbols from smartctl...
(gdb) set args -A /dev/sda -d cciss,0
(gdb) run
Starting program: /home/mator/smartmontools/smartmontools/smartctl -A /dev/sda -d cciss,0

[1]+  Stopped                 gdb
smartmontools# %
gdb
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/ia64-linux-gnu/libthread_db.so.1".
smartctl 7.2 (build date Aug  5 2020) [ia64-linux-4.14.192-00001-gf30fe307c671] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org


Program received signal SIGSEGV, Segmentation fault.
sat::sat_device::scsi_pass_through (this=0xc000000000052f70, iop=0x60000fffffff6d60) at scsiata.cpp:502
502       scsi_device * scsidev = get_tunnel_dev();
(gdb) bt
#0  sat::sat_device::scsi_pass_through (this=0xc000000000052f70, iop=0x60000fffffff6d60) at scsiata.cpp:502
#1  0x400000000008ee80 in virtual thunk to sat::sat_device::scsi_pass_through(scsi_cmnd_io*) () at dev_interface.h:266
#2  0x400000000007fc30 in scsiInquiryVpd (device=0x600000000003eed8, vpd_page=0, pBuf=0x60000fffffff6de0 "", bufLen=252) at scsicmds.cpp:899
#3  0x400000000007fff0 in scsiInquiryVpd (bufLen=252, pBuf=0x60000fffffff6de0 "", vpd_page=0, device=0x600000000003eed8) at scsicmds.cpp:879
#4  supported_vpd_pages::supported_vpd_pages (this=0x600000000003efe0, device=0x600000000003eed8) at scsicmds.cpp:54
#5  0x40000000000a54e0 in scsiPrintMain (device=0x600000000003eed8, options=...) at scsiprint.cpp:2313
#6  0x4000000000010990 in main_worker (argc=5, argv=0x60000fffffffb608) at dev_interface.h:103
#7  0x4000000000005b70 in main (argc=5, argv=0x60000fffffffb608) at smartctl.cpp:1629
(gdb) 

Seagate IronWolf Pro ST8000NE0021 is not in smartctl database

smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-23-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     ST8000NE0021-2EN112
Serial Number:    ????????
LU WWN Device Id: 5 000c50 074420453
Firmware Version: EN02
User Capacity:    8,001,563,222,016 bytes [8.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Jun 27 14:58:17 2018 CEST
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:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
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:                (  567) seconds.
Offline data collection
capabilities:                    (0x7b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off 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:        ( 767) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x70bd) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   082   064   044    Pre-fail  Always       -       143833992
  3 Spin_Up_Time            0x0003   089   086   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       15
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   079   060   045    Pre-fail  Always       -       73629265
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       366 (131 187 0)
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       15
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   056   050   040    Old_age   Always       -       44 (Min/Max 33/50)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       288
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       4
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       3671
194 Temperature_Celsius     0x0022   044   050   000    Old_age   Always       -       44 (0 28 0 0 0)
195 Hardware_ECC_Recovered  0x001a   082   064   000    Old_age   Always       -       143833992
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       276 (47 128 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       3440985726
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       5929823148

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.

no support for PLEXTOR PX-512S2G

sudo smartctl -x /dev/sda
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-52-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     PLEXTOR PX-512S2G
Serial Number:    P02641113517
LU WWN Device Id: 5 002303 100bcf043
Firmware Version: 1.02
User Capacity:    512 110 190 592 bytes [512 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Oct 23 21:54:50 2020 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Unavailable
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, frozen [SEC2]
Wt Cache Reorder: Unknown (0xe001)

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x02) Offline data collection activity
                                        was completed without error.
                                        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:                (    2) 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:        (   1) minutes.
Extended self-test routine
recommended polling time:        (  10) 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          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     POSR-K   100   100   000    -    0
  5 Reallocated_Sector_Ct   PO----   100   100   000    -    0
  9 Power_On_Hours          -O----   100   100   000    -    4774
 12 Power_Cycle_Count       PO----   100   100   000    -    2625
170 Unknown_Attribute       -O--CK   100   100   000    -    38
171 Unknown_Attribute       PO----   100   100   000    -    0
172 Unknown_Attribute       PO----   100   100   000    -    0
173 Unknown_Attribute       PO----   100   100   000    -    75
174 Unknown_Attribute       PO----   100   100   000    -    214
175 Program_Fail_Count_Chip PO----   100   100   000    -    0
176 Erase_Fail_Count_Chip   PO----   100   100   000    -    0
178 Used_Rsvd_Blk_Cnt_Chip  PO----   100   100   000    -    38
179 Used_Rsvd_Blk_Cnt_Tot   PO----   100   100   000    -    38
180 Unused_Rsvd_Blk_Cnt_Tot PO--CK   100   100   005    -    62
181 Program_Fail_Cnt_Total  PO----   100   100   000    -    0
182 Erase_Fail_Count_Total  PO----   100   100   000    -    0
183 Runtime_Bad_Block       -O--CK   100   100   000    -    15
195 Hardware_ECC_Recovered  PO----   100   100   000    -    0
199 UDMA_CRC_Error_Count    PO----   100   100   000    -    0
232 Available_Reservd_Space PO----   100   100   010    -    62
233 Media_Wearout_Indicator PO----   100   100   000    -    57090
241 Total_LBAs_Written      PO----   100   100   000    -    652323
242 Total_LBAs_Read         PO----   100   100   000    -    507077
                            ||||||_ 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       GPL,SL  R/O      1  Summary SMART error log
0x02       GPL,SL  R/O      1  Comprehensive SMART error log
0x03       GPL,SL  R/O      1  Ext. Comprehensive SMART error log
0x04       GPL,SL  R/O      8  Device Statistics log
0x06       GPL,SL  R/O      1  SMART self-test log
0x07       GPL,SL  R/O      1  Extended self-test log
0x09       GPL,SL  R/W      1  Selective self-test log
0x10       GPL,SL  R/O      1  NCQ Command Error log
0x11       GPL,SL  R/O      1  SATA Phy Event Counters log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host 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 (1 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%      4770         -

Selective Self-tests/Logging not supported

SCT Status Version:                  3
SCT Version (vendor specific):       0 (0x0000)
Device State:                        Active (0)
Current Temperature:                    45 Celsius
Power Cycle Min/Max Temperature:     45/45 Celsius
Lifetime    Min/Max Temperature:      0/45 Celsius
Under/Over Temperature Limit Count:   0/0

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        1 minute
Min/Max recommended Temperature:      0/100 Celsius
Min/Max Temperature Limit:            0/100 Celsius
Temperature History Size (Index):    128 (4)

Index    Estimated Time   Temperature Celsius
   5    2020-10-23 19:47    45  **************************
 ...    ..(126 skipped).    ..  **************************
   4    2020-10-23 21:54    45  **************************

SCT Error Recovery Control:
           Read: Disabled
          Write: Disabled

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4            2625  ---  Lifetime Power-On Resets
0x01  0x010  4            4774  ---  Power-on Hours
0x01  0x018  6      4095987921  ---  Logical Sectors Written
0x01  0x020  6       312613744  ---  Number of Write Commands
0x01  0x028  6      3167054461  ---  Logical Sectors Read
0x01  0x030  6       434069926  ---  Number of Read Commands
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4            2643  ---  Number of Reported Uncorrectable Errors
0x04  0x010  4          141424  ---  Resets Between Cmd Acceptance and Completion
0x06  =====  =               =  ===  == Transport Statistics (rev 1) ==
0x06  0x008  4            6344  ---  Number of Hardware Resets
0x06  0x018  4               0  ---  Number of Interface CRC Errors
0x07  =====  =               =  ===  == Solid State Device Statistics (rev 1) ==
0x07  0x008  1               4  ---  Percentage Used Endurance Indicator
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0002  2            0  R_ERR response for data FIS
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0005  2            0  R_ERR response for non-data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x0008  2            0  Device-to-host non-data FIS retries
0x0009  2            0  Transition from drive PhyRdy to drive PhyNRdy
0x000a  2            8  Device-to-host register FISes sent due to a COMRESET
0x000b  2            0  CRC errors within host-to-device FIS
0x000d  2            0  Non-CRC errors within host-to-device FIS
0x000f  2            0  R_ERR response for host-to-device data FIS, CRC
0x0010  2            0  R_ERR response for host-to-device data FIS, non-CRC
0x0012  2            0  R_ERR response for host-to-device non-data FIS, CRC
0x0013  2            0  R_ERR response for host-to-device non-data FIS, non-CRC

Add ConditionVirtualization=!container to the smartd.service file

Currently you need 2 different configurations if you manage a system for bare-metal hardware and containers (e.g. for testing). The problem is that smartd fails if you have DEVICESCAN in the config and no disks are found (which is the case of containers). For these cases systemd offers the ConditionVirtualization option which can be set to !container to avoid starting the service inside containers. I think this is a sensible default option for the upstream service file.

Support for Samsung EVO 970 NVME SSD

On Windows 7 SP1 x64, with the Samsung-supplied secnvmeF.sys driver installed (rather than the hotfix driver stornvme.sys from Microsoft), both CrystalDiskInfo 7.6.0 and DiskCheckup v3.4 are able to get the "Raw Value" of many SMART attributes from the Samsung EVO 970 NVME SSD, though they're not able to pull up the "Current/Worst/Threshold" values as they do for the EVO 850 2.5" SATA SSD.

However, smartctl.exe fails to show any information for this drive, and reports an error, though it works for the EVO 850 (run from an elevated command prompt):

c:\cygwin\usr\sbin>smartctl.exe -d nvme -a /dev/sdc
smartctl 6.6 2017-11-05 r4594 [i686-pc-cygwin-win7(64)-sp1] (cygwin-6.6-1)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

Read NVMe Identify Controller failed: IOCTL_STORAGE_QUERY_PROPERTY(NVMe) failed, Error=1

Can support be added for the Samsung NVME driver so that the call above will return info?
Driver here: https://www.samsung.com/semiconductor/minisite/ssd/download/tools/

WDC WD120EMFZ-11A6JA0 missing from db

Still missing after I updated the database per https://www.smartmontools.org/wiki/Download#Updatethedrivedatabase

# smartctl -q noserial -x /dev/sdq
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-1062.4.1.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     WDC WD120EMFZ-11A6JA0
Firmware Version: 81.00A81
User Capacity:    12,000,138,625,024 bytes [12.0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu Mar  5 14:18:06 2020 MST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM level is:     164 (intermediate level without standby)
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x80) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Enabled.
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:                (  101) 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:        (1336) 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: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     PO-R--   100   100   001    -    0
  2 Throughput_Performance  --S---   135   135   054    -    112
  3 Spin_Up_Time            POS---   085   085   001    -    234 (Average 390)
  4 Start_Stop_Count        -O--C-   100   100   000    -    388
  5 Reallocated_Sector_Ct   PO--CK   100   100   001    -    0
  7 Seek_Error_Rate         -O-R--   100   100   001    -    0
  8 Seek_Time_Performance   --S---   133   133   020    -    18
  9 Power_On_Hours          -O--C-   100   100   000    -    646
 10 Spin_Retry_Count        -O--C-   100   100   001    -    0
 12 Power_Cycle_Count       -O--CK   098   098   000    -    202
 22 Unknown_Attribute       PO---K   100   100   025    -    100
192 Power-Off_Retract_Count -O--CK   100   100   000    -    575
193 Load_Cycle_Count        -O--C-   100   100   000    -    575
194 Temperature_Celsius     -O----   044   044   000    -    37 (Min/Max 10/50)
196 Reallocated_Event_Count -O--CK   100   100   000    -    0
197 Current_Pending_Sector  -O---K   100   100   000    -    0
198 Offline_Uncorrectable   ---R--   100   100   000    -    0
199 UDMA_CRC_Error_Count    -O-R--   100   100   000    -    0
                            ||||||_ 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      1  Comprehensive SMART error log
0x03       GPL     R/O      1  Ext. Comprehensive SMART error log
0x04       GPL     R/O    256  Device Statistics log
0x04       SL      R/O    255  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x08       GPL     R/O      2  Power Conditions log
0x09           SL  R/W      1  Selective self-test log
0x0c       GPL     R/O   5501  Pending Defects log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x12       GPL     R/O      1  SATA NCQ Non-Data log
0x13       GPL     R/O      1  SATA NCQ Send and Receive log
0x15       GPL     R/W      1  Rebuild Assist log
0x21       GPL     R/O      1  Write stream error log
0x22       GPL     R/O      1  Read stream error log
0x24       GPL     R/O    256  Current Device Internal Status Data log
0x25       GPL     R/O    256  Saved Device Internal Status Data log
0x2f       GPL     -        1  Set Sector Configuration
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host 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 (1 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%        40         -

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.

SCT Status Version:                  3
SCT Version (vendor specific):       256 (0x0100)
Device State:                        Active (0)
Current Temperature:                    37 Celsius
Power Cycle Min/Max Temperature:     23/37 Celsius
Lifetime    Min/Max Temperature:     10/50 Celsius
Under/Over Temperature Limit Count:   0/0
SMART Status:                        0xc24f (PASSED)
Minimum supported ERC Time Limit:    70 (7.0 seconds)

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        1 minute
Min/Max recommended Temperature:      0/65 Celsius
Min/Max Temperature Limit:           -40/70 Celsius
Temperature History Size (Index):    128 (98)

Index    Estimated Time   Temperature Celsius
  99    2020-03-05 12:11    27  ********
 100    2020-03-05 12:12    27  ********
 101    2020-03-05 12:13    28  *********
 102    2020-03-05 12:14    28  *********
 103    2020-03-05 12:15    29  **********
 104    2020-03-05 12:16    29  **********
 105    2020-03-05 12:17    30  ***********
 106    2020-03-05 12:18    30  ***********
 107    2020-03-05 12:19    30  ***********
 108    2020-03-05 12:20    31  ************
 109    2020-03-05 12:21    31  ************
 110    2020-03-05 12:22    31  ************
 111    2020-03-05 12:23    32  *************
 112    2020-03-05 12:24    32  *************
 113    2020-03-05 12:25    32  *************
 114    2020-03-05 12:26    33  **************
 ...    ..(  2 skipped).    ..  **************
 117    2020-03-05 12:29    33  **************
 118    2020-03-05 12:30    34  ***************
 ...    ..(  2 skipped).    ..  ***************
 121    2020-03-05 12:33    34  ***************
 122    2020-03-05 12:34    35  ****************
 ...    ..(  3 skipped).    ..  ****************
 126    2020-03-05 12:38    35  ****************
 127    2020-03-05 12:39    36  *****************
 ...    ..(  2 skipped).    ..  *****************
   2    2020-03-05 12:42    36  *****************
   3    2020-03-05 12:43    34  ***************
   4    2020-03-05 12:44    34  ***************
   5    2020-03-05 12:45    35  ****************
 ...    ..(  3 skipped).    ..  ****************
   9    2020-03-05 12:49    35  ****************
  10    2020-03-05 12:50    36  *****************
 ...    ..(  3 skipped).    ..  *****************
  14    2020-03-05 12:54    36  *****************
  15    2020-03-05 12:55    37  ******************
 ...    ..(  5 skipped).    ..  ******************
  21    2020-03-05 13:01    37  ******************
  22    2020-03-05 13:02    38  *******************
 ...    ..(  6 skipped).    ..  *******************
  29    2020-03-05 13:09    38  *******************
  30    2020-03-05 13:10    39  ********************
 ...    ..(  2 skipped).    ..  ********************
  33    2020-03-05 13:13    39  ********************
  34    2020-03-05 13:14    19  -
  35    2020-03-05 13:15    20  *
  36    2020-03-05 13:16    21  **
  37    2020-03-05 13:17    22  ***
  38    2020-03-05 13:18    22  ***
  39    2020-03-05 13:19    23  ****
  40    2020-03-05 13:20    24  *****
  41    2020-03-05 13:21    24  *****
  42    2020-03-05 13:22    25  ******
  43    2020-03-05 13:23    26  *******
  44    2020-03-05 13:24    26  *******
  45    2020-03-05 13:25    27  ********
  46    2020-03-05 13:26    27  ********
  47    2020-03-05 13:27    28  *********
  48    2020-03-05 13:28    28  *********
  49    2020-03-05 13:29    29  **********
  50    2020-03-05 13:30    29  **********
  51    2020-03-05 13:31    30  ***********
  52    2020-03-05 13:32    30  ***********
  53    2020-03-05 13:33    30  ***********
  54    2020-03-05 13:34    31  ************
  55    2020-03-05 13:35    31  ************
  56    2020-03-05 13:36    32  *************
  57    2020-03-05 13:37    32  *************
  58    2020-03-05 13:38    32  *************
  59    2020-03-05 13:39    33  **************
  60    2020-03-05 13:40    33  **************
  61    2020-03-05 13:41    33  **************
  62    2020-03-05 13:42    34  ***************
 ...    ..(  2 skipped).    ..  ***************
  65    2020-03-05 13:45    34  ***************
  66    2020-03-05 13:46    17  -
  67    2020-03-05 13:47    23  ****
  68    2020-03-05 13:48    24  *****
  69    2020-03-05 13:49    24  *****
  70    2020-03-05 13:50    25  ******
  71    2020-03-05 13:51    26  *******
  72    2020-03-05 13:52    26  *******
  73    2020-03-05 13:53    27  ********
  74    2020-03-05 13:54    28  *********
  75    2020-03-05 13:55    28  *********
  76    2020-03-05 13:56    29  **********
  77    2020-03-05 13:57    29  **********
  78    2020-03-05 13:58    30  ***********
  79    2020-03-05 13:59    30  ***********
  80    2020-03-05 14:00    31  ************
  81    2020-03-05 14:01    31  ************
  82    2020-03-05 14:02    32  *************
  83    2020-03-05 14:03    32  *************
  84    2020-03-05 14:04    32  *************
  85    2020-03-05 14:05    33  **************
  86    2020-03-05 14:06    33  **************
  87    2020-03-05 14:07    34  ***************
  88    2020-03-05 14:08    34  ***************
  89    2020-03-05 14:09    34  ***************
  90    2020-03-05 14:10    35  ****************
  91    2020-03-05 14:11    35  ****************
  92    2020-03-05 14:12    35  ****************
  93    2020-03-05 14:13    36  *****************
  94    2020-03-05 14:14    36  *****************
  95    2020-03-05 14:15    36  *****************
  96    2020-03-05 14:16    37  ******************
  97    2020-03-05 14:17    37  ******************
  98    2020-03-05 14:18    26  *******

SCT Error Recovery Control:
           Read:     70 (7.0 seconds)
          Write:     70 (7.0 seconds)

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4             202  ---  Lifetime Power-On Resets
0x01  0x010  4             646  ---  Power-on Hours
0x01  0x018  6     77386470192  ---  Logical Sectors Written
0x01  0x020  6        75993752  ---  Number of Write Commands
0x01  0x028  6     87913422432  ---  Logical Sectors Read
0x01  0x030  6       343853774  ---  Number of Read Commands
0x01  0x038  6      2328711400  ---  Date and Time TimeStamp
0x03  =====  =               =  ===  == Rotating Media Statistics (rev 1) ==
0x03  0x008  4             571  ---  Spindle Motor Power-on Hours
0x03  0x010  4             571  ---  Head Flying Hours
0x03  0x018  4             575  ---  Head Load Events
0x03  0x020  4               0  ---  Number of Reallocated Logical Sectors
0x03  0x028  4            4732  ---  Read Recovery Attempts
0x03  0x030  4               0  ---  Number of Mechanical Start Failures
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4               0  ---  Number of Reported Uncorrectable Errors
0x04  0x010  4               0  ---  Resets Between Cmd Acceptance and Completion
0x04  0x018  4               0  ---  Physical Element Status Changed
0x05  =====  =               =  ===  == Temperature Statistics (rev 1) ==
0x05  0x008  1              37  ---  Current Temperature
0x05  0x010  1              38  N--  Average Short Term Temperature
0x05  0x018  1              39  N--  Average Long Term Temperature
0x05  0x020  1              50  ---  Highest Temperature
0x05  0x028  1              10  ---  Lowest Temperature
0x05  0x030  1              47  N--  Highest Average Short Term Temperature
0x05  0x038  1              13  N--  Lowest Average Short Term Temperature
0x05  0x040  1              39  N--  Highest Average Long Term Temperature
0x05  0x048  1              25  N--  Lowest Average Long Term Temperature
0x05  0x050  4               0  ---  Time in Over-Temperature
0x05  0x058  1              65  ---  Specified Maximum Operating Temperature
0x05  0x060  4               0  ---  Time in Under-Temperature
0x05  0x068  1               0  ---  Specified Minimum Operating Temperature
0x06  =====  =               =  ===  == Transport Statistics (rev 1) ==
0x06  0x008  4             190  ---  Number of Hardware Resets
0x06  0x010  4               1  ---  Number of ASR Events
0x06  0x018  4               0  ---  Number of Interface CRC Errors
0xff  =====  =               =  ===  == Vendor Specific Statistics (rev 1) ==
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

Pending Defects log (GP Log 0x0c)
No Defects Logged

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0002  2            0  R_ERR response for data FIS
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0005  2            0  R_ERR response for non-data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x0008  2            0  Device-to-host non-data FIS retries
0x0009  2            0  Transition from drive PhyRdy to drive PhyNRdy
0x000a  2            1  Device-to-host register FISes sent due to a COMRESET
0x000b  2            0  CRC errors within host-to-device FIS
0x000d  2            0  Non-CRC errors within host-to-device FIS
```

smartd not writing attributes (-A) for NVMe devices on FreeBSD

Steps to reproduce:

smartd.conf:
DEVICESCAN -a -o on -S on -s (S/../.././02|L/../../6/03) -W 4,35,40 -m root

smartd flags:
smartd -c /usr/local/etc/smartd.conf -p /var/run/smartd.pid -A /var/log/smartd/ -i 600

/var/log/smartd/ contains all my sata drives, but not my NVMe drives.

If I do smartclt -a /dev/nvme0 I get output, and smartd sends alerts as normal (temp etc.) for the NVMe devices.

Thanks!

SMART Automatic Offline Testing unsupported - enabled SMART Automatic Offline Testing.

In /var/log/messages:

Mar  5 18:27:51 localhost smartd[9867]: Device: /dev/sdm [SAT], SMART Automatic Offline Testing unsupported...
Mar  5 18:27:51 localhost smartd[9867]: Device: /dev/sdm [SAT], enabled SMART Automatic Offline Testing.

Manual test:

# smartctl -o on /dev/sdm
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-1062.4.1.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Automatic Timers not supported

SMART Automatic Offline Testing Enabled every four hours.

I'm thinking it probably shouldn't be reporting enabled, if it is unsupported.

AMP99L16 smartctl

sudo smartctl -x /dev/sdb
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-1127.18.2.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     AMP99L16
Firmware Version: M-011221
User Capacity:    249,790,889,984 bytes [249 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    Solid State Device
Form Factor:      M.2
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu Mar 11 14:46:33 2021 KST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Unavailable
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: Unavailable

=== 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: 		(   16) seconds.
Offline data collection
capabilities: 			 (0x1d) SMART execute Offline immediate.
					No Auto Offline data collection support.
					Abort Offline collection upon new
					command.
					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: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 (  60) minutes.

SMART Attributes Data Structure revision number: 11
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     -O--CK   100   100   000    -    0
  9 Power_On_Hours          -O--CK   100   100   000    -    0
 12 Power_Cycle_Count       -O--CK   100   100   000    -    2
 13 Read_Soft_Error_Rate    -O--CK   100   100   000    -    0
181 Program_Fail_Cnt_Total  -O--CK   100   100   000    -    0
184 Initial_Bad_Block_Count -O--CK   200   200   000    -    66
187 Reported_Uncorrect      -O--CK   100   100   000    -    0
190 Airflow_Temperature_Cel -O--CK   039   100   000    -    39
194 Temperature_Celsius     -O--CK   039   100   000    -    39
199 UDMA_CRC_Error_Count    -O--CK   100   100   099    -    0
200 Unknown_SSD_Attribute   -O--CK   100   100   000    -    0
201 Unknown_SSD_Attribute   -O--CK   100   100   000    -    54
202 Total_LBAs_Written         -O--CK   100   100   000    -    0
204 Total_LBAs_Read           -O--CK   100   100   000    -    4360
209 User_Block_Endurance   -O--CK   100   100   000    -    99
210 Unknown_Attribute       -O--CK   100   100   000    -    4295032833
213 Unknown_Attribute       -O--CK   100   100   000    -    3000
225 Unknown_SSD_Attribute   -O--CK   100   100   000    -    1
226 Unknown_SSD_Attribute   -O--CK   100   100   000    -    4
227 Unknown_SSD_Attribute   -O--CK   100   100   000    -    100199976408668
228 Power-off_Retract_Count -O--CK   100   100   000    -    7962
229 Unknown_Attribute       -O--CK   100   100   000    -    68719476736
230 Unknown_SSD_Attribute   -O--CK   100   100   000    -    21422
241 Total_PBAs_Written      -O--CK   100   100   000    -    128
242 Total_LBAs_Read         -O--CK   100   100   000    -    0
243 Unknown_Attribute       -O--CK   100   100   000    -    0
244 Unknown_Attribute       -O--CK   100   100   000    -    4
245 Index_Block_Endurance  -O--CK   100   100   000    -    9999
                            ||||||_ 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       GPL,SL  R/O      1  Summary SMART error log
0x02       GPL,SL  R/O     51  Comprehensive SMART error log
0x03       GPL,SL  R/O     29  Ext. Comprehensive SMART error log
0x06       GPL,SL  R/O      1  SMART self-test log
0x07       GPL,SL  R/O      1  Extended self-test log
0x09       GPL,SL  R/W      1  Selective self-test log
0x10       GPL,SL  R/O      1  NCQ Command Error log
0x11       GPL,SL  R/O      1  SATA Phy Event Counters log
0x80       GPL,SL  R/W     32  Host vendor specific log
0xa0       GPL,SL  VS       1  Device vendor specific log

SMART Extended Comprehensive Error Log Version: 0 (29 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 0 (1 sectors)
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

Selective Self-tests/Logging not supported

SCT Commands not supported

Device Statistics (GP/SMART Log 0x04) not supported

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description

please add USB bridge

root@meadow:~# smartctl -a /dev/sdd
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-5.0.0-13-generic] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sdd: Unknown USB bridge [0x8564:0x7000 (0x8000)]
Please specify device type with the -d option.

root@meadow:~# smartctl -d sat -a /dev/sdd
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-5.0.0-13-generic] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model: HGST HCC545050A7E630
Serial Number: RBH50AAH1VK1BP
LU WWN Device Id: 5 000cca 8aada2922
Firmware Version: GR2OA300
User Capacity: 500,107,862,016 bytes [500 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Form Factor: 2.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ATA8-ACS T13/1699-D revision 6
SATA Version is: SATA 2.6, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Fri May 3 11:55:55 2019 IDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Add Seagate Nytro WarpDrive 6203 / Sun Flash Accelerator F40

It's reporting weird Offline uncorrectable sectors (198). I've attached the output of smartctl -x for 8 devices (4 on each card) and also the output of nytrocli64 -c [12] -health -all. The output can be matched using the serial number.

So far I got the following:

{
 "Seagate Nytro WarpDrive 6203", // tested with 3E128-TS2-550B01
  "3E128-TS2-550B01",                                            
  "", "",                                                        
  "-v 13,raw24/raw32 "                                           
  "-v 100,raw48,Gigabytes_erased "                               
  "-v 170,raw48,Reserved_Blocks "                                
  "-v 174,raw48,Unexpect_Power_Loss_Ct "                         
},                                                               

smartct-Seagate-Nytro-WarpDrive-6203_sde.txt
smartct-Seagate-Nytro-WarpDrive-6203_sdj.txt
smartct-Seagate-Nytro-WarpDrive-6203_sdk.txt
smartct-Seagate-Nytro-WarpDrive-6203_sdl.txt
smartct-Seagate-Nytro-WarpDrive-6203_sdf.txt
smartct-Seagate-Nytro-WarpDrive-6203_sdg.txt
smartct-Seagate-Nytro-WarpDrive-6203_sdh.txt
smartct-Seagate-Nytro-WarpDrive-6203_sdi.txt
nytrocli-1.txt
nytrocli-2.txt

Samsung MZ7TD512HAGM-000L1 not in smartctl database

The Samsung MZ7TD512HAGM-000L1 not in smartctl database, currently.
This is my smartctl output:

smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.18.0-18-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     SAMSUNG MZ7TD512HAGM-000L1
Serial Number:    [REDACTED]
LU WWN Device Id: 5 002538 500000000
Add. Product Id:  00000000
Firmware Version: DXT06L0Q
User Capacity:    512.110.190.592 bytes [512 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4c
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Apr 24 12:56:21 2019 CEST
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:                (53956) 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:        (  70) 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
  9 Power_On_Hours          0x0032   097   097   000    Old_age   Always       -       11995
 12 Power_Cycle_Count       0x0032   095   095   000    Old_age   Always       -       4854
175 Program_Fail_Count_Chip 0x0032   100   100   010    Old_age   Always       -       0
176 Erase_Fail_Count_Chip   0x0032   100   100   010    Old_age   Always       -       0
177 Wear_Leveling_Count     0x0013   094   094   005    Pre-fail  Always       -       67
178 Used_Rsvd_Blk_Cnt_Chip  0x0013   100   100   010    Pre-fail  Always       -       0
179 Used_Rsvd_Blk_Cnt_Tot   0x0013   100   100   010    Pre-fail  Always       -       0
180 Unused_Rsvd_Blk_Cnt_Tot 0x0013   100   100   010    Pre-fail  Always       -       12480
181 Program_Fail_Cnt_Total  0x0032   100   100   010    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   100   100   010    Old_age   Always       -       0
183 Runtime_Bad_Block       0x0013   100   100   010    Pre-fail  Always       -       0
184 End-to-End_Error        0x0033   100   100   097    Pre-fail  Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0032   076   051   000    Old_age   Always       -       24
195 Hardware_ECC_Recovered  0x001a   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   253   253   000    Old_age   Always       -       0
233 Media_Wearout_Indicator 0x003a   199   199   000    Old_age   Always       -       1631743
234 Unknown_Attribute       0x0012   100   100   000    Old_age   Always       -       0
235 Unknown_Attribute       0x0012   099   099   000    Old_age   Always       -       99
236 Unknown_Attribute       0x0012   099   099   000    Old_age   Always       -       34
237 Unknown_Attribute       0x0012   099   099   000    Old_age   Always       -       67
238 Unknown_Attribute       0x0012   100   100   000    Old_age   Always       -       0

WDC WD120EMAZ-11BLFA0 missing from db

Still missing after I updated the database per https://www.smartmontools.org/wiki/Download#Updatethedrivedatabase

# lsusb | grep Western
Bus 010 Device 010: ID 1058:25fb Western Digital Technologies, Inc.
# smartctl -q noserial -x /dev/sdq
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-1062.4.1.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     WDC WD120EMAZ-11BLFA0
Firmware Version: 81.00A81
User Capacity:    12,000,138,625,024 bytes [12.0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu Mar 12 20:40:42 2020 MDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM level is:     164 (intermediate level without standby)
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x80) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Enabled.
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:                (   87) 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:        (1329) 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: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     PO-R--   100   100   016    -    0
  2 Throughput_Performance  --S---   100   100   054    -    0
  3 Spin_Up_Time            POS---   100   100   024    -    0
  4 Start_Stop_Count        -O--C-   100   100   000    -    7
  5 Reallocated_Sector_Ct   PO--CK   100   100   005    -    0
  7 Seek_Error_Rate         -O-R--   100   100   067    -    0
  8 Seek_Time_Performance   --S---   100   100   020    -    0
  9 Power_On_Hours          -O--C-   100   100   000    -    3
 10 Spin_Retry_Count        -O--C-   100   100   060    -    0
 12 Power_Cycle_Count       -O--CK   100   100   000    -    5
 22 Unknown_Attribute       PO---K   100   100   025    -    100
192 Power-Off_Retract_Count -O--CK   100   100   000    -    7
193 Load_Cycle_Count        -O--C-   100   100   000    -    7
194 Temperature_Celsius     -O----   250   250   000    -    26 (Min/Max 18/47)
196 Reallocated_Event_Count -O--CK   100   100   000    -    0
197 Current_Pending_Sector  -O---K   100   100   000    -    0
198 Offline_Uncorrectable   ---R--   100   100   000    -    0
199 UDMA_CRC_Error_Count    -O-R--   200   200   000    -    0
                            ||||||_ 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      1  Comprehensive SMART error log
0x03       GPL     R/O      1  Ext. Comprehensive SMART error log
0x04       GPL     R/O    256  Device Statistics log
0x04       SL      R/O    255  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x08       GPL     R/O      2  Power Conditions log
0x09           SL  R/W      1  Selective self-test log
0x0c       GPL     R/O   5501  Pending Defects log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x12       GPL     R/O      1  SATA NCQ Non-Data log
0x13       GPL     R/O      1  SATA NCQ Send and Receive log
0x15       GPL     R/W      1  Rebuild Assist log
0x21       GPL     R/O      1  Write stream error log
0x22       GPL     R/O      1  Read stream error log
0x24       GPL     R/O    256  Current Device Internal Status Data log
0x25       GPL     R/O    256  Saved Device Internal Status Data log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host 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 (1 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%         3         -
# 2  Extended offline    Aborted by host               90%         3         -
# 3  Extended offline    Aborted by host               90%         1         -
# 4  Extended offline    Aborted by host               90%         0         -

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.

SCT Status Version:                  3
SCT Version (vendor specific):       256 (0x0100)
Device State:                        Active (0)
Current Temperature:                    26 Celsius
Power Cycle Min/Max Temperature:     21/26 Celsius
Lifetime    Min/Max Temperature:     18/47 Celsius
Under/Over Temperature Limit Count:   0/0

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        1 minute
Min/Max recommended Temperature:      0/65 Celsius
Min/Max Temperature Limit:           -40/70 Celsius
Temperature History Size (Index):    128 (94)

Index    Estimated Time   Temperature Celsius
  95    2020-03-12 18:33    46  ***************************
 ...    ..( 14 skipped).    ..  ***************************
 110    2020-03-12 18:48    46  ***************************
 111    2020-03-12 18:49    47  ****************************
 ...    ..(  8 skipped).    ..  ****************************
 120    2020-03-12 18:58    47  ****************************
 121    2020-03-12 18:59    46  ***************************
 ...    ..(  8 skipped).    ..  ***************************
   2    2020-03-12 19:08    46  ***************************
   3    2020-03-12 19:09    45  **************************
 ...    ..( 13 skipped).    ..  **************************
  17    2020-03-12 19:23    45  **************************
  18    2020-03-12 19:24    44  *************************
 ...    ..( 17 skipped).    ..  *************************
  36    2020-03-12 19:42    44  *************************
  37    2020-03-12 19:43    45  **************************
 ...    ..( 12 skipped).    ..  **************************
  50    2020-03-12 19:56    45  **************************
  51    2020-03-12 19:57    46  ***************************
 ...    ..( 33 skipped).    ..  ***************************
  85    2020-03-12 20:31    46  ***************************
  86    2020-03-12 20:32    21  **
  87    2020-03-12 20:33    21  **
  88    2020-03-12 20:34    22  ***
  89    2020-03-12 20:35    23  ****
  90    2020-03-12 20:36    24  *****
  91    2020-03-12 20:37    24  *****
  92    2020-03-12 20:38    25  ******
  93    2020-03-12 20:39    25  ******
  94    2020-03-12 20:40    46  ***************************

SCT Error Recovery Control:
           Read:     70 (7.0 seconds)
          Write:     70 (7.0 seconds)

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4               5  ---  Lifetime Power-On Resets
0x01  0x010  4               3  ---  Power-on Hours
0x01  0x018  6          895053  ---  Logical Sectors Written
0x01  0x020  6            7267  ---  Number of Write Commands
0x01  0x028  6         1570268  ---  Logical Sectors Read
0x01  0x030  6           12907  ---  Number of Read Commands
0x01  0x038  6        13353850  ---  Date and Time TimeStamp
0x03  =====  =               =  ===  == Rotating Media Statistics (rev 1) ==
0x03  0x008  4               3  ---  Spindle Motor Power-on Hours
0x03  0x010  4               3  ---  Head Flying Hours
0x03  0x018  4               7  ---  Head Load Events
0x03  0x020  4               0  ---  Number of Reallocated Logical Sectors
0x03  0x028  4               0  ---  Read Recovery Attempts
0x03  0x030  4               0  ---  Number of Mechanical Start Failures
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4               0  ---  Number of Reported Uncorrectable Errors
0x04  0x010  4               0  ---  Resets Between Cmd Acceptance and Completion
0x05  =====  =               =  ===  == Temperature Statistics (rev 1) ==
0x05  0x008  1              26  ---  Current Temperature
0x05  0x010  1               -  N--  Average Short Term Temperature
0x05  0x018  1               -  N--  Average Long Term Temperature
0x05  0x020  1              47  ---  Highest Temperature
0x05  0x028  1              18  ---  Lowest Temperature
0x05  0x030  1               -  N--  Highest Average Short Term Temperature
0x05  0x038  1               -  N--  Lowest Average Short Term Temperature
0x05  0x040  1               -  N--  Highest Average Long Term Temperature
0x05  0x048  1               -  N--  Lowest Average Long Term Temperature
0x05  0x050  4               0  ---  Time in Over-Temperature
0x05  0x058  1              65  ---  Specified Maximum Operating Temperature
0x05  0x060  4               0  ---  Time in Under-Temperature
0x05  0x068  1               0  ---  Specified Minimum Operating Temperature
0x06  =====  =               =  ===  == Transport Statistics (rev 1) ==
0x06  0x008  4               6  ---  Number of Hardware Resets
0x06  0x010  4               0  ---  Number of ASR Events
0x06  0x018  4               0  ---  Number of Interface CRC Errors
0xff  =====  =               =  ===  == Vendor Specific Statistics (rev 1) ==
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

Pending Defects log (GP Log 0x0c)
No Defects Logged

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0002  2            0  R_ERR response for data FIS
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0005  2            0  R_ERR response for non-data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x0008  2            0  Device-to-host non-data FIS retries
0x0009  2            0  Transition from drive PhyRdy to drive PhyNRdy
0x000a  2            1  Device-to-host register FISes sent due to a COMRESET
0x000b  2            0  CRC errors within host-to-device FIS
0x000d  2            0  Non-CRC errors within host-to-device FIS

samsung m2 sata 512 gb drive is not supported by current db

samsung m2 sata 512 gb drive is not supported by current db...

sudo smartctl -x /dev/sda
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-59-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     SAMSUNG MZNTE512HMJH-000L2
Serial Number:    XXXXXXXXremovedXXXXXXX
LU WWN Device Id: 5 002538 844584d30
Firmware Version: EXT26L0Q
User Capacity:    512,110,190,592 bytes [512 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4c
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Jan  9 14:10:14 2021 EET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Unavailable
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, frozen [SEC2]
Unexpected SCT status 0x0001 (action_code=4, function_code=2)
Wt Cache Reorder: Unknown (SCT Feature Control command failed)

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
See vendor-specific Attribute list for marginal Attributes.

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: 			 (0x53) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					No 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: 	 ( 110) 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          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  9 Power_On_Hours          -O--CK   097   097   000    -    13711
 12 Power_Cycle_Count       -O--CK   096   096   000    -    4008
175 Program_Fail_Count_Chip -O--CK   100   100   010    -    0
176 Erase_Fail_Count_Chip   -O--CK   100   100   010    -    0
177 Wear_Leveling_Count     PO--C-   090   090   005    -    114
178 Used_Rsvd_Blk_Cnt_Chip  PO--C-   100   100   010    -    0
179 Used_Rsvd_Blk_Cnt_Tot   PO--C-   100   100   010    -    0
180 Unused_Rsvd_Blk_Cnt_Tot PO--C-   100   001   010    Past 8845
181 Program_Fail_Cnt_Total  -O--CK   100   100   010    -    0
182 Erase_Fail_Count_Total  -O--CK   100   100   010    -    0
183 Runtime_Bad_Block       PO--C-   100   100   010    -    0
184 End-to-End_Error        PO--CK   100   100   097    -    0
187 Reported_Uncorrect      -O--CK   100   100   000    -    0
190 Airflow_Temperature_Cel -O--CK   065   031   000    -    35
195 Hardware_ECC_Recovered  -O-RC-   200   200   000    -    0
198 Offline_Uncorrectable   ----CK   100   100   000    -    0
199 UDMA_CRC_Error_Count    -OSRCK   100   100   000    -    0
233 Media_Wearout_Indicator -O-RCK   199   199   000    -    12957
234 Unknown_Attribute       -O--C-   100   100   000    -    0
235 Unknown_Attribute       -O--C-   099   099   000    -    453
236 Unknown_Attribute       -O--C-   099   099   000    -    56
237 Unknown_Attribute       -O--C-   099   099   000    -    114
238 Unknown_Attribute       -O--C-   100   100   000    -    0
                            ||||||_ 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      1  Comprehensive SMART error log
0x03       GPL     R/O      1  Ext. Comprehensive SMART error log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test 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 log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xdf       GPL,SL  VS       1  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 (1 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%         0         -
# 2  Short offline       Completed without error       00%        11         -
# 3  Short offline       Completed without error       00%         0         -
# 4  Short offline       Completed without error       00%         0         -
# 5  Short offline       Completed without error       00%         0         -

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.

SCT Status Version:                  3
SCT Version (vendor specific):       1 (0x0001)
Device State:                        Active (0)
Current Temperature:                    35 Celsius
Power Cycle Min/Max Temperature:      ?/ ? Celsius
Lifetime    Min/Max Temperature:      ?/ ? Celsius
Under/Over Temperature Limit Count:   0/81784

SCT Temperature History Version:     2
Temperature Sampling Period:         10 minutes
Temperature Logging Interval:        10 minutes
Min/Max recommended Temperature:      ?/ ? Celsius
Min/Max Temperature Limit:            ?/ ? Celsius
Temperature History Size (Index):    128 (14)

Index    Estimated Time   Temperature Celsius
  15    2021-01-08 17:00     ?  -
 ...    ..(112 skipped).    ..  -
   0    2021-01-09 11:50     ?  -
   1    2021-01-09 12:00    32  *************
   2    2021-01-09 12:10    34  ***************
   3    2021-01-09 12:20    32  *************
   4    2021-01-09 12:30    34  ***************
   5    2021-01-09 12:40    36  *****************
   6    2021-01-09 12:50    35  ****************
   7    2021-01-09 13:00    36  *****************
 ...    ..(  5 skipped).    ..  *****************
  13    2021-01-09 14:00    36  *****************
  14    2021-01-09 14:10    35  ****************

SCT Error Recovery Control:
           Read: Disabled
          Write: Disabled

Device Statistics (GP/SMART Log 0x04) not supported

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0002  2            0  R_ERR response for data FIS
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0005  2            0  R_ERR response for non-data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x0008  2            0  Device-to-host non-data FIS retries
0x0009  2        65535+ Transition from drive PhyRdy to drive PhyNRdy
0x000a  2            3  Device-to-host register FISes sent due to a COMRESET
0x000b  2            0  CRC errors within host-to-device FIS
0x000d  2            0  Non-CRC errors within host-to-device FIS
0x000f  2            0  R_ERR response for host-to-device data FIS, CRC
0x0010  2            0  R_ERR response for host-to-device data FIS, non-CRC
0x0012  2            0  R_ERR response for host-to-device non-data FIS, CRC
0x0013  2            0  R_ERR response for host-to-device non-data FIS, non-CRC

CT1000MX500SSD1 Not in smartctl database

smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.18-17-pve] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model: CT1000MX500SSD1
Serial Number: 1902E1E2E165
LU WWN Device Id: 5 00a075 1e1e2e165
Firmware Version: M3CR023
User Capacity: 1 000 204 886 016 bytes [1,00 TB]
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: ACS-3 T13/2161-D revision 5
SATA Version is: SATA >3.2 (0x1ff), 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Sat Oct 19 22:02:41 2019 MSK
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: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
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: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off 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: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 30) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x0031) SCT Status 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 FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VA
1 Raw_Read_Error_Rate 0x002f 100 100 000 Pre-fail Always - 0
5 Reallocated_Sector_Ct 0x0032 100 100 010 Old_age Always - 0
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 2002
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 118
171 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 0
172 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 0
173 Unknown_Attribute 0x0032 097 097 000 Old_age Always - 54
174 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 7
180 Unused_Rsvd_Blk_Cnt_Tot 0x0033 000 000 000 Pre-fail Always - 49
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0032 100 100 000 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
194 Temperature_Celsius 0x0022 059 048 000 Old_age Always - 41 (Mi
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 100 100 000 Old_age Always - 0
202 Unknown_SSD_Attribute 0x0030 097 097 001 Old_age Offline - 3
206 Unknown_SSD_Attribute 0x000e 100 100 000 Old_age Always - 0
210 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 0
246 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 503110
247 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 868915
248 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 167619

SMART Error Log Version: 1
Warning: ATA error count 0 inconsistent with error log pointer 1

ATA Error Count: 0
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 0 occurred at disk power-on lifetime: 0 hours (0 days + 0 hours)
When the command that caused the error occurred, the device was in an unknown state.

After command completion occurred, registers were:
ER ST SC SN CL CH DH


00 ec 00 00 00 00 00

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name


ec 00 00 00 00 00 00 00 00:00:00.000 IDENTIFY DEVICE
ec 00 00 00 00 00 00 00 00:00:00.000 IDENTIFY DEVICE
ec 00 00 00 00 00 00 00 00:00:00.000 IDENTIFY DEVICE
ec 00 00 00 00 00 00 00 00:00:00.000 IDENTIFY DEVICE
c8 00 00 00 00 00 00 00 00:00:00.000 READ DMA

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_err

1 Short offline Completed without error 00% 2002 -

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.