Techie Notes‎ > ‎

write speed test on drives (flash/sdhc or otherwise)

posted Apr 17, 2010 3:12 PM by Tedman Leung   [ updated Apr 17, 2010 3:34 PM ]
I need to put this command some where so I can find it in the future... so it's going to go right here :

time (dd count=1k bs=1M if=/dev/zero of=/media/HTC_G1/out.bin ; sync)

you need the sync in there to flush the buffer, then you need to calculate the time manually, i.e.

... 1073741824 bytes (1.1 GB) copied, 293.588 s, 3.7 MB/s ...
... real    4m56.374s ...

4*60+56 = 296 seconds
1073741824 bytes = 1024 MB
1024/296=3.45 MB / second (a.k.a. in sd card terms class 3.45 :) )