David M. Strang wrote:

/Patrick wrote:

pretty sure "smartctl -d ata -a /dev/sdwhatever" will tell you the
serial number. (Hopefully the kernel is new enough that it supports
SATA/smart, otherwise you need a kernel patch which won't be any better...)


Yep... 2.6.15 or better... I need the magical patch =\.

Any other options?


If you have an up dated copy of hdparm, you can use it against libata "SCSI" drives to get the serial number:

   # hdparm -V
   hdparm v5.7

   # hdparm -I /dev/sda


   /dev/sda:

   ATA device, with non-removable media
           Model Number:       Maxtor 7L320S0
           Serial Number:      L616D6YH
           Firmware Revision:  BACE1G70
   (and so on....)




-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to