[PATCH]: KINGSTON mS100 mSATA support

Kelly Anderson <[email protected]>
Newsgroups gmane.linux.utilities.smartmontools
Message-ID <1932939.Azp6eziHxv@comer>
Hey,

I just created a patch for this Kingston mSATA device.

I borrowed the attributes from a device that looks pretty darn close based on 
it's attributes (the one that precedes it in the header file).  I don't know 
what attribute 218 is, at least we'll have some other useable definitions.


--- ./drivedb.h.orig	2014-03-23 18:46:54.931571518 -0600
+++ ./drivedb.h	2014-03-23 19:08:46.695822921 -0600
@@ -457,6 +457,30 @@ const drive_settings builtin_knowndrives
     "-v 236,raw48,Unstable_Power_Count "
     "-v 240,raw48,Write_Head"
   },
+  { "KINGSTON mS100", // tested with KINGSTON SMS100S264G
+    "KINGSTON SMS100.*",
+    "", "",
+  //"-v 1,raw48,Raw_Read_Error_Rate "
+  //"-v 2,raw48,Throughput_Performance "
+  //"-v 3,raw16(avg16),Spin_Up_Time "
+  //"-v 5,raw16(raw16),Reallocated_Sector_Ct "
+  //"-v 7,raw48,Seek_Error_Rate " // from InnoDisk iSMART Linux tool, useless 
for SSD
+  //"-v 8,raw48,Seek_Time_Performance "
+  //"-v 9,raw24(raw8),Power_On_Hours "
+  //"-v 10,raw48,Spin_Retry_Count "
+  //"-v 12,raw48,Power_Cycle_Count "
+    "-v 168,raw48,SATA_PHY_Error_Count "
+    "-v 170,raw48,Bad_Block_Count "
+    "-v 173,raw48,Erase_Count "
+  //"-v 175,raw48,Bad_Cluster_Table_Count "
+    "-v 192,raw48,Unexpect_Power_Loss_Ct "
+  //"-v 194,tempminmax,Temperature_Celsius "
+  //"-v 197,raw48,Current_Pending_Sector "
+  //"-v 229,hex48,Flash_ID "
+  //"-v 235,raw48,Later_Bad_Block "
+  //"-v 236,raw48,Unstable_Power_Count "
+  //"-v 240,raw48,Write_Head"
+  },
   { "Intel X25-E SSDs",
     "SSDSA2SH(032|064)G1.* INTEL",  // G1 = first generation
     "", "",


Here's output from a run on my drive, the attributes look appropriate.

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

=== START OF INFORMATION SECTION ===
Model Family:     KINGSTON mS100
Device Model:     KINGSTON SMS100S264G
Serial Number:    50026B72251138BE
Firmware Version: S5FAM011
User Capacity:    64,023,257,088 bytes [64.0 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Sun Mar 23 20:03:59 2014 MDT
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: 		(  255) seconds.
Offline data collection
capabilities: 			 (0x1b) 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.
					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: 	 (   2) minutes.

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_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   050    Pre-fail  Always       
-       0
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       
-       221
 12 Power_Cycle_Count       0x0012   100   100   000    Old_age   Always       
-       105
168 SATA_PHY_Error_Count    0x0012   100   100   000    Old_age   Always       
-       0
170 Bad_Block_Count         0x0003   100   100   010    Pre-fail  Always       
-       174
173 Erase_Count             0x0012   100   100   000    Old_age   Always       
-       852011
192 Unexpect_Power_Loss_Ct  0x0012   100   100   000    Old_age   Always       
-       0
218 Unknown_Attribute       0x000b   100   100   050    Pre-fail  Always       
-       0

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

Selective Self-tests/Logging not supported



------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.