Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gauravssnl/018db45c7998a7db1a21d176786fc7db to your computer and use it in GitHub Desktop.
Save gauravssnl/018db45c7998a7db1a21d176786fc7db to your computer and use it in GitHub Desktop.

How to create a Bootable Monterey ISO

set -e
set -u

# Create an empty
hdiutil create -o /tmp/empty -size 8400m -volname "Monterey" -layout SPUD -fs HFS+J

# Rename to .img since this isn't a compressed disk image
mv /tmp/empty.dmg /tmp/monterey.img

# Mount the empty disk image
hdiutil attach /tmp/monterey.img -noverify -nobrowse -mountpoint '/Volumes/Install macOS Monterey/'

# Create the installer image
sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --nointeraction --volume '/Volumes/Install macOS Monterey/'

# Detach the installer
hdiutil detach '/Volumes/Install macOS Monterey/'

# This is actually already in the correct format
mv /tmp/monterey.img monterey.iso

Thanks https://bootableinstaller.com/macos/#macos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment