Mac 下使用dd命令制作Centos USB启动盘
Opened this issue · 0 comments
gaowei1012 commented
1.挂载U盘
首先我们要挂载U盘,把U盘插入电脑,在终端下输入以下命令:
diskutil list
系统输出如下:
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 121.1 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +121.1 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 78.4 GB disk1s1
2: APFS Volume Preboot 60.6 MB disk1s2
3: APFS Volume Recovery 1.0 GB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *8.2 GB disk2
1: Windows_FAT_32 CPBA_X64FRE 8.2 GB disk2s4
可以看到,上面的/dev/disk2就是我们U盘的挂载点。
2.解挂U盘
接下来我们先ummount这个U盘,命令如下:
diskutil unmountDisk /dev/disk2
3.写入系统镜像到U盘
接下来我们要开始将镜像文件写入到U盘中去,命令如下:
dd if=/Users/apple/Downloads/CentOS-7-x86_64-DVD-1810.iso of=/dev/disk2 bs=4m
4.完成
等待中....
1094+0 records in
1094+0 records out
4588568576 bytes transferred in 628.562967 secs (7300094 bytes/sec)