linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev rule for unmount action
@ 2009-06-06 15:02 Christian Schmitt
  2009-06-06 16:27 ` Marco d'Itri
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Christian Schmitt @ 2009-06-06 15:02 UTC (permalink / raw)
  To: linux-hotplug

Hi,

I am trying to write a udev rule for my external HD that needs some special 
"care" when being unmounted (see here: 
http://elliotli.blogspot.com/2009/01/safely-remove-usb-hard-drive-in-
linux.html).
The problem is that I can not find a way to make udev react on the unmount 
command and execute a script. The "ACTION=remove" rule only works when I 
unplug the device. Is there a way to execute a script when unmounting? I guess 
doing this on the DE level is not the best way to go.

Cheers,
Chris

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-06-10 19:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-06 15:02 udev rule for unmount action Christian Schmitt
2009-06-06 16:27 ` Marco d'Itri
2009-06-07 13:05 ` Christian Schmitt
2009-06-08 12:38 ` Karel Zak
2009-06-08 14:42 ` Christian Schmitt
2009-06-09  0:45 ` David Zeuthen
2009-06-10 19:34 ` Christian Schmitt

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).