How to Test USB Mass Storage Device Read/Write Speed ?

Following description show how to test linux usb mass-storage drivers/devices

Simple mass-storage bench-marking –

Mount usb mass-storage device at /mnt/usb (Note: for embedded target, you may need to use “su” to switch to root user for necessary mount permissions OR For desktop, you will need to use sudo)

$ sudo mount /dev/sdb1 /mnt/usb

Use dd command to create a temporary file inside mounted drive as,

Subscribe with Valid Email Id to receive updates in Inbox. ( Secured by Google FeedBurner )


$ time dd if=/dev/zero of=/mnt/usb/testfile bs=1024k count=10000

Above command will create a 10GB File into USB Drive and using “time” command we will know the time required to create ( which is any way write) 10GB file and using this statistics we can identify the write speed of the USB drive which we wanted to test.

Related :   Understanding sysfs and USB

Alternatively, to know the “Read Speed” you can copy the create 10GB file from USB drive to your local Ubuntu desktop/laptop.

 $ sudo time cp -r /mnt/usb/testfile $PWD 

Reference –


Leave a Comment

Android Android Build system Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development & Build Development, Debugging and Performance Tools Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web design and development Website Hosting Wordpress Yocto / Bitbake / Openembedded