On Thu, 17 Nov 2011 15:58:03 +0100, Raffaele BELARDI wrote: > The ArchWiki link on Udev posted by James shows how to set a rule for > un-mounting: > > ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/su tomk -c > '/usr/bin/pumount /media/%E{dir_name}'" > > Based on your feedback I suppose the same can be done (or is done?) > with uam.
The problem with such a rule is that it is executed after the device is removed, so it cannot unmount the filesystem cleanly. The only way to do that would be for udev to know you were going to remove the drive before you actually unplugged. I thought that pcmanfm, the LXDE file manager, had a context menu option to unmount. -- Neil Bothwick It's no use crying over spilt milk -- it only makes it salty for the cat.
signature.asc
Description: PGP signature