Skip to content

Instantly share code, notes, and snippets.

@jpluimers
Forked from itsmikita/macos-iso.md
Created October 31, 2024 10:43
Show Gist options
  • Save jpluimers/bf0563bbe9074d481247991a0ea27414 to your computer and use it in GitHub Desktop.
Save jpluimers/bf0563bbe9074d481247991a0ea27414 to your computer and use it in GitHub Desktop.
Extract ISO image from macOS Somona installer

Extract ISO Image from a macOS installer

Step 1

Download macOS Installer (InstallAssistant.pkg). Here is the link to Sonoma beta installer:

https://swcdn.apple.com/content/downloads/14/54/042-41491-A_WCZEM7L2US/b5eeeylcnmf82ycto51pvy0klcyzd02on8/InstallAssistant.pkg

Step 2

Run InstallAssistant.pkg by double-clicking on it. This will move Install macOS Sonoma beta.app to /Applications folder.

Step 3

Create a new DMG file, open Terminal and run:

hdiutil create -o /tmp/Somona -size 16000m -volname Somona -layout SPUD -fs HFS+J

The above command will create a 16GB DMG file called Somona in /tmp folder

Step 4

Mount the DMG file we just created:

hdiutil attach /tmp/Somona.dmg -noverify -mountpoint /Volumes/Somona

Step 5

Use createinstallmedia to create the macOS installer on the mounted volume:

sudo /Applications/Install\ macOS\ Sonoma\ beta.app/Contents/Resources/createinstallmedia --volume /Volumes/Somona

Step 6

Unmount the volume we've just created:

sudo hdiutil detach /Volumes/Install\ macOS\ Sonoma\ beta

Step 8

Convert the DMG disk image file to an ISO disk image file (technically a CDR file):

sudo hdiutil convert /tmp/Somona.dmg -format UDTO -o ~/tmp/Somona.cdr

Step 9

Finally rename the CDR file to ISO:

sudo mv ~/tmp/Somona.cdr ~/tmp/Somona.iso

Links & Resources

https://macpaw.com/how-to/create-iso-file

https://osxdaily.com/2020/07/20/how-convert-macos-installer-iso/

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