Workaround: apart from workarounds involving "sync" etc from command-
line or always using command-line tools, the only way I have found to
make all the GUI tools behave properly with "Eject" is to add the "sync"
mount option.

While an explicit fstab entry can do it, the more user friendly way is
to open the gnome-disks utility, click on gears "More action" icon after
the drive has been inserted, then "Edit Mount Options", then unselect
automatic mount option in the new window, then add "sync" separated by a
comma after the list of options that are shown in the fourth text box.

One can select "/dev/sdb1" or whatever be the case in "Identy As" select
box instead of the specific USB so that this works for all USB drives,
but then it will not work for drives that are on other locations like
/dev/sdc1. Perhaps one can repeat the same for all such possibiities,
but one cannot be sure to cover all cases or cases where /dev/sdb1 is
not a USB flash drive. This could potentially use the more complex
matching criteria which I was a bit familiar with in the udev rules in
older releases, but I don't know if that still works with the new
infrastructure (perhaps need to look through udisks docs).

Either way adding "sync" is just a workaround and not the solution to
this problem since adding that potentially loses on a lot of overall
performance benefits of kernel filesystem cache. Proper solution will be
to correctly unmount the drive (e.g. like what "udisks --unmount
/dev/sdb1" does) and then eject. Not sure how the software manages to
eject without even unmounting in the first place.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/1336184

Title:
  USB flash drive keeps writing for quite a while even after "Eject"
  completes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1336184/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to