Custom Query (1110 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (127 - 129 of 1110)

Ticket Resolution Summary Owner Reporter
#1427 fixed Add support for SCT Error Recovery Timer features added in ACS-4 Christian Franke Jeremy Bauer
Description

ATA command set version 4 (ACS-4) and later support new capabilities for the SMART Command Transport (SCT) Error Recovery Control (ERT) function. Specifically, function codes 0003h-0005h were added. These functions are very useful for saving and retrieving persistent-over-power-cycle timer values and for resetting the drive to the manufacturer defaults. The patch provided enables the ability to use these new function codes by extending the functionality of the scterc.

The attached patch was generated from the git repo. Let me know if a svn patch is preferred.

Usage update:

-l TYPE, --log=TYPE

Show device log. TYPE: error, selftest, selective, directory[,g|s], xerror[,N][,error], xselftest[,N][,selftest], background, sasphy[,reset], sataphy[,reset], scttemp[sts,hist], scttempint,N[,p], scterc[,N,M][,p|r], devstat[,N], defects[,N], ssd, gplog,N[,RANGE], smartlog,N[,RANGE], nvmelog,N,SIZE

Man page update:

scterc[,READTIME,WRITETIME][,p|r] - [ATA only] prints values and descriptions of the SCT Error Recovery Control settings. These are equivalent to TLER (as used by Western Digital), CCTL (as used by Samsung and Hitachi/HGST) and ERC (as used by Seagate). READTIME and WRITETIME arguments (deciseconds) set the specified values. Values of 0 disable the feature, other values less than 65 are probably not sup\u2010 ported. For RAID configurations, this is typically set to 70,70 deciseconds. If ',p' is specified with read and write time values, these time values will be persistent over a power-on reset. If ',p' is specified without read and write time values, the persistent over power-on values will be returned. If ',r' is specified, all SCT timer settings are restored to the manufacturer's default value. The ',p' and ',r' options require the device to support ACS-4 or higher.

Usage Examples:

1) Print persistent power-on values

jrbauer@zeus:~$ sudo smartctl -l scterc,p /dev/sdb smartctl 7.2 (build date Jan 11 2021) [x86_64-linux-5.4.0-60-generic] (local build) Copyright (C) 2002-21, Bruce Allen, Christian Franke, www.smartmontools.org

SCT Error Recovery Control: Power-on Read: Disabled

Power-on Write: Disabled

2) Set power-on values

jrbauer@zeus:~$ sudo smartctl -l scterc,80,82,p /dev/sdb smartctl 7.2 (build date Jan 11 2021) [x86_64-linux-5.4.0-60-generic] (local build) Copyright (C) 2002-21, Bruce Allen, Christian Franke, www.smartmontools.org

SCT Error Recovery Control set to:

Power-on Read: 80 (8.0 seconds)

Power-on Write: 82 (8.2 seconds)

3) Reset power-on and current values to the device default

jrbauer@zeus:~$ sudo smartctl -l scterc,r /dev/sdb smartctl 7.2 (build date Jan 11 2021) [x86_64-linux-5.4.0-60-generic] (local build) Copyright (C) 2002-21, Bruce Allen, Christian Franke, www.smartmontools.org

SCT Error Recovery Control set to: default values.

#130 fixed Add support for Samsung Story Station 3.0 2TB Drive Christian Franke Steven Ellis
Description

Drive works with the "-d sat" option.

