LinuxQuestions.org
Help answer threads with 0 replies.
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 05-20-2009, 01:10 AM   #1
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Rep: Reputation: 34
Have a lot of people had slow USB issues?


I've been ripping my hair out for months about transferring large files, or groups of small files to my mp3 player. It will start fast, then just die down, and take forever to finish. I've searched all over the web and found that some people have this problem and others don't, which would lead me to believe that it is hardware related. But I don't think it is.

If I mount the device with the graphical widget thing, open it in dolphin, and start copying files, it acts as described above. If I mount it from a command line with no options, it seems to finish the transfer, but then I cannot unmount it for a long period of time, as it says it is busy.

I have the same issue with an old 1GB flash drive. So upon experimenting with it, I've found that it only happens if it is formatted fat32. If it is formatted ext2, the transfers buzz right along, no problem. So obviously it is not hardware related.

So apparently there is a mount option that I am missing to make it work right. I've tried the -sync option, but that seems to make no difference. Can someone shed some light please?
 
Old 05-20-2009, 03:49 AM   #2
DanceMan
Member
 
Registered: Mar 2009
Location: Vancouver BC
Posts: 91

Rep: Reputation: 22
I've had the same "start fast, then slow to a crawl" issue transferring to a usb flash drive in Suse 11.1. The usb drive is undoubtedly formatted FAT32 -- used first in Win and I haven't formatted it.

Interesting news that the format makes a difference. I should try ntfs on the usb drives, since I need them also readable in Win.
 
Old 05-23-2009, 10:59 AM   #3
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
the problem you're describing (device busy) is caused by you still being in the directory you're trying to umount.
2 example options:
Code:
/media/usbblah>>  cd /
/>>  umount /media/usbblah
or if all else fails you can use 'lazy' umount
Code:
umount -l /media/usbblah
cheers
 
Old 05-23-2009, 07:20 PM   #4
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,391

Rep: Reputation: 101Reputation: 101
For what it may be worth... several years ago I experienced a similar issue (using XP). Copying files to/from a USB flash drive, MP3 player or digital camera was almost impossible. Talk about SLOW!

One day I needed to transfer some files and I tried the USB drive in a Fedora machine. Worked great. I dual booted the Fedora machine to XP and it worked great. The original XP machine and the dual boot machine were both Dell Dimension 4600s of almost identical spec.

After pondering the situation I determined that the only difference was that the mis-behaving machine had a bunch of other USB things attached (printers, scanner, UPS). "USB devices don't conflict with one another" so this should make no difference.

Well... I started unplugging USB things one by one, testing the file transfer and then reattaching each USB thing if it did not have any impact.

Bottom line, it was my Brother HL5170DN laser printer at fault. When it was unplugged (power off was not good enough) the file transfers were speedy as expected. When the laser printer was attached the USB file transfer rate was essentially unusable. The laser printer is now shared on my Ethernet network.

So, even though USB devices do not conflict... might try transferring the file with no other USB things attached.

Ken

p.s. as to the difference in performance based on the drive format... this SHOULD also have no impact, but...
 
Old 05-25-2009, 01:34 PM   #5
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by nilleso View Post
the problem you're describing (device busy) is caused by you still being in the directory you're trying to umount.
2 example options:
Code:
/media/usbblah>>  cd /
/>>  umount /media/usbblah
or if all else fails you can use 'lazy' umount
Code:
umount -l /media/usbblah
cheers
Yes, I know that the device busy can be caused by being in that directory. However, if I get the device to unmount, only a portion of the data has transferred, meaning that it never finishes, something causes it to hang. I believe it has something to do with the way it is handling the file allocation table, because it never happens with drives with linux formats.
 
Old 05-25-2009, 01:41 PM   #6
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Hang on, after it returns finished, it has still only transferred part of the data?
 
Old 05-25-2009, 02:55 PM   #7
roy_lt_69
Member
 
Registered: Aug 2006
Location: Vancouver, BC, Canada
Distribution: Slackware, Bodhi, Mint-xfce
Posts: 182

Rep: Reputation: 21
Sound like the write was not completed fully, ie cached/buffered somewhere!

I have also had slow USB xfer rates when multiple USB devices are attached to the computer,
even causing USB to get disconnected/reset.
Check dmesg before and after to see if there are any new entries that can be related to the xfer.
In fact USB requires more resources (eg CPU ticks) than say Firewire, and then there is the issue of
all the h/w implementation that were buggy (eg Via chips).
Throw in USB hubs and things get really messy.
That is why I prefer to use Firewire external drives vs USB external drives!
In fact, my external drive in Firewire mode (it has both USB & 1394 ports) consistently beats out USB on
every computer I have connected it to!
But unfortunately, USB seems to be what everyone is moving towards!
 
Old 05-26-2009, 03:04 PM   #8
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by jamescondron View Post
Hang on, after it returns finished, it has still only transferred part of the data?
No, it doesn't return finished. It keeps saying that it is copying, but it will never finish. The file size cutoff where this happens seems to be about 250MB. When the amount to be transferred is below that, it seems to finish. When it goes past that mark, the speed drops way down to nothing, and even if you let it go all night, it will not finish.

I have done a lot of reading online about other people with this issue. The common thread is that reads are always fine, it is only writes.
And it never happens to me with a stick formatted ext2, I have had it with fat32, and I have not bother to try ntfs or anything else.

Also worth noting is that when I was messing with a windows formatted ipod, it was the same way. As roy said above, it gets cached somewhere and never written it seems.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 performance!!! System using a lot of Physical Memory SLOW HELP! badgerbox76 Linux - Newbie 31 07-19-2007 11:23 AM
Using OpenGL is very slow (a lot of lag) BigFoot13 Linux - Games 9 10-22-2006 10:28 PM
Adding a new hard drive, making some complex changes, confused about a lot of issues undeaf Linux - General 14 06-19-2006 07:13 PM
Sound and USB problems: lot of information Jose Monteiro Linux - Hardware 2 02-18-2006 03:55 PM
XP, NTFS, Partition Resizing, and a whole lot of trouble. Please help me people! liquidwonders Linux - Software 7 08-26-2003 08:20 PM


All times are GMT -5. The time now is 08:29 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration