The problem: Thunar claims that it's written my files to a thumb drive, then I spend 15 minutes waiting for the drive to unmount.
I understand it has to do with the write cache. I hope there's a way to get it to do what I'd like, which is for the file manager to show me an accurate progress bar of the remaining write time (with an option to cancel the copy!)
What I'm unclear about is:
- Does Ubuntu detect some drives as removable and apply optimal write cache settings?
- If yes, how can I force it for my drive?
And, in general, ie, teach a man to fish:
- How can I tune the write cache for a drive? The ideal write cache would be a small write-back cache that is written to disk as quickly as possible. Actually, the cache itself need not be small, it just has to permit a small number of dirty pages.
- How can I have this setting apply each time I use a USB drive?
Full disclosure: I'm on Mint 17.2 Xfce
Disk Performance Monitor
panel widget that the disk is being written. – Aleksandr Dubinsky Oct 29 '15 at 14:01df -h
that it was indeed unmounted. This is not with Thunar but with PCManFM. – DK Bose Oct 29 '15 at 15:53cd
does not seem to exit before the data is written. Similarly Unetbootin waited as well. They must usefsync
or similar to flush the cache before quitting. But the problem demonstrates itself in the progress bar going to 99% right away. – Aleksandr Dubinsky Oct 30 '15 at 18:37