smartctl -a -d sat /dev/sdb
smartctl 5.40 2010-10-16 r3189 [x86_64-redhat-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Device Model:     SAMSUNG HD203WI
Serial Number:    S27KJ1ZZ600470
Firmware Version: 1AN10003
User Capacity:    2,000,398,934,016 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 6
Local Time is:    Mon Dec 20 17:03:10 2010 NZDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Drive HD203WI is an EcoGreen F3

The following needs to be added to drivedb.h

  { "USB: Samsung Story Station; ",
    "0x04e8:0x6054",
    "",
    "",
    "-d sat"
  },
#337 fixed Add support for SanDisk SSD U100 series Christian Franke PSzlubecki
Description

The device isn't recognized and some impotent attributes are unknown or has wrong name.

smartctl -q noserial -x /dev/sda :

smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-30-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     SanDisk SSD U100 8GB
Firmware Version: 10.56.00
User Capacity:    8,012,390,400 bytes [8,01 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 T13/2015-D revision 3
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Jul  1 12:31:52 2014 CEST
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
ATA Security is:  Disabled, frozen [SEC2]
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:                (  120) seconds.
Offline data collection
capabilities:                    (0x51) 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.
                                        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:        (   2) minutes.

SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  5 Reallocated_Sector_Ct   -O----   100   100   000    -    0
  9 Power_On_Hours          -O----   100   100   000    -    329
 12 Power_Cycle_Count       -O----   100   100   000    -    31
171 Unknown_Attribute       -O----   100   100   000    -    0
172 Unknown_Attribute       -O----   100   100   000    -    0
173 Unknown_Attribute       -O----   100   100   000    -    0
174 Unknown_Attribute       -O----   100   100   000    -    21
187 Reported_Uncorrect      -O----   100   100   000    -    0
230 Unknown_SSD_Attribute   -O----   100   100   000    -    0
232 Available_Reservd_Space PO----   100   100   005    -    0
234 Unknown_Attribute       -O----   100   100   000    -    3
241 Total_LBAs_Written      -O----   100   100   000    -    8955010
242 Total_LBAs_Read         -O----   100   100   000    -    8066998
                            ||||||_ 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
0x03       GPL,SL  R/O     16  Ext. Comprehensive SMART error log
0x04       GPL,SL  R/O      8  Device Statistics log
0x06       GPL,SL  R/O      1  SMART self-test log
0x10       GPL,SL  R/O      1  NCQ Command Error log
0x11       GPL,SL  R/O      1  SATA Phy Event Counters
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xa1       GPL,SL  VS       1  Device vendor specific log
0xa2       GPL,SL  VS       2  Device vendor specific log
0xa3       GPL,SL  VS       1  Device vendor specific log

Warning! SMART Extended Comprehensive Error Log Structure (16/16) error: invalid SMART checksum.
SMART Extended Comprehensive Error Log Version: 1 (16 sectors)
No Errors Logged

SMART Extended Self-test Log (GP Log 0x07) not supported

Warning! SMART Self-Test Log Structure error: invalid SMART checksum.
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       10%       307         -
# 2  Short offline       Aborted by host               80%       307         -

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 Commands not supported

Device Statistics (GP Log 0x04)
Page Offset Size         Value  Description
  5  =====  =                =  == Temperature Statistics (rev 1) ==
  5  0x008  1               31  Current Temperature
  5  0x010  1               30  Average Short Term Temperature
  5  0x018  1                -  Average Long Term Temperature
  5  0x020  1               37  Highest Temperature
  5  0x028  1               26  Lowest Temperature
  5  0x030  1               34  Highest Average Short Term Temperature
  5  0x038  1               34  Lowest Average Short Term Temperature
  5  0x040  1                -  Highest Average Long Term Temperature
  5  0x048  1                -  Lowest Average Long Term Temperature
  5  0x050  4                0  Time in Over-Temperature
  5  0x058  1               95  Specified Maximum Operating Temperature
  5  0x060  4                0  Time in Under-Temperature
  5  0x068  1                0  Specified Minimum Operating Temperature
  7  =====  =                =  == Solid State Device Statistics (rev 1) ==
  7  0x008  1                0~ Percentage Used Endurance Indicator
                              |_ ~ normalized value

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device 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
0x0009  2            5  Transition from drive PhyRdy to drive PhyNRdy
0x000a  2            6  Device-to-host register FISes sent due to a COMRESET
0x000f  2            0  R_ERR response for host-to-device data FIS, CRC
0x0012  2            0  R_ERR response for host-to-device non-data FIS, CRC
0x0001  2            0  Command failed due to ICRC error


Meaning of attributes grabbed from original SanDisk? tools for windows

	<SmartDataDefinition Name="SanDisk P-Series" Priority="1102" Inherits="SuppressAll" DefaultDataFormat="Worst[1],Raw[4]">

		<DeviceClassificationRule>
			<Model Regex="SanDisk SDSSD[PR].*" CaseSensitive="false"/>
			<Serial Regex=".*" CaseSensitive="false"/>
			<Firmware Regex=".*" CaseSensitive="false"/>
		</DeviceClassificationRule>
		
		<!-- P series -->
		<DeviceClassificationRule>
			<Model Regex="SanDisk SSD U100 .*" CaseSensitive="false"/>
			<Serial Regex=".*" CaseSensitive="false"/>
			<Firmware Regex=".*" CaseSensitive="false"/>
		</DeviceClassificationRule>

		<Attribute ID="5" Name="ReallocatedSectorCount" Display="true"/>
		<Attribute ID="9" Name="PowerOnHours" Display="true"/>
		<Attribute ID="12" Name="PowerCycleCount" Display="true"/>
		<Attribute ID="171" Name="ProgramFailCount" Display="true"/>
		<Attribute ID="172" Name="EraseFailCount" Display="true"/>
		<Attribute ID="173" Name="AverageWriteEraseCount" Display="true"/>
		<Attribute ID="174" Name="UnexpectedPowerLossCount" Display="true"/>
		<Attribute ID="187" Name="ReportedUncorrectableErrors" Display="true"/>
		<Attribute ID="230" DataFormat="Worst[1],Raw[4]" Name="PercentWriteEraseCount" Display="true"/>
		<Attribute ID="232" DataFormat="" Name="PercentageReserveSpaceAvailable" Display="true"/>
		<Attribute ID="234" DataFormat="Worst[1],Raw[4]" Name="PercentWriteEraseCountBC" Display="true"/>
		<Attribute ID="241" DataFormat="Worst[1],Raw[7]" Name="LBASectorsWritten" Display="true"/>
		<Attribute ID="242" DataFormat="Worst[1],Raw[7]" Name="LBASectorsRead" Display="true"/>
	</SmartDataDefinition>

Created by my drverdb record for test purpose

  {
    "SanDisk SSD U100 Series",
    "SanDisk SSD U100 .*",
    "", "",
    "-v 5,raw48,Reallocated_Sector_Ct "
    "-v 9,raw48,Power_On_Hours "
    "-v 12,raw48,Power_Cycle_Count "
    "-v 171,raw48,Program_Fail_Count "
    "-v 172,raw48,Erase_Fail_Count "
    "-v 173,raw48,Avg_Write_Erase_Ct "
    "-v 174,raw48,Unexpect_Power_Loss_Ct "
    "-v 187,raw48,Reported_Uncorrect "
    "-v 230,raw48,Perc_Write_Erase_Count "
    "-v 232,raw48,Perc_Reserve_Space_Avai "
    "-v 234,raw48,Perc_Write_Erase_Ct_BC "
    "-v 241,raw48,LBA_Sectors_Written "
    "-v 242,raw48,LBA_Sectors_Read "
  }

smartctl -q noserial -A /dev/sda after modify drivedb by hand

smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-30-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0002   100   100   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0002   100   100   000    Old_age   Always       -       329
 12 Power_Cycle_Count       0x0002   100   100   000    Old_age   Always       -       31
171 Program_Fail_Count      0x0002   100   100   000    Old_age   Always       -       0
172 Erase_Fail_Count        0x0002   100   100   000    Old_age   Always       -       0
173 Avg_Write_Erase_Ct      0x0002   100   100   000    Old_age   Always       -       0
174 Unexpect_Power_Loss_Ct  0x0002   100   100   000    Old_age   Always       -       21
187 Reported_Uncorrect      0x0002   100   100   000    Old_age   Always       -       0
230 Perc_Write_Erase_Count  0x0002   100   100   000    Old_age   Always       -       0
232 Perc_Reserve_Space_Avai 0x0003   100   100   005    Pre-fail  Always       -       0
234 Perc_Write_Erase_Ct_BC  0x0002   100   100   000    Old_age   Always       -       3
241 LBA_Sectors_Written     0x0002   100   100   000    Old_age   Always       -       8956330
242 LBA_Sectors_Read        0x0002   100   100   000    Old_age   Always       -       8066998
Note: See TracQuery for help on using queries.