Sonntag, 24. Februar 2008

External USB-HD in full speed

Probably the first reason to create this blog. Something that has bugging me for quite a while. Solving linux problems, and forgetting about them, instead of sharing how to solve them.

I bought an external usb-harddisc Trekstor Datastation maxi m.u. On amazon.com it said it supports USB 2.0. I plugged it into my machine, and it was recognized and mounted immediately. But while copying some data onto it, I saw the transfer rates where 5 MBit/s which is really slow for a USB 2.0 connection. So I checked the connection to find out it's using USB 2.0. To find out about what protocol your usb devices are using, you can use usbview. There should be EHCI host controller(s) and in the drop down menu you should be able to find your harddisc. EHCI modules need to be loaded.

lsmod | grep ehci

will tell you.

So but if it's using USB 2.0 why are the transfer rates so low? The answer is because it's using a sync-ed connection, that is standard mount option in many current distributions. A

mount -o async /dev/sda1 /media/mountpoint


solved the problem. To not have to mount the HD every time you boot manually, the following entry in /etc/fstab will help.

/dev/sda1 /media/disk-1 ext3 async 0 0

Important is the 0 at the end of the line! It'll tell the computer to continue booting even if it's not hooked or if it would encounter any problems with the HD. You'll also need to replace ext3 by the file system you are using.

Keine Kommentare: