Run script when device is mounted

view full story

https://bbs.archlinux.org – Hi,I'm wanting to run a script automatically when a particular USB storage device is mounted. I've looked at the udev rules and utilities from the systemd-tools package, and while that can detect when a device is connected, is does not seem to detect when it is mounted on the file system (two different things). Similarly, using inotifywait to look for a particular file on the USB storage doesn't seem to work as it loses track when the device is unmounted then remounted.Any ideas?E. ecognito https://bbs.archlinux.org/profile.php?id=26108 2012-06-15T02:11:29Z (HowTos)