From mboxrd@z Thu Jan 1 00:00:00 1970 From: md@Linux.IT (Marco d'Itri) Date: Sat, 06 Jun 2009 16:27:26 +0000 Subject: Re: udev rule for unmount action Message-Id: <20090606162726.GA12838@bongo.bofh.it> List-Id: References: <200906061702.10974.chris@ilovelinux.de> In-Reply-To: <200906061702.10974.chris@ilovelinux.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Jun 06, Christian Schmitt wrote: > 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. The approved method is using inotify(2) on /proc/mounts, which is not related to udev. -- ciao, Marco