Step 1
Download macOS Installer (InstallAssistant.pkg
). Here is the link to Sonoma beta installer:
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
https://macpaw.com/how-to/create-iso-file
https://osxdaily.com/2020/07/20/how-convert-macos-installer-iso/
Step 5 opens a file called createinstallmedia. The pathway to that file may vary depending on which version of InstallAssistant.pkg you download.
This path:
sudo /Applications/Install\ macOS\ Sonoma.app/Contents/Resources/createinstallmedia
works for the InstallAssistant.pkg downloaded from the link in Step 1.
You can also get to it this way:
sudo "/Applications/Install macOS Sonoma.app/Contents/Resources/createinstallmedia"
which does not look all mangled with the two escape characters as seen in the first line.
The best way to get to createinstallmedia is to use your tab key to autocomplete commands, like this:
sudo /App[TAB]/In[TAB]/Con[TAB/]Re[TAB]/crea[TAB]
Yes, step two is a funny one to try to explain. You just have to know to step through the install procedure until the "Install macOS Sonoma.app" file is copied to the Application folder.
BTW I use iTerm2 instead on MacOS terminal.