On Sat, 2007-03-03 at 17:59 +0100, Kay Sievers wrote: > > The problem lies within /dev/disk/by-id. Even though the card reader > > has four slots, it only has one serial number, so only one link is > > created in /dev/disk/by-id. It's called > > usb-Generic_STORAGE_DEVICE_000005170 and it points to one of > > /dev/sd[abcd], not always the same one. I suppose there's a race > > condition somewhere. > > > The card reader is a Kingston FCR-HS215/1, if that matters. > > Vendor/device ids: 11b0:6108. > > Yes, that's a known issue. So far, we've seen that only for very cheap > devices, not something with a brand name on it. Usually, the different > ports on a card reader have different names: > /dev/disk/ > |-- by-id > | |-- usb-_CF_TS-RD13_000000002511 -> ../../sdb > | |-- usb-_MS_TS-RD13_000000002511 -> ../../sdd > | |-- usb-_SD_TS-RD13_000000002511 -> ../../sdc > | `-- usb-_XD_TS-RD13_000000002511 -> ../../sde > ... > |-- by-path > | |-- pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:0 -> ../../sdb > | |-- pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:1 -> ../../sdc > | |-- pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:2 -> ../../sdd > | |-- pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:3 -> ../../sde > ... > > Hmm, we could add the SCSI-LUN number, like we do in path_id.
Ok, I talked with Hannes, and we decided to change usb_id to append "-$target:$lun" to the id of usb-mass storage devices. It looks like this now: /dev/disk/by-id/ |-- usb-Generic_STORAGE_DEVICE_02773-0:0 -> ../../sdb |-- usb-Generic_STORAGE_DEVICE_02773-0:1 -> ../../sdc |-- usb-Generic_STORAGE_DEVICE_02773-0:2 -> ../../sdd `-- usb-Generic_STORAGE_DEVICE_02773-0:3 -> ../../sde It will be part of udev 107. Hope will work as expected. Thanks, Kay -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]