Skip to content

Instantly share code, notes, and snippets.

@memoryleak
Last active May 1, 2024 12:38
Show Gist options
  • Save memoryleak/30f275beebe28595d736eb2b380a0fa9 to your computer and use it in GitHub Desktop.
Save memoryleak/30f275beebe28595d736eb2b380a0fa9 to your computer and use it in GitHub Desktop.
Create a Mac OS Monterey ISO file from the official installation DMG file
#!/usr/bin/env bash
sudo hdiutil create -o /tmp/Monterey -size 16g -volname Monterey -layout SPUD -fs HFS+J
sudo hdiutil attach /tmp/Monterey.dmg -noverify -mountpoint /Volumes/Monterey
sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/Monterey --nointeraction
hdiutil eject -force /Volumes/Install\ macOS\ Monterey
hdiutil convert /tmp/Monterey.dmg -format UDTO -o ~/Downloads/Monterey
mv -v ~/Downloads/Monterey.cdr ~/Downloads/Monterey.iso
sudo rm -fv /tmp/Monterey.dmg
board-id = "Mac-551B86E5744E2388"
hw.model.reflectHost = "FALSE"
hw.model = "MacBookPro14,3"
serialNumber.reflectHost = "FALSE"
serialNumber = "C02XXXXXX153"
smbios.reflectHost = "FALSE"
efi.nvram.var.ROM.reflectHost = "FALSE"
efi.nvram.var.MLB.reflectHost = "FALSE"
efi.nvram.var.ROM = "3c0754a2f9be"
@patech120
Copy link

Thank you!

@rold64
Copy link

rold64 commented Jan 3, 2023

Excellent!! Just what i needed.
Thank you.

@apjanke
Copy link

apjanke commented Jan 14, 2024

Me too! Thanks!

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