How to Create a USB Installer for Mac
In this article
If you need to install macOS on a Mac that will not boot, or you want a clean install without downloading the installer again on every machine, a bootable USB installer is the tool you want. You download the macOS installer from the App Store, format a USB drive with Disk Utility, and then run a single Terminal command that copies the installer onto the drive and makes it bootable. The whole process takes about 30 to 60 minutes depending on your internet speed and the speed of the USB drive. The steps below cover macOS Sonoma and Ventura, and the same approach works for Monterey and Big Sur with the matching command. The result is a drive you can plug into any compatible Mac, hold Option at startup, and use to erase a disk and install a fresh copy of macOS.
What You'll Need
- A USB flash drive with at least 16 GB of capacity for Sonoma, Ventura, Monterey or Big Sur. Some older installers fit on 8 GB, but 16 GB is the safe minimum and 32 GB avoids surprises.
- A Mac running a version of macOS that can open the App Store and download the installer. The Mac you use to build the drive does not have to be the Mac you install onto.
- A stable internet connection. The installer is several gigabytes, so a wired connection or a strong Wi-Fi signal saves time.
- An administrator account on the Mac you are using, because both Disk Utility and the Terminal command need admin rights.
- About an hour of free time, and a backup of anything important on the target Mac before you erase it.
Step-by-Step
- Back up the USB drive's contents. Formatting erases everything on the drive. Copy any files you want to keep to another location first.
- Download the macOS installer. Open the App Store, search for the macOS version you want (for example "macOS Sonoma"), and click Get or Download. When the download finishes, the installer opens automatically. Quit it with Command-Q. Do not drag it to the Trash, because that deletes the installer you just downloaded.
- Confirm the installer is in Applications. Open Finder, go to Applications, and look for a file named something like "Install macOS Sonoma.app". The Terminal command in step 6 expects the installer to be in that folder, and the name must match exactly.
- Plug in the USB drive. Use a port on the Mac itself rather than a hub if possible. A hub can drop the connection mid-write and corrupt the drive.
- Erase and format the drive with Disk Utility. Open Disk Utility (Applications > Utilities > Disk Utility), select the USB drive in the sidebar, and click Erase. Choose the scheme GUID Partition Map, the format Mac OS Extended (Journaled), and give it a simple name such as "MyVolume". Click Erase and wait for it to finish.
- Open Terminal and run the createinstallmedia command. Open Terminal (Applications > Utilities > Terminal) and paste the command for your macOS version, replacing MyVolume with the name you gave the drive:
- Sonoma:
sudo /Applications/Install\ macOS\ Sonoma.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume - Ventura:
sudo /Applications/Install\ macOS\ Ventura.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume - Monterey:
sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume - Big Sur:
sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
- Sonoma:
- Confirm the erase prompt. Terminal warns that the volume will be erased and asks you to type Y to continue. Type Y and press Return. The drive is now being written, and this can take 20 to 40 minutes.
- Wait for the done message. When Terminal prints "Done", the drive is bootable. You can quit Terminal and eject the drive from Finder.
- Boot from the drive. Shut down the target Mac, plug in the USB drive, and hold the Option key while pressing the power button. Release Option when you see the startup disk picker, then choose the installer volume and follow the on-screen steps.
Common Mistakes
The most frequent failure is a path typo. The installer name in the Terminal command must match the app in Applications character for character, including the version number and spacing. If the app is named "Install macOS Sonoma.app" and your command says "Install macOS 14.app", Terminal returns "No such file or directory". Copy the name from Finder and paste it into the command rather than retyping it.
Another common error is using the wrong volume name. The --volume /Volumes/MyVolume part must match the name you gave the drive in Disk Utility. If you named it "USB" and the command says "MyVolume", the command fails or writes to the wrong place. Check the name in Finder under Locations before you run the command.
People also forget to quit the installer after downloading. If the installer is still running, the app may be locked and the command can fail. Quit it with Command-Q, and if it keeps reopening, move the app to a different folder temporarily and move it back after the drive is built.
Finally, a USB drive that is too small or formatted with the wrong scheme causes problems. Use at least 16 GB and GUID Partition Map. A drive formatted as Master Boot Record may not appear in the startup picker on newer Macs.
Tips
Use a USB 3.0 or faster drive. A slow USB 2.0 stick can turn a 30-minute job into an hour or more, and the write is more likely to time out.
Keep the installer app in Applications until the drive is finished. Moving it to an external drive or renaming it breaks the command path.
Label the drive physically with a piece of tape and the macOS version, so you know what is on it months later. A drive built for Sonoma will not install Ventura.
If you build installers regularly, keep a spare 32 GB drive formatted and ready. Downloading the installer is the slow part, and having a second drive means you can rebuild without hunting for hardware.
Test the drive on the Mac you plan to install onto before you erase anything. Booting to the installer and reaching the disk utility screen confirms the drive works, and you can back out without changing the target disk.
Troubleshooting
Terminal says "command not found" or "No such file or directory". The installer path is wrong. Confirm the app is in Applications and that its name matches the command exactly. Drag the app into Terminal after typing sudo and a space to insert the correct path automatically.
The drive does not appear in the startup picker. Shut down fully rather than restarting, plug the drive directly into the Mac, and hold Option from the moment you press power. If it still does not appear, the drive may have been formatted with the wrong scheme; rebuild it with GUID Partition Map.
The write fails partway through with an I/O error. The USB drive may be failing or the connection dropped. Try a different port, a different cable if you use an adapter, and a different drive. Erase the drive again before retrying.
The installer downloads but will not open or says it is damaged. Delete the partial download and download again from the App Store. A interrupted download is the usual cause, and the App Store verifies the file when it completes.
The Mac boots from the drive but the installer cannot see the internal disk. Open Disk Utility from the installer's Utilities menu and check whether the internal drive appears. If it does not, the drive may have failed or the Mac may need a firmware update, which you can check on Apple's support site.
Frequently Asked Questions
Can I use a USB drive smaller than 16 GB? Some older installers fit on 8 GB, but Sonoma, Ventura, Monterey and Big Sur need at least 16 GB. A 32 GB drive is the safer choice and leaves room for future versions.
Will building the installer erase my Mac? No. The command only erases the USB drive you name. Your Mac's internal disk is untouched unless you later choose to erase it during installation.
Do I need the same macOS version on the Mac I build the drive with? No. You can download and build an installer for a different macOS version than the one you are running, as long as the App Store offers it for your account.
Can I reuse the USB drive afterward? Yes. Erase it with Disk Utility and format it as ExFAT or Mac OS Extended to use it for regular file storage again.
Why does Terminal ask for my password? The sudo prefix runs the command with administrator rights, which are required to write to a raw disk. The password is your Mac login password and is not displayed as you type.
Does this work on Apple silicon Macs? Yes. The same createinstallmedia command works on Apple silicon and Intel Macs, and the resulting drive boots both where the macOS version supports the hardware.