Score:2

How to change the USB drive policy from "Quick removal" to "Better performance"?

au flag

I have a Seagate Expansion Drive with 4TB that I use in my dual boot system (OS: Ubuntu Impish Indri 21.10/Windows10Pro, both 64bits).

The speed of the driver was initially slow (speed transfers around 1-2MB/s, in 3.0 USB ports) in both OS.

For Windows, I found that was possible to change the working mode policy, from "Quick removal" to "Better performance". Done this, and the speed was increased to values around 90-120Mb/s.

I wonder now how can I do the same modification in my Ubuntu box.

Regards,

Camps

Terrance avatar
id flag
Can you please [edit](https://askubuntu.com/posts/1370494/edit) your question and add what version of Ubuntu you are using? Thank you!
sudodus avatar
jp flag
Is it still that slow (1-2MB/s, in 3.0 USB ports when running Ubuntu)? That's worse than a slow USB 2 pendrive. What file system is there now? exFAT or NTFS? If you want maximum speed with Ubuntu, I suggest that you use that ext4 file system, but then you will lose compatibility with Windows. - We don't know what you did to make it fast for Windows: change file system, change caching mode and/or something else?
Camps avatar
au flag
@Terrance, I edited: it is Ubuntu Hirsute 21.10.
Camps avatar
au flag
@sudodus It is formatted in NTFS as I need to read/write in Windows too. But this problem is just with that Seagate drive of 4TB, other drives (with lower capacity of 1TB-2TB) work as expected.
sudodus avatar
jp flag
21.10 is Impish Indri, recently released.
Camps avatar
au flag
@sudodus, yep, I updated today, but the issue is old, since versions 20.04.
sudodus avatar
jp flag
I suspect that there is some special setting in the drive itself, that makes it write more or less directly (and avoid caching) and that you can turn that off in Windows. It could be 'any' string, that should be sent to the drive to control it, and I think you must ask the manufacturer what it is and how to send it. I looked at the documentation, but it did not go into such details, only to select NTFS (which you have already). Please avoid advanced things with hdparm - it is known to brick USB drives.
cn flag
Quick Removal = Windows does *not* caches disk writes. If you copy a bunch of files, anything that looks like is done *is* done. Better Performance = Windows caches disk writes and updates the drive in the background. If you copy a bunch of files, even though it looks like it got done, it's just sitting in cache waiting to write. This is why (on Windows) you get super file copy speeds and are then stuck at 99% when you drag a bunch of files to a USB drive. If Linux says a file copy is done, it's done. It doesn't get stuck at 99% for 10 minutes, that's the other OS.
cn flag
"It is formatted in NTFS" will make it slower than when it is ext2 or ext3. "Better performance" is a commercial trick; it does not write quicker it just makes it write later (and hopefully before you yank it out of the port ;) )
cn flag
btw: use the mount options `sync,dirsync` to enable thise.
sudodus avatar
jp flag
@Rinzwind, The drive is very slow, 1-2MB/s, in 3.0 USB ports when running Ubuntu, slower than a slow USB 2 pendrive. Can you think of any reason for such slow write speed? And in that case, what could be done to fix it (except replacing the drive)?
cn flag
Besides ntfs being slow as it is no not really and "Better performance" is probably not the answer. Maybe run a repair tool? chkdsk?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.