I was getting the usual 4-8mbps in 12.04 when copying files via usb sticks. However after upgrading to 12.10, I only get 200-300kbps when I try to perform the same operation.
I have tried different usb sticks (which work flawlessly on Windows 7) and still experience the same issue. I experienced the same issue sometime ago on 11.10 but everything was normal when I upgraded to 12.04 so it might be a kernel issue.
Here's the output of dmseg |tail
:
mysterio@mysterio-HP-Pavilion-dv6700-Notebook-PC:~$ dmesg |tail
[ 871.023093] sdb: sdb1
[ 871.026909] sd 5:0:0:0: [sdb] No Caching mode page present
[ 871.026920] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 871.026927] sd 5:0:0:0: [sdb] Attached SCSI removable disk
[ 1036.226206] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 1036.233561] ISO 9660 Extensions: RRIP_1991A
[ 1086.342973] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 1086.343010] ISO 9660 Extensions: RRIP_1991A
[ 1173.971357] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 1173.971441] ISO 9660 Extensions: RRIP_1991A
I have updated my system with the latest updates. What could be wrong?
I fear that your problem has no solution. USB slow transfer rates are a phantom in Ubuntu history, that comes and goes away from time to time. It happens because developers in the majority of cases are not able to reproduce this problem and then no solution will be released.
You can see a phenomenon of discussions about USB transfer rates being slow in Ubuntu (and its "cousins"). For example you can see this thread, this discussion and this other thread.
Some say that enabling or disabling Legacy USB Support into the BIOS solves the problem, although it seems as specific rare cases.
There is a bug reported at LaunchPad that presents a workaround for the issue, but as it is somewhat outdated I can't evaluate it's effectiveness nowadays. The workaround is presented by Jean Pierre at Bug #66115 he talks about the workaround in this comment and after in this more detailed comment.
A hot discussion is about the sync mode being enabled when Nautilus mounts a device, although beyond Konqueror (KDE equivalent to Nautilus) I haven't found anyone who got sync option disabled for Nautilus.
Some workarounds of doubtfully effectiveness are discussed in this Super User's Question.
If you got no luck until here I shall tell you that there exists no solution for the problem currently.
There is currently a bug reported in LaunchPad and you can mark it as a problem that affects you. If your hardware differs from the one that is reported from the bug you may add a comment reporting your affected hardware.
Despite the pessimism of Rodrigo's very thorough answer, I suspect the majority of these cases are simply due to the default behaviour of usbmount or equivalent hotplug handlers to force writing to disk instead of caching. You should check whether
sync
is enabled for the device, e.g, by looking for the corresponding line fromcat /proc/mounts
. It may look something like:Note the
sync
flag. You need to prevent this from being set. If you mount manually you should change the fstab entry as in this answer. If it's automounted have a look in the output fromtail /var/log/syslog
just after plugging in and look for a line like:If it is being mounted by usbmount you can follow my advice in another answer and change the
MOUNTOPTIONS
line in/etc/usbmount/usbmount.conf
from:to
Well, there are various reasons why USB transfer is slow:
So if the stick is formatted as NTFS keep reading.
NTFS on Linux works a little different to most other filesystem drivers, and so data to be written to an NTFS filesystem actually goes through the CPU. For most filesystems, the CPU doesn't directly deal with the data to be written.
That's why writing to an NTFS formatted stick in Linux is slow, than writing to NTFS on Windows. So you could format your USB stick as Ext4 (Linux-only) or fat32 works both ways, but has a 4 GiB file size limitation.
I edited the /etc/usbmount/usbmount.conf on Ubuntu 15.10 server, removed the "sync" word from this line:
as mentioned before by Rodrigo Martins (big thx!).
It increased the write speed for a 480 mbps connected HDD from 2 Mbytes/sec to a constant 20 Mbytes/sec, ant it's constant and real, not "cached", not virtual speed. This drive writes about 30 Mbytes/sec on a Windows machine.
I don't know if this will help anyone else but it's what worked for me when I had problems with really slow transfer speeds using Ubuntu 13.04 (speeds of 1mb/s or less). Anyway I restarted my computer with my USB hdd plugged into the USB port right before Ubuntu started up it ran some script on the black screen just before it loads and after that my transfer speeds have been really good on the low end 24mb/s.