LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-06-2014, 12:43 PM   #1
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 749

Rep: Reputation: 77
USB copying really really slow on Slackware


I know it is not the port nor the pendrive because on Windows it copies just fine. When I try to copy an archive to it, it starts at something like 30~40MiB/s (pretty impressive) but it starts to drop fast, in the middle it is at something like 5MiB/s (sort of like Windows if I recall it correctly). Unfortunately, it keeps dropping and then it goes to less than 1MiB/s. It can take more than 3 hours to copy 5GiB.
 
Old 01-06-2014, 01:13 PM   #2
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Rep: Reputation: 35
What filesystem is the drive formatted as (ex: NTFS, FAT32)? How are you mounting the drive (as what type with which options)?
 
Old 01-06-2014, 01:40 PM   #3
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 749

Original Poster
Rep: Reputation: 77
NTFS (since FAT32 can't handle larger files), usually mounted just double clicking on it on XFCE. It is so slow that is faster to transfer the file to the windows partition, boot on windows, copy the file.
 
Old 01-06-2014, 01:52 PM   #4
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Rep: Reputation: 35
Check and make sure you have ntfs-3g installed and up-to-date.

Could also you try mounting it manually through the command line instead and see if that helps, or returns any warnings/errors? Something like, mount -t ntfs-3g /dev/sdb1 /your/mountpoint/here -o rw,users,umask=0000

I would also try running the copy command through the CLI to see if it returns any warnings or errors there too.
 
Old 01-06-2014, 03:06 PM   #5
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 749

Original Poster
Rep: Reputation: 77
I have ntfs-3g working fine. I can access the windows's partition with no problem. Mounted the pendrive using the command line and it is fine too.

EDIT: I am copying it using dd and it started at 11Mb/s, 400 seconds later and now it is copying at 3,5Mb/s. Not really fast but that is more or less how it goes on windows. Still need to wait since it drops more at the end.

Last edited by moisespedro; 01-06-2014 at 03:08 PM.
 
Old 01-06-2014, 03:12 PM   #6
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 749

Original Poster
Rep: Reputation: 77
2,7 Mb/s and it doesn't stop dropping. Damn.
 
Old 01-06-2014, 03:16 PM   #7
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Rep: Reputation: 35
Have you tried mounting the drive with the option -o noatime?
 
Old 01-06-2014, 03:19 PM   #8
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 749

Original Poster
Rep: Reputation: 77
No, gonna try that later. Will wait until it gets near the end (when it drops to like 200Kb/s).
 
Old 01-06-2014, 03:30 PM   #9
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 749

Original Poster
Rep: Reputation: 77
Trying with noatime now, it makes me sad how it always starts copying at 12Mb/s. Lets see how it goes.
 
Old 01-06-2014, 03:42 PM   #10
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 749

Original Poster
Rep: Reputation: 77
noatime option is giving me the same results, that sucks.
 
Old 01-06-2014, 03:47 PM   #11
stormbr
LQ Newbie
 
Registered: Aug 2007
Posts: 15

Rep: Reputation: 1
Post

Just a question: are you using a initrd? If so maybe your usb modules are not being loaded in the correct order....
In my setup they are: modprobe ehci_hcd
modprobe ehci_pci
modprobe uhci_hcd
modprobe ohci_hcd
 
Old 01-06-2014, 03:54 PM   #12
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 749

Original Poster
Rep: Reputation: 77
Yes, I am using one. How exactly do I check/change that?

EDIT: By the way, it seems it will stop dropping at 1,9 Mb/s. Still sucks but it is less worse than before.
 
Old 01-06-2014, 03:55 PM   #13
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Rep: Reputation: 35
Anything related about the USB drive during mount/copy in dmesg | tail?
 
Old 01-06-2014, 03:58 PM   #14
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 749

Original Poster
Rep: Reputation: 77
This:
Code:
[13243.881008] sd 5:0:0:0: [sdd] Mode Sense: 23 00 00 00
[13243.881630] sd 5:0:0:0: [sdd] No Caching mode page found
[13243.881632] sd 5:0:0:0: [sdd] Assuming drive cache: write through
[13243.885254] sd 5:0:0:0: [sdd] No Caching mode page found
[13243.885256] sd 5:0:0:0: [sdd] Assuming drive cache: write through
[13243.906368]  sdd: sdd1
[13243.912610] sd 5:0:0:0: [sdd] No Caching mode page found
[13243.912613] sd 5:0:0:0: [sdd] Assuming drive cache: write through
[13243.912616] sd 5:0:0:0: [sdd] Attached SCSI removable disk
[13692.254180] Peer 148.246.180.162:65243/62750 unexpectedly shrunk window 1115412022:1115417386 (repaired)
 
Old 01-06-2014, 04:05 PM   #15
stormbr
LQ Newbie
 
Registered: Aug 2007
Posts: 15

Rep: Reputation: 1
Check if all modules are in your initrd. I have had that problem at various occasions due to an old brain forgetting to put them all in the initrd.
 
  


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
Slackware 12.2 USB Installation - Extremely Slow malto Slackware 9 12-27-2008 11:13 PM
usb mouse slow in slackware linux 12 O166 Linux - Hardware 1 11-10-2008 04:15 AM
Copying/Moving Files Slow on Slackware 11.0 with XFS. shadin Slackware 7 07-23-2007 01:15 AM
USB Removable Media copying VERY SLOW stardotstar Linux - Hardware 4 03-02-2005 11:50 AM
Samba slow file copying robinsn Linux - Networking 3 06-15-2002 02:18 AM


All times are GMT -5. The time now is 09:32 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration