LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-19-2017, 11:15 AM   #1
okorkie
Member
 
Registered: Mar 2007
Posts: 47

Rep: Reputation: 0
Slow Transfer Speed From HDD to USB Thumb Drive


Hello, does anyone know why when I attempt to copy a file (6 GB) from my HDD to a USB thumb drive, does the transfer rate start off at 77 MB/s and then quickly slows down to less than 10 MB/s and then crawls along to the point where it takes forever to complete and essentially stops at 67%? I tried the transfer a second time where I rebooted my PC and even reformatted the USB thumb drive to see if that would help, but it didn't seem to make a difference

I am using Mint Linux on a Lenovo T430 Thinkpad.

Thanks in advance!
 
Old 12-19-2017, 11:37 AM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,143
Blog Entries: 21

Rep: Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480
My IBM T430 has always moved slower transferring files from the internal spinning hard drive to usb flash drive. From usb to internal drive however. It is faster.

Mine never stops at 67%. But then. I just walk away and give it time to finish. I don't run Mint/Ubuntu on mine. With all it's processes running while I do things. I run rox file manager or spacefm with a window manager on mine . Uses less resources.

http://www.binarytides.com/linux-test-drive-speed/
 
Old 12-19-2017, 11:47 AM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Do you get the same behavior with a different USB drive? Preferably a known good, fast one.
 
Old 12-19-2017, 01:07 PM   #4
okorkie
Member
 
Registered: Mar 2007
Posts: 47

Original Poster
Rep: Reputation: 0
Thanks so much for the link on testing read/write speed of usb and ssd drives. Here are my results:

Kingston USB (approximately 4 or 5 years old)

READ speed
dd if=/dev/zero of=./largefile bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 186.877 s, 5.7 MB/s

Write speed
dd if=./largefile of=/dev/null bs=4k
262144+0 records in
262144+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 48.3306 s, 22.2 MB/s


Walmart USB (recently purchased)

READ speed
dd if=/dev/zero of=./largefile bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 168.204 s, 6.4 MB/s

Write speed
dd if=./largefile of=/dev/null bs=4k
262144+0 records in
262144+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 30.4706 s, 35.2 MB/s

When I tested with the Kingston USB thumb drive, I get a similar result - meaning after about 1GB of transferred data, it immediately starts to slow down at stops at 67%.

Is there a way to list or determine the types and number (and maybe speed) of USB ports on my PC with a specific Linux command? This might help me determine if there are any USB 3.0 ports, etc. Also, could this have anything to do with the type of formatting (FAT, FAT32, NTFS)?
 
Old 12-19-2017, 02:03 PM   #5
okorkie
Member
 
Registered: Mar 2007
Posts: 47

Original Poster
Rep: Reputation: 0
Formatting the thumb drive as Ext4 fixed the problem and the file eventually transferred.
 
Old 12-19-2017, 02:07 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by okorkie View Post
Also, could this have anything to do with the type of formatting (FAT, FAT32, NTFS)?
Yes, FAT32 has a max file size of 2 or 4 GB, I forget which.

Last edited by suicidaleggroll; 12-19-2017 at 02:09 PM.
 
1 members found this post helpful.
Old 12-19-2017, 02:09 PM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
Unfortunately, "thumb drives" are built using RAM technology that is designed to support very large data-capacities with minimal power consumption. These technologies are designed to favor reading, but they do so at the expense of writing. It can be very(!) slow for any sort of computer to write to some "thumb drives." The type of filesystem that you elect to use really doesn't have anything to do with it.
 
Old 12-19-2017, 02:18 PM   #8
masterclassic
Member
 
Registered: Jun 2007
Distribution: Knoppix, antiX
Posts: 252

Rep: Reputation: 73
Quote:
Originally Posted by suicidaleggroll View Post
Yes, FAT32 has a max file size of 2 or 4 GB, I forget which.
That's the key: 4 GB is the 67% of 6 GB.

Concerning the write speed, cheaper drives are slow or very slow. More expansive ones can be faster.

Last edited by masterclassic; 12-19-2017 at 02:21 PM.
 
1 members found this post helpful.
Old 12-19-2017, 05:14 PM   #9
okorkie
Member
 
