From: DervishD <lkml@dervishd.net>
To: Willy Tarreau <willy@w.ods.org>
Cc: Pete Zaitcev <zaitcev@redhat.com>, Bodo Eggert <7eggert@gmx.de>,
harvested.in.lkml@7eggert.dyndns.org, vonbrand@inf.utfsm.cl,
linux-kernel@vger.kernel.org
Subject: Re: Problem with usb-storage and /dev/sd?
Date: Sun, 14 Aug 2005 23:48:02 +0200 [thread overview]
Message-ID: <20050814214802.GB81@DervishD> (raw)
In-Reply-To: <20050814084847.GD20363@alpha.home.local>
Hi Willy :)
* Willy Tarreau <willy@w.ods.org> dixit:
> > That's not possible. sd_mod will assign different devices for
> > different USB gadgets, and that's my problem in the first case!. If I
> > plug my USB-whatever, it gets assigned /dev/sda1 (for the first
> > partition, I mean). If I unplug it and, after that, I plug any other
> > USB device, it gets assigned /dev/sdb1, etc. Don't know if the
> > culprit is usb-storage or sd_mod :? The problem is that I cannot know
> > about which device was assigned (at least in 2.4.x) so I can modify
> > fstab or even mount it.
> I've been suffering from the same problem for a long time until I found
> a patch from Erik Andersen which automatically unregisters the sd device
> once you unplug the USB device. It has changed my life :-)
Thanks! Unfortunately, it solves only half of my problem. If I
plug *two* USB storage devices, the second will fail (well, it won't
be assigned the correct device). The perfect solution is to always
use the same dev entry for the same USB device, but I need sysfs for
that (AFAIK), just like udev does.
> Here it is for 2.4. I even wonder why we would not put this into mainline,
> since having orphan devices brings nothing but confusion.
Don't know :????
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
next prev parent reply other threads:[~2005-08-14 21:44 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4pzyn-10f-33@gated-at.bofh.it>
[not found] ` <4AubX-4w6-9@gated-at.bofh.it>
2005-08-12 10:49 ` Problem with usb-storage and /dev/sd? Bodo Eggert
2005-08-12 17:38 ` Pete Zaitcev
2005-08-12 22:13 ` DervishD
2005-08-13 10:06 ` Bodo Eggert
2005-08-14 3:20 ` Pete Zaitcev
2005-08-14 7:32 ` DervishD
2005-08-14 8:48 ` Willy Tarreau
2005-08-14 21:48 ` DervishD [this message]
[not found] <mailman.1123702259.29404.linux-kernel2news@redhat.com>
2005-08-10 23:00 ` Pete Zaitcev
2005-08-11 7:29 ` DervishD
2005-08-11 22:53 ` Horst von Brand
2005-08-10 19:22 DervishD
2005-08-10 21:50 ` Tomasz Torcz
2005-08-10 22:06 ` DervishD
2005-08-10 23:31 ` Greg KH
2005-08-11 7:33 ` DervishD
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=20050814214802.GB81@DervishD \
--to=lkml@dervishd.net \
--cc=7eggert@gmx.de \
--cc=harvested.in.lkml@7eggert.dyndns.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vonbrand@inf.utfsm.cl \
--cc=willy@w.ods.org \
--cc=zaitcev@redhat.com \
/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