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驱动器分区名称!