Test hard disk speed on linux.

1. TEST Hard Disk WRITE Speed Using «dd» Command

$ sync; dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync; sync
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 11.1403 s, 96.4 MB/s

2.TEST Hard Disk READ Speed Using «dd» Command

$ dd if=tempfile of=/dev/null bs=1M count=1024

1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 36.1492 s, 29.7 MB/s

3. Clear The Linux Cache and accurately measure the Real READ Speed directly from the hard drive

$ sudo /sbin/sysctl -w vm.drop_caches=3
vm.drop_caches = 3

4. TEST Read/Write Speed of an External Hard Drive

$ sync; dd if=/dev/zero of=/media/user/MyUSB/tempfile bs=1M count=1024; sync

5. Check Hard Disk Performance Using «hdparm»

$ sudo hdparm -Tt /dev/sda

Be the first to comment

Leave a Reply