I use Ubuntu Server 12.04.03 LTS (without GUI) and wrote an udev rule:
KERNEL=="sd?1", SUBSYSTEMS=="usb", ATTRS{product}=="Mass Storage Device", RUN+="/bin/mount /dev/%k /mnt/usbdrive"
This is works well, but then I want to unmount the drive with this command:
sudo umount /mnt/usbdrive
But it isn't work, and there isn't any error message. What can I do?
You can try this: Append these rules into your .rules file, you've created: