[Eug-lug] Reading data to multiple variables

Bob Miller kbob at jogger-egg.com
Mon Aug 2 07:53:12 PDT 2004


Garl Grigsby wrote:

> External USB drives show up as scsi. hdparm only works on IDE devices. 
> /proc/scsi/usb-storage-*/* is supposed to show a serial number, but not 
> all manufacturers do this.

In /proc/bus/usb/devices, I see a "SerialNumber" attribute.  My USB
Maxtor's serial number is Y625M91E.  I only have one disk, so I don't
know whether that's unique.  (One would hope so...)

If not, you could uniquely identify disks with volume labels or if
you're using LVM, each PV has a globally unique ID.

Let us know what you find out.

-- 
Bob Miller                              K<bob>
kbobsoft software consulting
http://kbobsoft.com                     kbob at jogger-egg.com


More information about the EUGLUG mailing list