Skip to contentSkip to conversation

Multi-card drive & partition nodes

DISCUSSION Andreas Hartmetz 2 participants 2 messages Dec 14, 2004

lore
Share & tools
lore
#0 lore raw

Hi list!

(system is debian-unstable latest)
I am having the following problem with my USB multi card reader:
When I plug it in, udev creates the /dev/sda to /dev/sdd nodes but (of course) no partitions /dev/sd[a-d]n.
Now, when I insert e.g. a partitioned CompactFlash medium, there is no device node for it and I cannot use it.
Note that this is exactly what multi-card drives are made for... I have got some suggestions how it could be done:
-quick&dirty&crap, the "traditional" way: create some partition
nodes with any drive node. if there are too many partitions on a single drive, user is out of luck. Ugly.
-if the [sd/hd]x node exists and partition [sd/hf]xn is tried to open,
look quick if the partition does exist. I personally think this is a good way to do it because, as opposed to the auto-driver-loading in devfs, no big and/or dangerous operation is necessary to find out. Somewhat ugly, no doubt.
Probably the best solution for a non-perfect world where el cheapo companies create stuff that "Works with Windows" (tm).
-try to get noticed of media changes and re-read partition info.
Create partition nodes accordingly.
Elegant and best adapted to the problem, but perhaps impossible. Card reader _needs_ to tell OS "media change there-and-there" for this to work. In a perfect world, the perfect solution ;)

I hope that I posted to the right list for this ;)

Regards, Andreas
__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. weltweit telefonieren! http://freephone.web.de/?mc1201

-------------------------------------------------------
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://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 1 line · Andreas Hartmetz

(system is debian-unstable latest)

So README.Debian explains the solution.

Signature · 13 lines
ciao, |
Marco | [9779 l'pTm.2glxRpw]


-------------------------------------------------------
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://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel