I see this bug was reported on Ubuntu 11.10 and status is still confirmed. I have exactly the same problem on Ubuntu 20.04, but only with VFAT partition type. EXFAT and NTFS are unmounted correctly.
I checked journal and when unplugging device I receive correct info: systemd[1]: [email protected]: Succeeded but file system is still shown as mounted on /media/usb0 After that I run: umount /medit/usb0 and umount reports no error, exits with 0 and file system is not mounted anymore. Now strange thing... I tried to force this "double unmount". I altered /usr/share/usbmount/usbmount and added another unmount command after first one. So in theory this should be the same as me running umount by hand after unplugging device. But in this case systemd reports error: systemd-udevd[1278522]: sdd1: Process '/usr/share/usbmount/usbmount remove' failed with exit code 32. Exit code 32 is from umount and means 'not mounted' BUT... if I check with mount, file system is still shown as mounted! If I (again) run same umount command by hand it exits with 0 and file system is unmounted. I also tried to change umount -l (as originally in /usr/share/usbmount/usbmount) with force option umount -f. No difference. And one more thing. On Ubuntu 16.04 there was no such problems. Unmount (after unplug) worked for all filesystems. Any clue? Thank you all for help! BR -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/939081 Title: Leaves disconnected devices' filesystems mounted / doesn't unmount To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usbmount/+bug/939081/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
