macOS Big Sur
sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/BigSur
macOS Catalina
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/Catalina
macOS Mojave
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/Mojave
macOS High Sierra
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/HighSierra
macOS Sierra 10.12.6.06通過命令行制作U盤啟動盤報錯
/Volumes/Sierra is not a valid volume mount point.
解決辦法
sudo sed -i '' -e 's/12.6.06/12.6.03/' /Applications/Install\ macOS\ Sierra.app/Contents/Info.plist
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Sierra --applicationpath /Applications/Install\ macOS\ Sierra.app
OS X El Capitan
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/Capitan --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app
注意:
本示例中
/Volumes/BigSur谋作,/Volumes/Catalina芋肠,/Volumes/Mojave,/Volumes/HighSierra遵蚜,/Volumes/Sierra帖池,/Volumes/Capitan分別為USB驅(qū)動器分區(qū)名稱!