MacOS create bootable dvd

From campisano.org
Jump to navigation Jump to search

Create a Bootable ISO image of MacOS

Open Terminal and run the follow commands:

sudo -s    # will ask for the user password
hdiutil create -o /tmp/HighSierra.cdr -size 5200m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
/Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build.    # answer Y to the question
hdiutil detach /Volumes/Install\ macOS\ High\ Sierra
hdiutil convert /tmp/HighSierra.cdr.dmg -format UDTO -o ~/Desktop/HighSierra.iso
mv ~/Desktop/HighSierra.iso.cdr ~/Desktop/HighSierra.iso
rm -f /tmp/HighSierra.cdr.dmg
exit

References