linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Hartmetz" <ahartmetz@web.de>
To: linux-hotplug@vger.kernel.org
Subject: Multi-card drive & partition nodes
Date: Tue, 14 Dec 2004 07:16:46 +0000	[thread overview]
Message-ID: <1805884928@web.de> (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/?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

             reply	other threads:[~2004-12-14  7:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-14  7:16 Andreas Hartmetz [this message]
2004-12-14  8:40 ` Multi-card drive & partition nodes Marco d'Itri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1805884928@web.de \
    --to=ahartmetz@web.de \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).