Creating a bootable macOS USB installer from a .dmg file is a common task for IT administrators and users performing clean installs on older Mac hardware.
Below is a comprehensive guide on how to achieve this. This guide assumes you have already acquired the macOS .dmg file and a USB drive (at least 16GB recommended).
A bootable USB created from a DMG is not just a recovery tool—it is a time machine for your sanity. While Apple now prefers internet recovery (Command+R), having a physical USB means you control the update cycle. You can install exactly the version you want, on exactly the machine you want, regardless of Apple's current signing servers.
Keep that USB in a drawer. You'll thank yourself next Tuesday when the spinning beach ball never goes away.
Before you begin:
.dmg file (e.g., Install_macOS_XYZ.dmg)createinstallmedia (Recommended)This method is reliable and works for OS X 10.7 through macOS 14+.
Step 1: Extract the Installer App
.pkg is inside, run it and install the "Install macOS.app" to /Applications..app is directly inside, copy it to /Applications.Step 2: Identify the USB Drive
diskutil list
/dev/disk2). Make absolutely sure—data loss will occur if wrong.Step 3: Erase and Format the USB Drive
diskutil eraseDisk JHFS+ "Untitled" /dev/diskX
(Replace diskX with your disk identifier, e.g., disk2)
Step 4: Run createinstallmedia
sudo /Applications/Install\ macOS\ Ventura.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled
(Adjust the app name to match your macOS version)
The process takes 10–30 minutes.
MyVolume (or any single word – you'll need it later)Mac OS Extended (Journaled)GUID Partition MapAfter creation, test the USB:
To verify from Terminal:
sudo asr imagescan --source /Volumes/Install\ macOS\ XXX/BaseSystem.dmg
While some tools can write DMG files directly, the most reliable method for creating a bootable drive often requires converting the DMG to an ISO image first.
hdiutil convert /path/to/source.dmg -format UDTO -o /path/to/output.cdr
.cdr to .iso for compatibility:
mv /path/to/output.cdr /path/to/output.iso
Rating: 3/5 Stars
For those comfortable with the command line, you can convert the DMG to a CDR/ISO, then DD it to the USB.
hdiutil convert /path/to/source.dmg -format UDTO -o /path/to/target.iso followed by dd if=target.iso of=/dev/diskX.If your DMG contains a macOS installer app (like Install macOS Monterey.app), you typically mount the DMG and use the built-in createinstallmedia utility. create mac os x bootable usb installer from dmg
Mount the DMG: Double-click the DMG file to mount it. Verify the name of the installer application inside.
Prepare the USB: Insert your USB drive and format it as Mac OS Extended (Journaled) using Disk Utility. Name it MyVolume.
Run the Command: Open Terminal and use the following syntax. Replace MyVolume with your USB name and the installer path with the actual path to the app inside the mounted DMG.
Example for macOS Monterey:
sudo /Volumes/Install\ macOS\ Monterey/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
Type your administrator password when prompted, type Y to confirm, and wait for the process to finish.
This is where novices erase their main hard drive. Do not guess. Creating a bootable macOS USB installer from a
/Applications/Utilities/Terminal.app).diskutil list
15.6 GB). It will likely be named disk2 or disk3 (not disk0 or disk1—those are your internal drives)./dev/disk2 (for example).