From: Wolfgang Wegner Date: Mon, 23 Aug 2010 07:24:48 +0000 Subject: Re: cold-plugged usb flash drive not handled correctly in embedded Message-Id: <20100823072448.GB3423@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="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Aug 20, 2010 at 09:32:18AM -0700, Bryan Kadzban wrote: > On Fri, Aug 20, 2010 at 04:42:36PM +0200, Wolfgang Wegner wrote: > > ACTION="remove", KERNEL="sd[a-z][0-9]", RUN+="/bin/umount -l /mnt/usbdisk" > > Hmm. You are aware that this won't save you, right? :-) Yes, I am - once more you got me for simply copying something without a deeper look into it. The scripts/commands were simply copied from either a script formerly used with mdev and from some udev example I found on the internet. I can only guess that the intention was to not block udev with the umount in case some data would have needed to be flushed out. As long as the device does not work wireless, it is clear there can be no transaction after the unplug = remove event. :-) Regards, Wolfgang