Eject fails with "Error unmounting filesystem" error if busy
Submitted by António Fernandes
Link to original bug (#786538)
Description
Steps to reproduce: 1) Insert USB flash storage device. It will be automounted. 2) Open a file inside that device (cd into the mountpoint in bash). 3) Open GNOME Disks, click on the eject button for the USB flash storage.
Expected Results: The GNOME Shell modal dialog that shows when ejecting from nautilus:
VOLUME IS BUSY One or more applications are blocking the unmount operation. {list of applications keeping it busy} [ CANCEL | EJECT ANYWAY ]
Actual Results: A GTK+ error dialog in Disks:
Unable to eject [Partition Name] Error unmounting /dev/sdX: Command-line `umount "/path/to/partition/mountpoint"' exited with non-zero exit status 32: umount: /path/to/partition/mountpoint: target is busy" " (In some cases useful info about processes that\" " use the device is found by lsof(8) or fuser(1).)"
System: GNOME 3.24 from Fedora 26
See also related nautilus bug, where a screenshot of the expected result is attached: bug 749826
Version: 3.24.x