制作macOS Monterey光盘映像.iso安装文件

点击获取 macOS Monterey
或App Store直接搜索macOS Monterey

下载最新版本的macOS,下载完成后出现如下页面,此时

不要点击继续安装!!!
不要点击继续安装!!!
不要点击继续安装!!!
打开终端后的操作截图如下:

具体步骤:

  1. 创建大小为13800m的dmg文件,具体大小根据下载的系统文件而定,Monterey的安装包大小为12.27 GB,但是我尝试后需要13800m才能满足安装,不然会在步骤3时报错,可根据提示信息自行增大文件大小


hdiutil create -o /tmp/Monterey.cdr -size 13800m -layout SPUD -fs HFS+J
  1. 挂载上面新建的dmg镜像到虚拟磁盘,载点为install_build,之后会使用,需要对应
hdiutil attach /tmp/Monterey.cdr.dmg -noverify -mountpoint /Volumes/install_build
  1. 将下载的系统安装文件写入磁盘
sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
  1. 命令行提示输入密码,输入后直接按回车,询问是否继续,键入“Y”继续
    If you wish to continue type (Y) then press return: Y
  2. 安装文件制作完成后,移动至桌面:
mv /tmp/Monterey.cdr.dmg ~/Desktop/InstallSystem.dmg
  1. 从驱动器中弹出刚制作好的安装盘:
hdiutil detach /Volumes/Install\ macOS\ Monterey\/   

如果弹出失败,自己手工在桌面上的安装盘图标上右键,选择强制推出,安装盘弹出后,后续的操作才能顺利执行。

  1. 将DMG格式的安装盘转换为cdr格式:
hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/macOS.Monterey
  1. 将cdr格式的光盘镜像文件转为ISO格式:
cd ~/Desktop/
 mv macOS.Monterey.cdr macOS.Monterey.iso

至此全部完成,经过测试,桌面上的macOS.Monterey.isoInstallSystem.dmg均可以用来加载在VMWare虚拟机光驱中安装苹果系统,亦可以用来制作U盘安装盘。

注意:整个步骤中所使用的文件名称都要一一对应,自行修改某个文件名时,后续步骤所使用的命令也一定要变。

你可能感兴趣的:(制作macOS Monterey光盘映像.iso安装文件)