* Multi-card drive & partition nodes
@ 2004-12-14 7:16 Andreas Hartmetz
2004-12-14 8:40 ` Marco d'Itri
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Hartmetz @ 2004-12-14 7:16 UTC (permalink / raw)
To: linux-hotplug
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/?mc\x021201
-------------------------------------------------------
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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-14 8:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-14 7:16 Multi-card drive & partition nodes Andreas Hartmetz
2004-12-14 8:40 ` Marco d'Itri
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).