sata and changing devices

Gerry Reno greno at verizon.net
Sat May 24 00:39:02 UTC 2008


Denis Leroy wrote:
> Gerry Reno wrote:
>> The serial number might be ok until you replace the disk.  Just have 
>> to remember to rerun the tools for the replacement and to note the 
>> replacement lineage.  In scripts I think I could parse smartctl 
>> output for serial numbers or is there something better under /proc I 
>> can parse?
>
> sg_inq /dev/sda
>
Thanks.  Here is the output I get from sg_inq:

# sg_inq /dev/sda
standard INQUIRY:
  PQual=0  Device_type=0  RMB=0  version=0x05  [SPC-3]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2
  SCCS=0  ACC=0  TPGS=0  3PC=0  Protect=0  BQue=0
  EncServ=0  MultiP=0  [MChngr=0]  [ACKREQQ=0]  Addr16=0
  [RelAdr=0]  WBus16=0  Sync=0  Linked=0  [TranDis=0]  CmdQue=0
  [SPI: Clocking=0x0  QAS=0  IUS=0]
    length=96 (0x60)   Peripheral device type: disk
 Vendor identification: ATA    
 Product identification: Hitachi HDP72502
 Product revision level: GM2O
 Unit serial number:       GEK231RB045L2A

How new is this?  Not sure the Vendor ID looks exactly right though.






More information about the fedora-devel-list mailing list