Skip to content

Instantly share code, notes, and snippets.

@patrickgill
Last active January 8, 2021 16:43
Show Gist options
  • Save patrickgill/9df52af90ea6ec6cdde6195ea9036df5 to your computer and use it in GitHub Desktop.
Save patrickgill/9df52af90ea6ec6cdde6195ea9036df5 to your computer and use it in GitHub Desktop.
Make a MacOS .iso from an installer
from https://www.geekrar.com/create-macos-catalina-iso-file/
Catalina example
Create a DMG Disk Image
hdiutil create -o /tmp/Catalina -size 8500m -volname Catalina -layout SPUD -fs HFS+J
Mount it to your macOS
hdiutil attach /tmp/Catalina.dmg -noverify -mountpoint /Volumes/Catalina
Create macOS Catalina Installer
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/Catalina --nointeraction
Unmount Catalina Disk
hdiutil detach /volumes/Install\ macOS\ Catalina
Convert the DMG file to an ISO file
hdiutil convert /tmp/Catalina.dmg -format UDTO -o ~/Desktop/Catalina.cdr
Rename to iso
mv ~/Desktop/Catalina.cdr ~/Desktop/Catalina.iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment