From: Wolfgang Wegner <ww-ml@gmx.de>
To: linux-hotplug@vger.kernel.org
Subject: Re: cold-plugged usb flash drive not handled correctly in embedded
Date: Fri, 20 Aug 2010 16:12:09 +0000 [thread overview]
Message-ID: <20100820161209.GH10027@debian-wegner1.datadisplay.de> (raw)
In-Reply-To: <20100820144236.GD10027@debian-wegner1.datadisplay.de>
On Fri, Aug 20, 2010 at 05:31:12PM +0200, Kay Sievers wrote:
> On Fri, Aug 20, 2010 at 17:00, Wolfgang Wegner <ww-ml@gmx.de> wrote:
> > On Fri, Aug 20, 2010 at 04:51:44PM +0200, Kay Sievers wrote:
> >> The event for the device happens during early boot where you have no
> >> chance to mount. Do you run 'udevadm trigger' at bootup? It will
> >> re-generate all events so that they can be handled when userspace is
> >> running. It would need --actiond for your current rule to match.
> >
> > The busybox start script (/etc/init.d/rcS) runs my udev start script
> > (/etc/init.d/start_udev.sh) which in turn runs udevadm trigger as
> > one of the last steps:
> >
> > [...]
> > udevd --daemon --debug
> >
> > mkdir -p /dev/.udev/queue/ /dev/.udev/rules.d/
> > create_dev_root_rule /dev/.udev/
> >
> > udevadm trigger
>
> As mentioned, add --actiond. Or make the rule match on 'change' too.
Thanks, that helped!
I was reading the manpage on my debian box, which is using
udev-125 and thus the documentation is horribly outdated
in some parts, i.e. I was still under the impression --actiond
was the default.
Thanks for the help, now everything works like a charm and I
can think about the proper mount script/command.
Best regards,
Wolfgang
next prev parent reply other threads:[~2010-08-20 16:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-20 14:42 cold-plugged usb flash drive not handled correctly in embedded Wolfgang Wegner
2010-08-20 14:51 ` cold-plugged usb flash drive not handled correctly in embedded system Kay Sievers
2010-08-20 15:00 ` cold-plugged usb flash drive not handled correctly in embedded Wolfgang Wegner
2010-08-20 15:19 ` Wolfgang Wegner
2010-08-20 15:29 ` Greg KH
2010-08-20 15:31 ` cold-plugged usb flash drive not handled correctly in embedded system Kay Sievers
2010-08-20 16:02 ` cold-plugged usb flash drive not handled correctly in embedded Wolfgang Wegner
2010-08-20 16:12 ` Wolfgang Wegner [this message]
2010-08-20 16:25 ` Karl O. Pinc
2010-08-20 16:32 ` cold-plugged usb flash drive not handled correctly in embedded system Bryan Kadzban
2010-08-23 7:20 ` cold-plugged usb flash drive not handled correctly in embedded Wolfgang Wegner
2010-08-23 7:24 ` Wolfgang Wegner
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=20100820161209.GH10027@debian-wegner1.datadisplay.de \
--to=ww-ml@gmx.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).