I have debian system that auto mounts an entry in my fstab file when a usb drive is connected.
- This is done so as a read only device
- The device is mounted to /media/usb1
If i'm in the console and I
cd /media/usb1 then unplug the device the contents of the directory are still listed, I'm assuming the umount command (or somethigng similar) fails. This does not happen if i'm not in that directory while pulling out the usb drive.
I do understand that you should umount the drive before removing it, however this is going to run headless and that won't be an option (think automated picture screen). Is there a way to force the drive to unmount in a situation like this?
I believe the OS is using udev & udisks to auto mount/unmount.