* custom names for each slot in a multislot usb reader
@ 2005-03-15 15:38 Samuel Liddicott
2005-03-15 16:01 ` Kay Sievers
2005-03-17 8:37 ` Sam Liddicott
0 siblings, 2 replies; 3+ messages in thread
From: Samuel Liddicott @ 2005-03-15 15:38 UTC (permalink / raw)
To: linux-hotplug
I have a multislot usb reader that gets assigned sda,sdb,sdc,sdd as the
main block devices.
I can't work out what rules I need so that sdc becomes /dev/mmc and sdd
becomes /dev/smartmedia etc
Now I can do rules to match the device and /dev/hda - but this will only
work if my other usb thumbrive isn't handled first.
So I really need a rule to match on LUN.
Sam
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: custom names for each slot in a multislot usb reader
2005-03-15 15:38 custom names for each slot in a multislot usb reader Samuel Liddicott
@ 2005-03-15 16:01 ` Kay Sievers
2005-03-17 8:37 ` Sam Liddicott
1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2005-03-15 16:01 UTC (permalink / raw)
To: linux-hotplug
On Tue, 2005-03-15 at 15:38 +0000, Samuel Liddicott wrote:
> I have a multislot usb reader that gets assigned sda,sdb,sdc,sdd as the
> main block devices.
>
> I can't work out what rules I need so that sdc becomes /dev/mmc and sdd
> becomes /dev/smartmedia etc
>
> Now I can do rules to match the device and /dev/hda - but this will only
> work if my other usb thumbrive isn't handled first.
>
> So I really need a rule to match on LUN.
Try:
udevinfo -a -p /block/sda
udevinfo -a -p /block/sdb
...
You will find keys here that are different for every slot, but
independent of the kernel enumeration. I have one reader that already
has names for the slot one other has numerical id's to match.
Kay
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: custom names for each slot in a multislot usb reader
2005-03-15 15:38 custom names for each slot in a multislot usb reader Samuel Liddicott
2005-03-15 16:01 ` Kay Sievers
@ 2005-03-17 8:37 ` Sam Liddicott
1 sibling, 0 replies; 3+ messages in thread
From: Sam Liddicott @ 2005-03-17 8:37 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers wrote:
> On Tue, 2005-03-15 at 15:38 +0000, Samuel Liddicott wrote:
>>I can't work out what rules I need so that sdc becomes /dev/mmc and sdd
>>becomes /dev/smartmedia etc
>
> Try:
> udevinfo -a -p /block/sda
> udevinfo -a -p /block/sdb
> ...
>
> You will find keys here that are different for every slot, but
> independent of the kernel enumeration. I have one reader that already
> has names for the slot one other has numerical id's to match.
Thanks
Based on that advice, these rules work:
BUS="scsi" SYSFS{model}="Flash XL CF" SYSFS{vendor}="Medion*"
NAME{all_partitions}="media/compactflash"
BUS="scsi" SYSFS{model}="Flash XL MS" SYSFS{vendor}="Medion*"
NAME{all_partitions}="media/memorystick"
BUS="scsi" SYSFS{model}="Flash XL MMC/SD" SYSFS{vendor}="Medion*"
NAME{all_partitions}="media/securedigital"
BUS="scsi" SYSFS{model}="Flash XL SM" SYSFS{vendor}="Medion*"
NAME{all_partitions}="media/smartmedia"
Sam
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-03-17 8:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-15 15:38 custom names for each slot in a multislot usb reader Samuel Liddicott
2005-03-15 16:01 ` Kay Sievers
2005-03-17 8:37 ` Sam Liddicott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).