从零开始配置前端工作Mac(00. 用 U 盘制作启动盘重装 macOS 系统)

522 阅读2分钟

苹果官方教程:《如何创建可引导的 macOS 安装器》《如何升级至 macOS Monterey》《如何获取旧版 macOS》

下载系统镜像

制作U盘安装盘

  • 准备 8G 以上空U盘,依次打开 应用程序 → 实用工具 → 磁盘工具 ,选择插入的U盘,点击 抹掉 ,名称改为 MyVolume ,格式改为 macOS 扩展(日志式) ,点击 抹掉

  • 依次打开 应用程序 → 实用工具 → 终端 ,根据安装的系统,输入对应的代码,注意U盘名称一致。安装包路径可以打开文件夹的应用程序,选中下载的安装包,右键显示包内容,一直点到 createinstallmedia ,然后拖拽到终端,即获得完整路径。U盘路径同样可以使用拖拽方法找到,注意不要漏掉 sudo--volume 。回车执行命令后,会要求输入密码,密码的输入是看不到的,输完密码后回车即可。

    • Monterey
    sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
    
    • Big Sur
    sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
    
    • Catalina
    sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
    
    • Mojave
    sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
    
    • High Sierra
    sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
    
  • 运行结果

➜  ~ sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume

Password:

Ready to start.

To continue we need to erase the volume at /Volumes/MyVolume.

# 需要输入Y回车,允许擦掉U盘
If you wish to continue type (Y) then press return: Y

Erasing disk: 0%... 10%... 20%... 30%... 100%

# copy 的过程很长,耐心等待
Copying to disk: 0%... 10%... 20%... 30%... 40%... 50%... 60%... 70%... 80%... 90%... 100%

Making disk bootable...

Install media now available at "/Volumes/Install macOS Big Sur"

安装(M1芯片的略有不同)

  • Mac 重新启动后,立即按住 Option 键。
  • 当看到显示可引导宗卷的黑屏时,松开 Option 键。
  • 连接网络,选择包含可引导安装器的宗卷。然后点按向上箭头或按下回车键。 如果无法从可引导安装器启动,请确保 “启动安全性实用工具”中的“外部启动”设置 已设为允许从外部介质启动。
  • 使用 磁盘工具 对硬盘进行格式化。
  • 之后按提示操作即可。

如有错漏之处,敬请指正