最近想用装一台 Centos 系统来使用,下载好系统后,发现了 dd 这个强大的命令,可用于将系统写入 USB 来实现从 U 盘启动,现将其使用步骤记录一下
查看 Mac 下所有的 disk
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| diskutil list /dev/disk0 0: GUID_partition_scheme *251.0 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_CoreStorage 250.1 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3 /dev/disk1 0: Apple_HFS Macintosh HD *249.8 GB disk1 Logical Volume on disk0s2 97E6F602-9BE4-491D-BEB1-C33959B22B81 Unencrypted /dev/disk2 0: GUID_partition_scheme *41.9 MB disk2 1: Apple_HFS Adobe Flash Player I... 41.9 MB disk2s1 /dev/disk3 0: FDisk_partition_scheme *8.2 GB disk3 1: DOS_FAT_32 8.2 GB disk3s1
|
解除 U 盘的挂载
1
| diskutil unmountDisk /dev/disk3
|
用 dd 命令将 iso 写入
1
| sudo dd if=/Users/jpuyy/Downloads/CentOS-7.0-1406-x86_64-Minimal.iso of=/dev/disk3 bs=4m
|