From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Schmitt Date: Sat, 06 Jun 2009 15:02:10 +0000 Subject: udev rule for unmount action Message-Id: <200906061702.10974.chris@ilovelinux.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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