- 查看u盘挂载位置
➜ ~ diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_CoreStorage Macintosh HD 250.0 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD +249.7 GB disk1
Logical Volume on disk0s2
A49055F0-BF95-473D-8454-DEFB279E4D5C
Unencrypted
/dev/disk3 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *15.7 GB disk3
1: Windows_FAT_32 NO NAME 15.7 GB disk3s1
- umount 卸载u盘
➜ ~ sudo diskutil unmountDisk /dev/disk3
Unmount of all volumes on disk3 was successful
3、将镜像写入U盘
➜ ~ sudo dd if=/Volumes/ExtraData/System/CentOS-6.7-x86_64-bin-DVD1.iso of=/dev/disk3 bs=1m
3715+0 records in
3715+0 records out
3895459840 bytes transferred in 138.002629 secs (28227432 bytes/sec)
4、写入过程中没有提示,可以使用iostat命令查看磁盘写入状态
根据disk3的MB/s
可以看到正在写入磁盘
➜ ~ iostat -w 2
disk0 disk2 disk3 cpu load average
KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us sy id 1m 5m 15m
32.70 116 3.72 60.41 0 0.02 4.17 4 0.02 12 8 80 3.56 3.14 2.74
4.80 7 0.04 512.00 50 24.97 4.00 6233 24.35 3 31 66 3.56 3.14 2.74
0.00 0 0.00 512.00 48 23.98 4.00 6091 23.79 1 31 68 3.35 3.10 2.73
0.00 0 0.00 512.00 48 23.99 4.00 6322 24.69 1 30 69 3.35 3.10 2.73
0.00 0 0.00 512.00 51 25.49 4.00 6599 25.78 2 30 69 3.35 3.10 2.73
8.57 7 0.06 512.00 52 25.93 4.00 6563 25.64 2 29 69 3.25 3.08 2.73
5.69 13 0.07 512.00 56 27.98 4.00 7239 28.28 4 27 69 3.25 3.08 2.73
8.45 31 0.26 488.32 51 24.51 4.00 6344 24.78 2 29 69 3.15 3.06 2.72
21.17 89 1.84 512.00 53 26.49 4.00 6710 26.21 2 27 71 3.15 3.06 2.72
6.00 9 0.05 512.00 60 29.98 4.00 7447 29.09 2 25 73 3.15 3.06 2.72
9.00 4 0.04 512.00 60 29.99 4.00 7908 30.89 1 24 75 3.05 3.05 2.72