Updating your smartmontools

By | February 7, 2013

A while back, I posted on how you could monitor your Intel SSD under Mac OS X using smartmontools.

With the addition of a new iMac to my home office, I again updated to the latest smartmontools (6.0 at the time of this post), but it didn’t have all the information about the Apple 128GB SSD that is part of the Fusion Drive on this new system.

This led me to the little known (for me) command necessary to update the internal database: update-smart-drivedb

 

Before:

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 0x001a 200 200 000 Old_age Always - 0
 5 Reallocated_Sector_Ct 0x0033 100 100 000 Pre-fail Always - 0
 9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 17
 12 Power_Cycle_Count 0x0032 099 099 000 Old_age Always - 167
169 Unknown_Attribute 0x0013 253 253 010 Pre-fail Always - 756128156800
173 Unknown_Attribute 0x0032 199 199 100 Old_age Always - 4298571784
192 Power-Off_Retract_Count 0x0012 099 099 000 Old_age Always - 157
194 Temperature_Celsius 0x0022 057 031 000 Old_age Always - 43 (Min/Max 21/69)
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
199 UDMA_CRC_Error_Count 0x001a 200 200 000 Old_age Always - 0

Running the update:

bills-imac:~ bill$ sudo /opt/local/sbin/update-smart-drivedb 
Password:
/opt/local/share/smartmontools/drivedb.h updated from trunk

After:

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 0x001a 200 200 000 Old_age Always - 0
 5 Reallocated_Sector_Ct 0x0033 100 100 000 Pre-fail Always - 0
 9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 18
 12 Power_Cycle_Count 0x0032 099 099 000 Old_age Always - 167
169 Unknown_Attribute 0x0013 253 253 010 Pre-fail Always - 756128156800
173 Unknown_Attribute 0x0032 199 199 100 Old_age Always - 4298571784
192 Power-Off_Retract_Count 0x0012 099 099 000 Old_age Always - 157
194 Temperature_Celsius 0x0022 062 031 000 Old_age Always - 38 (Min/Max 21/69)
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
199 UDMA_CRC_Error_Count 0x001a 200 200 000 Old_age Always - 0

As you can see, even after the update, this SSD is not in the database.

bills-imac:~ bill$ smartctl -P showall | grep -i apple
MODEL REGEXP: APPLE SSD SM128
MODEL FAMILY: Apple SSD SM128
MODEL REGEXP: ADATA S596 Turbo|APPLE SSD TS.*|KINGSTON SNV425S2(64|128)GB|KINGSTON SSDNOW 30GB|KINGSTON SS100S2(8|16)G|KINGSTON SVP?100S2B?(64|96|128|256|512)G|TOSHIBA THNS128GG4BBAA|TOSHIBA THNSNC128GMLJ|TS(8|16|32|64|128|192|256|512)GSSD25S-(MD?|S)
bills-imac:~ bill$ smartctl -a disk0 | grep -i apple
smartctl 6.0 2012-10-10 r3643 [x86_64-apple-darwin12.2.0] (local build)
Device Model: APPLE SSD SM128E

Oh well!

 

 

2 thoughts on “Updating your smartmontools

  1. bill day

    http://sourceforge.net/apps/trac/smartmontools/wiki/FAQ#MyATAdriveisnotinthesmartctlsmartddatabase

    If your drive is not in the current database, to have it added to the database, first use the command:

    smartctl -t short /dev/sdX

    to run a short self-test on the drive, and wait a few minutes for the test to complete. Then email the entire output from:

    smartctl -x /dev/sdX

    to smartmontools-database as a plain-text ASCII email attachment (file type: “.txt”).

    It seems older Apple SSD’s could do self-test, but on 2014 MBPr can not do short SMART test:

    smartctl -t short /dev/rdisk0
    smartctl 6.2 2013-07-26 r3841 [x86_64-apple-darwin13.0.0] (local build)
    Copyright (C) 2002-13, Bruce Allen, Christian Franke, http://www.smartmontools.org

    === START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
    Self-test functions not supported

    === START OF INFORMATION SECTION ===
    Device Model: APPLE SSD SD0128F
    Serial Number: 140282408483
    LU WWN Device Id: 5 001b44 bb510aa23
    Firmware Version: A223321
    User Capacity: 121,332,826,112 bytes [121 GB]
    Sector Sizes: 512 bytes logical, 4096 bytes physical
    Rotation Rate: Solid State Device
    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 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
    Local Time is: Mon Mar 17 13:52:27 2014 EDT
    SMART support is: Available – device has SMART capability.
    SMART support is: Enabled

    SMART Error Log not supported

    SMART Self-test Log not supported

    Selective Self-tests/Logging not supported

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.