4

I have a 128GB USB 3 flash drive. I have it formatted as NTFS as that is the only filesystem that seems to work on both Ubuntu 18.04 and Windows 10. All the others I tried would have errors and/or corrupt data.

The problem is when I copy say 5GB of data to the drive on Ubuntu, it shows a file copying dialog, and then completes. Then I go to unmount the drive and it takes about 5 minutes to finish unmounting. It always brings up a dialog on the desktop saying do not remove the drive.

What is going on that it takes that long to unmount?

Comments
  • 5
    usb driver + buffering issue for the specific file system? FUSE crappiness?

    Hve you tried using a non limited fat32 format?
  • 6
    Data is written to buffer first, and then written to the actual media. This is slow tho.
  • 5
    I've had that same issue with Debian. The copying dialog goes away, but it doesn't finish copying for quite awhile afterwards. Occasionally I'll get a toast telling me the copying finished; other times it never appears.

    It's infuriatingly bad UX.
  • 4
    @magicMirror FAT32 maximum file size - 4GB.
  • 3
    You could lower the dirty writeback setting / sysctl
  • 1
    @Demolishun Yup. still good for cheap streamers, and general use.
    You can always split the files, and rejoin later.
  • 3
    @magicMirror FAT32 has fucked me over way too many times.
  • 5
    @Demolishun try formatting as exFAT. It will work on Windows 10 and Ubuntu alike.
  • 0
    Maube use the terminal then
  • 3
    @yellow-dog This will also happen with a terminal.
  • 2
    @kescherRant I have had exFAT fail on me twice with massive corruption and didn't recover either time.
  • 0
    @Demolishun Damn, ok. NTFS will have the same fate as the drivers for Linux for that are a bit outdated.
  • 2
    Don't let it mount automatically. Insert your USB drive and watch dmesg for its name. Then mount that and copy files normally. Explicitly unmount when you're done.
  • 4
    And that's what 'sync' is for :) except idk if it also works with usb devices. Still, it seems like ntfs driver is using terribly large/slowly flushing buffers.
  • 2
    maybe a stupid question, but does it work with any other flash drives? Flash memory does degrade and isn't super fault tolerant, I'd hate for it to be just a bad stick issue if you are spending lots of time on this.
  • 2
    @wannabe Does this on both my 64GB and 128GB flash drives.
  • 2
    @AppleLover Hold your tongue and say Apple User.
  • 2
    Is someone bashing MacOS?
  • 2
    @bahua Most people zsh it since Catalina 😉
Add Comment