[smartmontools-support] SMART Attribute in Offset (386..510)

Krüger, Jens jens.krueger at glyn.de
Mon Apr 15 10:55:41 CEST 2024


Dear Christian,

> Interestingly the device returns 12 attributes in the traditional format (introduced 1995 in SFF-8035i, removed from specs after T13 ATA-3 rev 7b from 1997) but the data sheet apparently only documents 2 bytes from Power_Cycle_Count raw value.
> It is a bad idea for a new device to provide the other interesting values like "Number of invalid block / run time bad block" in the other vendor specific block instead of the well known attribute block.

The device, the CF card is a new product.
The installed controller, on the other hand, is very old and is in legacy status for the controller manufacturer.
Therefore, there is no support to make firmware changes to improve the SMART structure.

> Do the bytes 386-406 actually match the specification?
> Try 'smartctl -r ioctl,2 -A ...' for a hex dump.

Hex dump attached.
Looks like the values are stored in SMART according to the spec and change as expected. Like the Avg. Erase Cnt.

> Due to the long backlog of pending vendor specific drive database additions, it is currently not planned to add support for this other vendor specific block, sorry.
> We possibly could add this block as a byte array to 'smartctl -j' output such that external tools could interpret it.

ok, I understand.
At the moment, the output via 'smartctl -r ioctl,2 -A ...' is sufficient for me.
Many thanks for your support.

Bleiben Sie gesund / Stay healthy

Jens Krüger
Expert Field Application Engineer
Application Engineer
Industrial Memory Solutions

GLYN GmbH & Co. KG

-----Ursprüngliche Nachricht-----
Von: Christian Franke <Christian.Franke at t-online.de>
Gesendet: Freitag, 12. April 2024 17:37
An: Krüger, Jens <jens.krueger at glyn.de>
Cc: smartmontools-support at listi.jpberlin.de
Betreff: Re: [smartmontools-support] SMART Attribute in Offset (386..510)

Dear Jens,

Krüger, Jens wrote:
> Yes, storing SMART information in this area is really a very old way.

I'm not aware of any other device storing important information there.


> In my specific case, it is used for the new edition of a CF card, i.e. a P-ATA medium.
> Although these have completely disappeared from the consumer market, they are still used in industry.
>
> Attached you will find an excerpt from the CF data sheet (not under NDA), where the SMART structure is described.
> Also the output of "smartctl -a" from one of these CF cards.

Interestingly the device returns 12 attributes in the traditional format (introduced 1995 in SFF-8035i, removed from specs after T13 ATA-3 rev 7b from 1997) but the data sheet apparently only documents 2 bytes from Power_Cycle_Count raw value. It is a bad idea for a new device to provide the other interesting values like "Number of invalid block / run time bad block" in the other vendor specific block instead of the well known attribute block.

Do the bytes 386-406 actually match the specification?
Try 'smartctl -r ioctl,2 -A ...' for a hex dump.


> In this case from the 1GB version.
> Depending on the capacity, the "Device Model:" changes.
> If there is currently no way to output this offset range, it would be fantastic if this were possible in a future version.

Due to the long backlog of pending vendor specific drive database additions, it is currently not planned to add support for this other vendor specific block, sorry.

We possibly could add this block as a byte array to 'smartctl -j' output such that external tools could interpret it.

--
Regards,
Christian

________________________________


Glyn Jones GmbH & Co. Vertrieb von elektronischen Bauelementen KG (Amtsgericht Wiesbaden HRA 6996)
phG Glyn Jones Verwaltungs GmbH (Amtsgericht Wiesbaden HRB 19027)
Geschäftsführer: Glyn Jones,Thomas Gerhardt
UST-IdNr. / VAT-No. DE811937639
WEEE-Reg.-Nr. DE: 77660497
Am Wörtzgarten 8 - Idstein - Deutschland

Our General Terms and Conditions of Delivery and Payment apply.

CONFIDENTIALITY DISCLAIMER
The information in this email and in any attachments is confidential and may be privileged.
If you are not the intended recipient, please destroy this message, delete any copies held on your systems and notify the sender immediately.
You should not retain, copy or use this email for any purpose outside of any NDA currently existing between GLYN and yourselves.

________________________________
-------------- next part --------------
smartctl 7.2 2020-12-30 r5155 [i686-w64-mingw32-win7-sp1] (sf-7.2-1)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

 \\.\G:: successfully opened
  IOCTL_STORAGE_QUERY_PROPERTY returns:
    Vendor:   "(null)"
    Product:  "CF001GXEISS-002Z"
    Revision: "20131009"
    Removable: No
    BusType:   0x03
