Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#15 Options to output raw binary IDENTIFY DEVICE and DCO data

open
nobody
None
5
2012-05-06
2012-05-06
Mark K
No

The --Istdout option outputs a hex dump of the IDENTIFY DEVICE data (512 bytes). An option to output that data in binary instead would be useful.

Related to that, it's not possible to output DCO identify data in either hex or binary. Options to output the DCO data in hex or binary would be good to have. (Actually, if you do hdparm --verbose --dco-identify you do get a hex dump. But it's not in a very friendly format.)

Discussion

  • Mark K
    Mark K
    2012-05-25

    Patch to add --Iraw option to hdparm 9.39

     
    Attachments
  • Mark K
    Mark K
    2012-05-25

    I have attached a patch to add a new option --Iraw to hdparm 9.39. Use like this:
    hdparm --Iraw filename /dev/sg1

    Then hdparm will write the raw binary IDENTIFY DEVICE data to filename.