How to Make a macOS USB Installer: Step-by-Step Guide
In this article
Creating a bootable USB installer for macOS lets you install or reinstall macOS on multiple Macs without downloading the full installer each time, and it's essential for troubleshooting a Mac that won't start up normally. The process erases the USB drive completely, so back up any files on it first. You'll need a Mac running a compatible version of macOS, a USB flash drive with at least 16 GB capacity (some macOS versions require 16 GB or more), and the macOS installer app downloaded from the Mac App Store. The steps below use Apple's built-in createinstallmedia command, which is the official method and works with macOS Sierra and later.
What You'll Need
- A Mac running macOS Sierra (10.12) or later, with enough free disk space to download the installer (typically 12–20 GB).
- A USB flash drive with at least 16 GB capacity. Some macOS versions (like macOS Sequoia) may require a 16 GB drive; larger drives work but will be erased entirely.
- The macOS installer app downloaded from the Mac App Store. Do not move or rename it.
- An internet connection to download the installer if you haven't already.
- A backup of any data on the USB drive, as the process will erase it.
Step-by-Step
- Download the macOS installer. Open the Mac App Store, search for the macOS version you want (e.g., "macOS Sonoma", "macOS Ventura"), and click Get/Download. The installer downloads to your Applications folder. If you're on a newer macOS and need an older version, you may need to use a direct link from Apple's support pages or the
softwareupdatecommand in Terminal. - Insert your USB drive. Plug the USB flash drive into your Mac. Open Disk Utility (Applications > Utilities > Disk Utility) and confirm the drive appears in the sidebar. Note its name (e.g., "Untitled" or "USB Drive"). You can rename it to something simple like "MyUSB" to make the next steps easier.
- Erase the USB drive. In Disk Utility, select the USB drive (the top-level device, not just a volume), click Erase, choose "Mac OS Extended (Journaled)" as the format, and confirm. This wipes all data on the drive. If you prefer, you can skip this step because
createinstallmediawill erase it anyway, but erasing first can help avoid errors. - Open Terminal. Go to Applications > Utilities > Terminal.
- Run the createinstallmedia command. Type the following command, replacing
/Volumes/MyUSBwith the actual name of your USB drive (case-sensitive, with spaces escaped by backslashes if needed):sudo /Applications/Install\ macOS\ Sonoma.app/Contents/Resources/createinstallmedia --volume /Volumes/MyUSBPress Return. You'll be prompted for your administrator password (it won't show as you type). Then typeYto confirm you want to erase the drive. - Wait for the process to finish. The command copies the installer to the USB drive and makes it bootable. This can take 10–30 minutes depending on the drive speed and macOS version. Do not unplug the drive or interrupt Terminal.
- Verify and eject. When Terminal shows "Done", the drive is ready. You can quit Terminal and eject the USB drive safely from Finder. The drive will be renamed to something like "Install macOS Sonoma".
- Boot from the USB installer. To use it, restart your Mac while holding the Option (⌥) key until you see the startup manager. Select the USB installer, then follow the on-screen instructions to install macOS or use Disk Utility.
Common Mistakes
- Using a drive that's too small. A 8 GB drive won't work for most modern macOS versions; use 16 GB or larger.
- Renaming or moving the installer app. The
createinstallmediacommand expects the app to be in /Applications with its original name. If you rename it, adjust the path accordingly. - Not escaping spaces in the volume name. If your USB drive is named "My USB", you must write
/Volumes/My\ USBin Terminal. - Selecting the wrong volume. Make sure you specify the USB drive's volume, not your Mac's internal drive. Double-check the name in Disk Utility.
- Interrupting the process. Unplugging the drive or closing Terminal mid-copy can corrupt the installer and leave the drive unusable until reformatted.
- Downloading from untrusted sources. Only use the Mac App Store or Apple's official support pages to get the installer. Third-party downloads may be modified or contain malware.
Tips
- Use a USB 3.0 (or faster) drive for quicker copying and installation.
- Label your USB installer with the macOS version and date so you know which is which later.
- If you need to create installers for multiple macOS versions, use separate drives or erase and reuse one drive each time.
- Keep the installer app in /Applications until you've finished; you can delete it afterward to save space.
- For older macOS versions (before Sierra), the
createinstallmediamethod may not work; use the oldercreateinstallmediatool or third-party utilities like Diskmaker X (though check compatibility).
Troubleshooting
- "Volume is not a valid volume" error: Ensure the USB drive is formatted as Mac OS Extended (Journaled) and that you're pointing to the correct volume name. Try erasing the drive in Disk Utility first.
- "Command not found" or permission denied: Make sure you're using
sudoand that the path to the installer app is correct. You can drag the app into Terminal to auto-fill the path. - Process hangs or takes very long: Large installers and slow USB drives can take 30+ minutes. If it seems stuck for over an hour, check the drive with Disk Utility's First Aid, then try again with a different USB drive.
- Mac won't boot from the USB: Restart and hold Option (⌥) immediately. If the drive doesn't appear, try a different USB port (preferably one directly on the Mac, not a hub) or reset NVRAM (hold Command+Option+P+R at startup). Also ensure the drive is formatted with a GUID Partition Table (GPT) scheme.
- Installer app won't download: Check your internet connection and available disk space. Some older macOS versions are only available via direct download links from Apple's support site.
Frequently Asked Questions
- Can I use a USB drive larger than 16 GB? Yes, but the entire drive will be erased and formatted. Any extra space is not usable for other files while it's a macOS installer.
- Do I need to format the USB drive before running createinstallmedia? No, the command will erase and format it automatically. However, formatting it first as Mac OS Extended (Journaled) can sometimes prevent errors.
- How long does the process take? Typically 10–30 minutes, depending on the speed of your USB drive and the size of the macOS installer.
- Can I create a macOS installer on a Windows PC? No, the official
createinstallmediamethod requires a Mac. There are third-party tools, but they are not officially supported and may not work reliably. - Will this erase my Mac's internal drive? No, only the USB drive is erased. Your Mac's data is untouched unless you choose to erase it during the macOS installation.
- What if I need to install macOS on a Mac that won't start? A bootable USB installer is exactly for that. Boot from it, then use Disk Utility to repair or erase the internal drive before reinstalling macOS.