\\.\G:: successfully opened

REPORT-IOCTL: Device=G: Command=IDENTIFY DEVICE
 Input:   FR=...., SC=0x01, LL=...., LM=...., LH=...., DEV=...., CMD=0xec IN
  IOCTL_ATA_PASS_THROUGH succeeded, bytes returned: 556
    Input : CMD=0xec, FR=0x00, SC=0x01, SN=0x00, CL=0x00, CH=0x00, SEL=0x00
    Output: STS=0x50,ERR=0x00, SC=0x00, SN=0x00, CL=0x00, CH=0x00, SEL=0xb0
 [Duration: 0.001s]
 Output: ERR=0x00, SC=0x00, LL=0x00, LM=0x00, LH=0x00, DEV=0xb0, STS=0x50
REPORT-IOCTL: Device=G: Command=IDENTIFY DEVICE returned 0

===== [IDENTIFY DEVICE] DATA START (BASE-16) =====
000-015: 4a 04 ae 07 00 00 10 00 00 00 40 02 3f 00 1e 00 |J......... at .?...|
016-031: 20 3d 00 00 30 32 34 32 33 30 36 30 20 20 20 20 | =..02423060    |
032-047: 31 30 30 30 30 31 31 30 02 00 02 00 04 00 30 32 |10000110......02|
048-063: 33 31 30 31 39 30 46 43 30 30 47 31 45 58 53 49 |310190FC00G1EXSI|
064-079: 2d 53 30 30 5a 32 20 20 20 20 20 20 20 20 20 20 |-S00Z2          |
080-095: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 01 80 |              ..|
096-111: 00 00 00 0f 00 00 00 02 00 00 07 00 ae 07 10 00 |................|
112-127: 3f 00 20 3d 1e 00 01 01 20 3d 1e 00 00 00 07 00 |?. =.... =......|
128-143: 03 00 78 00 78 00 78 00 78 00 00 00 00 00 00 00 |..x.x.x.x.......|
144-159: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
160-175: 80 00 00 00 2b 70 04 50 02 40 21 00 04 00 02 40 |....+p.P.@!....@|
176-191: 1f 10 01 00 00 00 00 00 fe ff 00 6f 00 00 00 00 |...........o....|
192-207: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
208-223: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
224-239: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
240-255: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
256-271: 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
272-287: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
320-335: f4 c1 00 00 00 00 12 00 00 00 00 00 00 00 00 00 |................|
336-351: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
352-367: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
368-383: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
384-399: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
400-415: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
416-431: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
432-447: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
448-463: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
464-479: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
===== [IDENTIFY DEVICE] DATA END (512 Bytes) =====


REPORT-IOCTL: Device=G: Command=SMART READ ATTRIBUTE VALUES
 Input:   FR=0xd0, SC=0x01, LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 IN
  IOCTL_ATA_PASS_THROUGH succeeded, bytes returned: 556
    Input : CMD=0xb0, FR=0xd0, SC=0x01, SN=0x00, CL=0x4f, CH=0xc2, SEL=0x00
    Output: STS=0x50,ERR=0x00, SC=0x00, SN=0x00, CL=0x4f, CH=0xc2, SEL=0xb0
 [Duration: 0.021s]
 Output: ERR=0x00, SC=0x00, LL=0x00, LM=0x4f, LH=0xc2, DEV=0xb0, STS=0x50
REPORT-IOCTL: Device=G: Command=SMART READ ATTRIBUTE VALUES returned 0

