From: Christian F. <Chr...@t-...> - 2011-09-08 18:40:10
|
Eric Walasek wrote: > > Can this tool dump the data from the ATA IDENTIFY_DEVICE_DATA > structure? I’d like to parse it and determine the value of word 217, > which would identify the rotational speed per the ATA8-ACS > specifications. I’ve tried a lot of parameter combinations, but not > sure if I’ll be able to get what I am looking for. Thanks. > The debug output includes a hex dump of IDENTIFY data. Swap bytes 434/435 for the desired value. Some real world examples: # smartctl -r ioctl,2 -i /dev/ice ... ===== [IDENTIFY DEVICE] DATA START (BASE-16) ===== ... 432-447: 00 00 18 15 00 00 00 00 00 00 00 00 1f 10 00 00 ...............^^^^^ 0x1518 = 5400 rpm (Samsung HD204UI) 432-447: 00 00 20 1c 00 00 00 00 00 00 00 00 10 10 00 00 ...............^^^^^ 0x1c20 = 7200 rpm (Seagate ST32000641AS) 432-447: 00 00 01 00 00 00 00 00 00 00 00 00 10 10 ff ff ...............^^^^^ 0x0001 = non-rotating (Sandforce SF-1200 Demo SSD) Thanks, Christian |