Results 1 to 7 of 7

Thread: USB Flash speed

  1. #1
    Join Date
    Nov 2012
    Beans
    3

    USB Flash speed

    hi! How can i test usb flash speed (write/read) in linux ?

  2. #2
    Join Date
    May 2009
    Location
    Indiana
    Beans
    1,971
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: USB Flash speed

    Don't know about write speed, but you can test read speed like this:

    Use this command to determine the device address of your drive:
    Code:
    sudo fdisk -l
    Then issue:
    Code:
    sudo hdparm -t /dev/sda1
    replacing /dev/sda1 with the address of the flash drive.

    Edit: If the drive is empty, you can use Disk Utility (installed by default) to Benchmark the drive.

    Edit 2: "Empty" as in absolutely nothing on the drive, including partition table. This can be achieved with Disk Utility, as well.
    Last edited by newb85; November 15th, 2012 at 01:14 PM.
    Jane, stop this crazy thing!

  3. #3
    Join Date
    Nov 2012
    Beans
    3

    Re: USB Flash speed

    thank you i will try

  4. #4
    Join Date
    Nov 2012
    Beans
    3

    Re: USB Flash speed

    it doesn`t work or maybe i can`t do it ... first i open console with ctrl +alt +f1 than i write
    Code:
    sudo fdisk -l
    sudo hdparm -t /dev/media/traxdata
    ( /media/traxdata -adress of the flash drive)...
    i found code for write test but i dont know how to work with this code ...
    Create a file system, if necessary:
    Code:
    $ sudo mkfs.vfat /dev/sdb1
    Test:
    Code:
    $ sudo mount /dev/sdb1 /media/misc
    $ sudo dd count=100 bs=1M if=/dev/zero of=/media/misc/testfile.raw oflag=sync
    Last edited by temida; November 17th, 2012 at 02:43 PM.

  5. #5
    Join Date
    May 2009
    Location
    Indiana
    Beans
    1,971
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: USB Flash speed

    Instead of
    Code:
    sudo hdparm -t /dev/media/traxdata
    you should have used
    Code:
    sudo hdparm -t /media/traxdata
    As a side note, when you are posting terminal commands or output, you should highlight it in the post composition frame and click the "#" button above the frame to wrap it in [CODE] tags. It makes posts more readable.
    Jane, stop this crazy thing!

  6. #6
    Join Date
    Jun 2007
    Location
    Hikkaduwa, Sri Lanka
    Beans
    3,449
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: USB Flash speed

    Copy a one gig file to the flash drive, how long did that take?
    Copy a one gig file from the flash drive, how long did that take?
    Divide one thousand by your answers and that will give the write and read speeds in MB/s .

  7. #7
    Join Date
    Mar 2008
    Location
    Osijek, Croatia
    Beans
    24

    Re: USB Flash speed

    I made a detailed blog post regarding this topic:
    http://kernelreloaded.blog385.com/in...mory-on-linux/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •