On 05/07/2018 03:44 PM, Bob Goodwin wrote:
On 05/07/18 18:04, Samuel Sieb wrote:
If it only happens after you write to it, maybe the drive is slow and
the cache flush is taking longer than you expect. Or is the first
paragraph meaning that you click unmount immediately after mounting it
and it still takes that long? Another possibility is that some
process is scanning the drive and holding it open. Although in that
case, Nautilus would show a message saying that, but I don't what
would happen for you.
I copy the data to the device in a terminal, it takes perhaps 30
seconds, when finished I close that to make the flash drive free and
then go to the desktop, click on the unmount and this last time waited
~125 seconds for it to unmount before disconnecting the usb flash drive.
Perhaps that is clearer
Then that supports my suggestion. Unless the the flash drive is mounted
with the "sync" option, the data is copied into the cache and the copy
command exits. The data is being written in the background, but when
you want to unmount the drive, it has to wait until all the data is
finished writing. To verify this, try running "sync" after doing the
copy. That should take the same time to exit and then the unmount
should be immediate.
I think removable FAT filesystems used to be mounted with the "sync"
option, but it looks like now the default is "flush" instead. This
makes sense, as it has nearly the same result, but without having to
wait so much if you want to do multiple operations. It does mean that
people need to unmount the drive properly instead of yanking it out as
soon as the copy finishes which is unfortunately still not as common
knowledge as it should be...
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx