1 从appstore下载最新的 MacOS High Sierra 下载完成后先不要安装
2 格式化U盘
格式化后 名称设为 HighSierra
3
在控制台执行 命令
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/HighSierra --applicationpath /Applications/Install\ macOS\ High\ Sierra.app —nointeraction
执行完成后 如遇到这样的提示(If you wish to continue type (Y) then press return: Y) 再输入Y 后等待 10 到20分钟即可安装完毕
localhost:Install macOS High Sierra.app tiantao$ sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/HighSierra --applicationpath /Applications/Install\ macOS\ High\ Sierra.app —nointeraction
Ready to start.
To continue we need to erase the volume at /Volumes/HighSierra.
If you wish to continue type (Y) then press return: sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/HighSierra --applicationpath /Applications/Install\ macOS\ High\ Sierra.app —nointeraction
Operation canceled.localhost:Install macOS High Sierra.app tiantao$ sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volum --applicationpath /Applications/Install\ macOS\ High\ Sierra.app —nointeraction
Ready to start.
To continue we need to erase the volume at /Volumes/HighSierra.
If you wish to continue type (Y) then press return: Y
Erasing Disk: 0%... 10%... 20%... 30%...100%...
Copying installer files to disk...
Copy complete.
Making disk bootable...
Copying boot files...
Copy complete.
Done.
localhost:Install macOS High Sierra.app tiantao$
4 安装完后的效果如图
系统的安装
插入U盘, 在启动的过程中 一直 点击 option 键 即可进入安装系统界面 后续工作按提示 重装系统 或者格式化 磁盘后 再重装即可.
对于10.14系统以上的安装
用上述命令会提示警告
WARNING: "--applicationpath" is deprecated in macOS 10.14 and greater. Please remove it from your invocation.
去掉--applicationpath 即可
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/HighSierra /Applications/Install\ macOS\ Catalina.app —nointeraction