Public bug reported: I am running Ubuntu TLS 6.06. I've followed http://ubuntuforums.org/showthread.php?t=164902 successfully to setup udev to run a script of mine to automount a usb disk. However, the script is not run when the disk is disconnected (unplugged). My udev rules and script are shown below. From the log file I can see that it is called only when ACTION is "add". If I unplug the usb disk, the symlink /dev/onetouch will indeed disappear so udev is itself catching this event. It is just not calling my script. Any help? Thanks in advance!
My rule: BUS=="usb", KERNEL=="sd?", SYSFS{product}=="Maxtor OneTouch III", NAME="%k", SYMLINK="onetouch" RUN+="/usr/local/admin/handle-onetouch.sh" My script (/usr/local/admin/handle-onetouch.sh): #!/bin/sh echo $ACTION >> /var/log/tmp if [ "$ACTION"=="add" ]; then echo mounting >> /var/log/tmp mount /mnt/usbdisk else echo umounting >> /var/log/tmp umount /mnt/usbdisk fi ** Affects: ubuntu Importance: Undecided Status: New -- udev calls my script for "add" but not for "remove" https://bugs.launchpad.net/bugs/135429 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs