From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hamilton Date: Thu, 07 Nov 2002 05:03:16 +0000 Subject: Re: usb-mount (hotplug + desktop hooks) Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, 07 Nov 2002 04:53, Gary_Lerhaupt@Dell.com wrote: > I checked /proc/scsi/usb-storage-0 after plugging in my flashcard reader. > In my particular case, the device returned a Serial Number of "None" but > did return what appeared to be an interesting and unique GUID value. > Michael, did you comments about the non-uniqueness of serial numbers also > extend to GUIDs? > > If not, I could immediately add USB GUIDs where applicable within devlabel > and then automounting would be simple. Do your two USB storage devices > return different (yet consistent) GUID values? > > Gary > devlabel: www.domsch.com/linux/devlabel I've already investigated this path. Here's a summary... I have two identical devices - lets call them A and B to save any confusion. 1) Plug in device A: viking2:~ % cat /proc/scsi/usb-storage-0/0 Host scsi0: usb-storage Vendor: Neodio Technologies Corp. Product: Neodio USB Storage Device Serial Number: 0AEC501000001A002 Protocol: Transparent SCSI Transport: Bulk GUID: 0aec5010aec501000001a002 Attached: Yes 2) Unplug device A and plug it in again - note the serial and GUID are based on the same attributes - the vendor, product and bus location. viking2:~ % cat /proc/scsi/usb-storage-0/0 Host scsi0: usb-storage Vendor: Neodio Technologies Corp. Product: Neodio USB Storage Device Serial Number: 0AEC501000001A003 Protocol: Transparent SCSI Transport: Bulk GUID: 0aec5010aec501000001a003 Attached: Yes 3) Plug in device B - note that it has the Serial and GUID we saw in step (1) above. viking2:~ % cat /proc/scsi/usb-storage-1/0 Host scsi0: usb-storage Vendor: Neodio Technologies Corp. Product: Neodio USB Storage Device Serial Number: 0AEC501000001A002 Protocol: Transparent SCSI Transport: Bulk GUID: 0aec5010aec501000001a002 Attached: Yes 4) Unplug device B and plug it in again- note it now has the same serial and GUID as device A which is still plugged in. viking2:~ % cat /proc/scsi/usb-storage-1/0 Host scsi0: usb-storage Vendor: Neodio Technologies Corp. Product: Neodio USB Storage Device Serial Number: 0AEC501000001A003 Protocol: Transparent SCSI Transport: Bulk GUID: 0aec5010aec501000001a003 Attached: Yes viking2:~ % cat /proc/scsi/usb-storage-0/0 Host scsi0: usb-storage Vendor: Neodio Technologies Corp. Product: Neodio USB Storage Device Serial Number: 0AEC501000001A003 Protocol: Transparent SCSI Transport: Bulk GUID: 0aec5010aec501000001a003 Attached: Yes Not very nice. I guess the scsi device id could be added to the serial or GUID to provide a unique identifier that will last as long as the device is plugged in. Michael ------------------------------------------------------- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel