Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using Ubuntu 12.04 . I am here to know is there any way to observe Writing & Reading Speed of the USB through the terminal .

share|improve this question
add comment

3 Answers 3

up vote 3 down vote accepted

You can use rsync to give an approximation of your transfer speed, although it will vary depending on whether small or large files are being transferred and whether the destination is a slow flash drive or a fast external hard disk. For example:

rsync -avviu ~/Videos /media/Mik2

sent 874419803 bytes  received 149 bytes  4427442.79 bytes/sec
total size is 874312527  speedup is 1.00

(Also, if you open tail -f /var/log/kern.log and then connect your device you can see whether it is being set up for ehci (enhanced host controller interface), which supports USB 2 speeds. For example, the kernel log should state 'new high-speed USB device...using ehci_hcd'.)

share|improve this answer
add comment

The pv tool allows you to view the throughput of the data flowing through it. After installing the package, you could run a command like the following to see the write rate:

$ cat /dev/zero | pv > /media/some_usb/tmp123

203.1MiB 0:00:02 [100.2MiB/s] [ <=>                   ]

For reading, perform the opposite operation using the newly-created tmp123 file:

$ cat /media/some_usb/tmp123 | pv > dev/null
share|improve this answer
add comment

Try with this:

$ sudo lsusb -vvv

Then, have a look at the entries named bDeviceProtocol and bInterfaceProtocol

share|improve this answer
    
" bInterfaceProtocol 80 Bulk-Only " " bDeviceProtocol 0 " means what ? But this answer not suitable to My Question .Thank you ,:) –  AgentCool Jul 11 '12 at 16:40
    
Did you use the -vvv option? In my computer, there is a description associated to the 0 value: "0 Full speed (or root) hub" –  jap1968 Jul 11 '12 at 16:44
    
pastebin.com/z2ESbyZL –  AgentCool Jul 11 '12 at 16:46
    
You are right. This information seems to appear only on some devices. –  jap1968 Jul 11 '12 at 16:54
    
thank you amigo –  AgentCool Jul 11 '12 at 16:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.