Registered: Mar 2007
Posts: 47

Original Poster
Rep: Reputation: 0
Update... Yes, the file did transfer from my Linux PC to the USB thumb drive after formatting it to Ext4. However, the problem was that Windows 7 would not read the thumb drive. After reformatting the thumb drive as exFAT (using the "mkfs.exfat -n" command), both my Linux and Windows PCs can recognize the thumb drive. Thanks for everyone's help.
 
Old 12-19-2017, 07:42 PM   #10
Mike_Walsh
Member
 
Registered: Jul 2017
Location: King's Lynn, UK
Distribution: Nowt but Puppies....
Posts: 660

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
Just as a follow-up, even though your T430 will only have USB 2.0 ports, you might like to try the SanDisk 'nano'-sized Ultra 'Fit' USB 3.0 drives. I know it sounds crazy, but they still read/write thru a USB 2.0 port considerably faster than a standard USB 2.0 drive will.

Read/write times/speeds vary considerably from one manufacturer to another, and also from one device to another within the same range. There's even noticeable differences between identical models.....

On the whole, you can say that USB 3.0 drives will transfer faster, regardless of the type of port they're plugged into.


Mike.
 
Old 12-19-2017, 09:48 PM   #11
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Mike_Walsh View Post
Just as a follow-up, even though your T430 will only have USB 2.0 ports
The T430 has 2 USB 3.0 ports

OP - they're the blue ones
 
Old 12-20-2017, 05:16 AM   #12
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,481

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by Mike_Walsh View Post
I know it sounds crazy, but they still read/write thru a USB 2.0 port considerably faster than a standard USB 2.0 drive will.
It sounds crazy but it's technically very sound. As has been previously said, most [USB 2] drives are built with cheaper slow components. USB 3 drives are built to perform faster than USB 2, as users expect them to be faster, and these components allow the drive to run at, or very close to, the full USB 2 spec.

Fun fact... a 1Gbit USB 3 ethernet adaptor in a Raspberry Pi can sometimes perform faster than the onboard ethernet connector as the onboard ethernet is ultimately driven by USB 2 and the above comment applies.
 
Old 12-20-2017, 08:24 AM   #13
okorkie
Member
 
Registered: Mar 2007
Posts: 47

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by suicidaleggroll View Post
The T430 has 2 USB 3.0 ports

OP - they're the blue ones
Thank you
 
Old 12-20-2017, 09:32 AM   #14
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
It's almost certainly due to Linux disk caching.

I've noticed a similar effect (on a lesser scale) when copying a large file (8GB+) from one hard disk to another identical one.
That's assuming the Mint progress bar can be trusted.
 
Old 12-20-2017, 04:36 PM   #15
masterclassic
Member
 
Registered: Jun 2007
Distribution: Knoppix, antiX
Posts: 252

Rep: Reputation: 73
I confirm that USB3.0 drives work significantly faster than USB2.0 ones even on USB2.0 ports.

Otherwise, I found some years ago a FAQ in the "USB Consortium" 's web page, where developers were encouraged to cut the bitrate to a value, say 30% of the full bandwidth, in order to leave bandwidth for other devices to work on the USB bus. I effectively remarked that the highest transfer speed (to external USB-connected hard drives) was near the 1/3 of the full USB 2.0 bandwidth of 480 Mbit/s.
I wouldn't be surprised if some manufacturers would use higher allowed speeds in their more expansive devices
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow transfer speed on RTL8191SU usb wifi (AirLink101 AWLL6075) propofol Linux - Hardware 2 10-26-2013 01:33 AM
Slow USB transfer rates (60kb p/s) External HDD --> Internal HDD drfrostbyte Linux - Hardware 4 03-28-2011 01:20 AM
Slow USB thumb drive transfer Ubuntu 10.04 jkzfixme Linux - Hardware 1 06-24-2010 03:49 PM
Slow HDD speed on Microclient Jr with 80GB 5400 Laptop drive bence8810 Linux - Hardware 6 12-30-2007 02:42 PM
usb 2.0 hdd working through usb 2.0 pcmcia card full speed in 2.4, but slow in 2.6 chilly_willy2 Linux - Hardware 11 02-02-2006 06:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration