写测试
root@iMedia:/var# time dd if=/dev/zero of=/var/tmp/test bs=300k count=1024
1024+0 records in
1024+0 records out
314572800 bytes (315 MB) copied, 14.9676 s, 21.0 MB/s
real 0m15.158s
user 0m0.010s
sys 0m5.570s
读测试
root@iMedia:/var# time dd if=/var/tmp/test of=/dev/null bs=300k
1024+0 records in
1024+0 records out
314572800 bytes (315 MB) copied, 15.1364 s, 20.8 MB/s
FlashSofttekiMacBook-Proesktop flashsoft$ sudo time dd bs=1m if=geekpi-lite-256+512.img of=/dev/rdisk1
3781+1 records in
3781+1 records out
3965190144 bytes transferred in 157.401870 secs (25191506 bytes/sec)
157.41 real 0.01 user 2.63 sys
FlashSofttekiMacBook-Proesktop flashsoft$
Last login: Sat Dec 29 13:13:41 on ttys000
FlashSofttekiMacBook-Pro:~ flashsoft$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Mac 240.7 GB disk0s2
3: Microsoft Basic Data Windows 10.0 GB disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *7.9 GB disk1
1: Windows_FAT_32 78.6 MB disk1s1
2: Linux 3.9 GB disk1s2
FlashSofttekiMacBook-Pro:~ flashsoft$ sudo diskutil umount /dev/disk1s1
Password:
Volume (null) on disk1s1 unmounted
FlashSofttekiMacBook-Pro:~ flashsoft$ cd Desktop/
FlashSofttekiMacBook-Proesktop flashsoft$ sudo time dd bs=1m if=geekpi-lite-256+512.img of=/dev/rdisk1
3781+1 records in
3781+1 records out
3965190144 bytes transferred in 157.401870 secs (25191506 bytes/sec)
157.41 real 0.01 user 2.63 sys
FlashSofttekiMacBook-Proesktop flashsoft$