Mac下dd命令制作Centos USB启动盘

时间:2023-01-26 16:10:18

最近想用装一台Centos系统来使用,下载好系统后,发现了dd这个强大的命令,可用于将系统写入USB来实现从U盘启动,现将其使用步骤记录一下

查看 Mac 下所有的 disk

diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
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
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD *249.8 GB disk1
Logical Volume on disk0s2
97E6F602-9BE4-491D-BEB1-C33959B22B81
Unencrypted
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *41.9 MB disk2
1: Apple_HFS Adobe Flash Player I... 41.9 MB disk2s1
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *8.2 GB disk3
1: DOS_FAT_32 8.2 GB disk3s1

解除U盘的挂载

diskutil unmountDisk /dev/disk3

用 dd 命令将 iso 写入

sudo dd if=/Users/jpuyy/Downloads/CentOS-7.0-1406-x86_64-Minimal.iso of=/dev/disk3 bs=4m