Results 1 to 7 of 7

Thread: Ubuntu 20 slow USB 2.0 copy to 32 gb stick

  1. #1
    Join Date
    Jul 2009
    Beans
    363

    Ubuntu 20 slow USB 2.0 copy to 32 gb stick

    Hello,
    I observed very slow writing of the USB stick on my 32 gb stick.It starts with 36 MBPS and at the end crawls to a very slow rate. I searched but haven't found any definitive solution. I should be getting a 132 gb stick soon.
    Does anybody know a solution?

  2. #2
    Join Date
    Sep 2009
    Location
    Pennsylvania
    Beans
    3,367
    Distro
    Xubuntu

    Re: Ubuntu 20 slow USB 2.0 copy to 32 gb stick

    What file format is the USB stick using?

  3. #3
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Ubuntu 20 slow USB 2.0 copy to 32 gb stick

    Flash storage wears out as the number of write cycles grow. There's no way to "fix" that. In general, cheaper flash has much fewer write cycles before failure. As the write cycle count increases, it takes longer and longer to actually write the data.

    The initial speed is because writes are cached in RAM buffers. When the buffers are full, the speed slows to the performance possible by the physical media, the file system, and the interface. In general, the fastest I've ever seen expensive USB2 flash media work is 22 MBps. USB2 bus theoretical limit is 480 Mbps (60MBps) https://en.wikipedia.org/wiki/USB#USB_2.0.

    If you want the best possible performance and don't need to share the flash drive with other OSes, then use f2fs as the file system. f2fs is almost as fast as ext4 in testing and sometime faster. exFAT would be the next choice, then ext4, then NTFS, then last choice is FAT32. FAT32 is slow for a number of reasons.

    132GB is an odd size for any storage. 128GB would be more likely. With that size, you cannot use FAT32 (according to Microsoft), though from Linux you can format anything as FAT32. That won't fix the underlying design issues with that file system. FAT32 was made for smaller storage partitions and loses efficiency with every size increase over about 16G. In theory, exFAT will be getting faster and faster, since Microsoft opened the patents on it and has been working to create a solid kernel driver for it. Last time I checked FAT32, NTFS, f2fs and exFAT all used FUSE file system drivers.
    https://en.wikipedia.org/wiki/Compar...f_file_systems Note which support POSIX permissions without any footnotes.

  4. #4
    Join Date
    Jul 2009
    Beans
    363

    Re: Ubuntu 20 slow USB 2.0 copy to 32 gb stick

    Quote Originally Posted by TheFu View Post
    Flash storage wears out as the number of write cycles grow. There's no way to "fix" that. In general, cheaper flash has much fewer write cycles before failure. As the write cycle count increases, it takes longer and longer to actually write the data.

    The initial speed is because writes are cached in RAM buffers. When the buffers are full, the speed slows to the performance possible by the physical media, the file system, and the interface. In general, the fastest I've ever seen expensive USB2 flash media work is 22 MBps. USB2 bus theoretical limit is 480 Mbps (60MBps) https://en.wikipedia.org/wiki/USB#USB_2.0.

    If you want the best possible performance and don't need to share the flash drive with other OSes, then use f2fs as the file system. f2fs is almost as fast as ext4 in testing and sometime faster. exFAT would be the next choice, then ext4, then NTFS, then last choice is FAT32. FAT32 is slow for a number of reasons.

    132GB is an odd size for any storage. 128GB would be more likely. With that size, you cannot use FAT32 (according to Microsoft), though from Linux you can format anything as FAT32. That won't fix the underlying design issues with that file system. FAT32 was made for smaller storage partitions and loses efficiency with every size increase over about 16G. In theory, exFAT will be getting faster and faster, since Microsoft opened the patents on it and has been working to create a solid kernel driver for it. Last time I checked FAT32, NTFS, f2fs and exFAT all used FUSE file system drivers.
    https://en.wikipedia.org/wiki/Compar...f_file_systems Note which support POSIX permissions without any footnotes.
    Thank you for your detailed reply. The stick has to be connected to an Android TV box hence I don't think the file systems like ext4 would work. I used the default already created FS fat32 and things worked. The speed was also ok, not that bad at all to copy on to 128 fb USB stick.

  5. #5
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Ubuntu 20 slow USB 2.0 copy to 32 gb stick

    Android supports ext4 and some versions support f2fs.

    No way did a USB flash drive over 64G come pre-formatted FAT32. It came with exFAT.

  6. #6
    Join Date
    Jul 2009
    Beans
    363

    Re: Ubuntu 20 slow USB 2.0 copy to 32 gb stick

    Quote Originally Posted by TheFu View Post
    Android supports ext4 and some versions support f2fs.

    No way did a USB flash drive over 64G come pre-formatted FAT32. It came with exFAT.
    Looks like it can be done.
    https://www.diskpart.com/articles/fo...at32-0310.html

  7. #7
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Ubuntu 20 slow USB 2.0 copy to 32 gb stick

    Quote Originally Posted by deepakdeshp View Post
    I said that it wouldn't be delivered from the manufacturer that way.

    There are thousands of things that CAN be done on Linux. Almost always, using fat32 on storage over 32G is a really bad idea. Learn mode about fat32 to understand why.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •