Ubuntu 12.04.1 LTS
I'm about to set up udev rules to automatically mount/umount an external USB drive when plugged or unplugged.
I'm concerned that by using udev to automatically unmount the filesystem, it could cause the file system to be corrupted if there is an outstanding IO.
Surely it is too late to umount the file system after it has already been unplugged?
Should I manually umount the file system? Will it cause an error if I umount the file system, and the udev rules also try to umount it when it is unplugged?
Thanks for any help!