From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Fri, 25 Feb 2005 13:55:01 +0000 Subject: Re: udev and dev.d scripts Message-Id: <1109339701.7242.48.camel@localhost.localdomain> List-Id: References: <1109278659.10222.11.camel@X40.blinkeye.ch> In-Reply-To: <1109278659.10222.11.camel@X40.blinkeye.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, 2005-02-24 at 21:57 +0100, BlinkEye wrote: >hello, > >(i still don't know how to subscribe to this list so please mail back >directly. thanks!). https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel >i wrote a (bash) script which is being executed as soon as i plug in my >external usb harddisk. the problem is that this script is executed AGAIN >when i unplug the harddisk. how may i prevent that from happening? Check for the ACTION in the environment. >another question i do have is one i couldn't answer with manuals i've >read: obviously i don't need to actually mount a device to cp files on >it with udev anymore - first i don't see how this is possible udev has nothing to do with storage access, it just creates the device node for you. How would you access the filesystem without mounting it?! > and second >i'm not sure how i should umount the usb device - simply unplug it? is >this safe? No, it isn't safe. But you may mount the volume with the "sync" option and it may not happen something bad if you just remove the device. Kay ------------------------------------------------------- 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://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ 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