===== [SMART READ ATTRIBUTE VALUES] DATA START (BASE-16) =====
000-015: 01 00 01 00 00 64 64 00 00 00 00 00 00 00 02 00 |.....dd.........|
016-031: 00 64 64 00 00 00 00 00 00 00 00 00 00 00 00 00 |.dd.............|
032-047: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
048-063: 00 00 05 00 00 64 64 00 00 00 00 00 00 00 07 00 |.....dd.........|
064-079: 00 64 64 00 00 00 00 00 00 00 08 00 00 64 64 00 |.dd..........dd.|
080-095: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
096-111: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0c 00 |................|
112-127: 00 64 64 22 00 00 00 00 00 00 00 00 00 00 00 00 |.dd"............|
128-143: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
144-159: 00 00 c3 00 00 64 64 00 00 00 00 00 00 00 c4 00 |.....dd.........|
160-175: 00 64 64 00 00 00 00 00 00 00 c5 00 00 64 64 00 |.dd..........dd.|
176-191: 00 00 00 00 00 00 c6 00 00 64 64 00 00 00 00 00 |.........dd.....|
192-207: 00 00 c7 00 00 64 64 00 04 00 00 00 00 00 c8 00 |.....dd.........|
208-223: 00 64 64 00 00 00 00 00 00 00 00 00 00 00 00 00 |.dd.............|
224-239: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
240-255: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
256-271: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
272-287: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
336-351: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
352-367: 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 |................|
368-383: 02 00 00 00 01 01 00 00 00 00 00 00 00 00 00 00 |................|
384-399: 00 00 32 30 31 33 4e 31 30 4e 30 39 00 01 00 00 |..2013N10N09....|
400-415: d1 02 c3 53 4d 49 40 00 00 02 c3 98 d3 90 26 76 |...SMI at .......&v|
416-431: 15 03 00 00 02 f9 00 00 03 3b 00 00 02 c3 00 00 |.........;......|
432-447: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
448-463: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
464-479: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 52 |...............R|
===== [SMART READ ATTRIBUTE VALUES] DATA END (512 Bytes) =====


REPORT-IOCTL: Device=G: Command=SMART READ ATTRIBUTE THRESHOLDS
 Input:   FR=0xd1, SC=0x01, LL=0x01, LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 IN
  IOCTL_ATA_PASS_THROUGH succeeded, bytes returned: 556
    Input : CMD=0xb0, FR=0xd1, SC=0x01, SN=0x01, CL=0x4f, CH=0xc2, SEL=0x00
    Output: STS=0x50,ERR=0x00, SC=0x00, SN=0x01, CL=0x4f, CH=0xc2, SEL=0xb0
 [Duration: 0.001s]
 Output: ERR=0x00, SC=0x00, LL=0x01, LM=0x4f, LH=0xc2, DEV=0xb0, STS=0x50
REPORT-IOCTL: Device=G: Command=SMART READ ATTRIBUTE THRESHOLDS returned 0

===== [SMART READ ATTRIBUTE THRESHOLDS] DATA START (BASE-16) =====
000-015: 01 00 01 00 00 00 00 00 00 00 00 00 00 00 02 00 |................|
016-031: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
032-047: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
048-063: 00 00 05 00 00 00 00 00 00 00 00 00 00 00 07 00 |................|
064-079: 00 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 |................|
080-095: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
096-111: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0c 00 |................|
112-127: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
128-143: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
144-159: 00 00 c3 00 00 00 00 00 00 00 00 00 00 00 c4 00 |................|
160-175: 00 00 00 00 00 00 00 00 00 00 c5 00 00 00 00 00 |................|
176-191: 00 00 00 00 00 00 c6 00 00 00 00 00 00 00 00 00 |................|
192-207: 00 00 c7 00 00 00 00 00 00 00 00 00 00 00 c8 00 |................|
208-223: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
224-239: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
240-255: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
256-271: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
272-287: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
336-351: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
352-367: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
368-383: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
384-399: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
400-415: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
416-431: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
432-447: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
448-463: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
464-479: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3b |...............;|
===== [SMART READ ATTRIBUTE THRESHOLDS] DATA END (512 Bytes) =====

=== 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
  1 Raw_Read_Error_Rate     0x0000   100   100   000    Old_age   Offline      -       0
  2 Throughput_Performance  0x0000   100   100   000    Old_age   Offline      -       0
  5 Reallocated_Sector_Ct   0x0000   100   100   000    Old_age   Offline      -       0
  7 Seek_Error_Rate         0x0000   100   100   000    Old_age   Offline      -       0
  8 Seek_Time_Performance   0x0000   100   100   000    Old_age   Offline      -       0
 12 Power_Cycle_Count       0x0000   100   100   000    Old_age   Offline      -       34
195 Hardware_ECC_Recovered  0x0000   100   100   000    Old_age   Offline      -       0
196 Reallocated_Event_Count 0x0000   100   100   000    Old_age   Offline      -       0
197 Current_Pending_Sector  0x0000   100   100   000    Old_age   Offline      -       0
198 Offline_Uncorrectable   0x0000   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0000   100   100   000    Old_age   Offline      -       1024
200 Multi_Zone_Error_Rate   0x0000   100   100   000    Old_age   Offline      -       0



More information about the Smartmontools-support mailing list