From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Andreas Hartmetz" Date: Tue, 14 Dec 2004 07:16:46 +0000 Subject: Multi-card drive & partition nodes Message-Id: <1805884928@web.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel