From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Wegner Date: Fri, 20 Aug 2010 16:12:09 +0000 Subject: Re: cold-plugged usb flash drive not handled correctly in embedded Message-Id: <20100820161209.GH10027@debian-wegner1.datadisplay.de> List-Id: References: <20100820144236.GD10027@debian-wegner1.datadisplay.de> In-Reply-To: <20100820144236.GD10027@debian-wegner1.datadisplay.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Fri, Aug 20, 2010 at 05:31:12PM +0200, Kay Sievers wrote: > On Fri, Aug 20, 2010 at 17:00, Wolfgang Wegner 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 --action=ADd 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 >=20 > As mentioned, add --action=ADd. 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 --action=ADd 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