How to Create a Bootable USB Drive for Mac
In this article
Yes, you can create a bootable USB drive for a Mac to install or reinstall macOS, run diagnostics, or troubleshoot startup issues. This guide walks you through using Apple’s built-in tool, Terminal, with the correct macOS installer to format and create a bootable drive. You’ll need a USB flash drive with enough space and access to a working Mac to prepare it.
What You'll Need
- A USB flash drive with at least 16GB of storage (preferably 32GB)
- A Mac currently running the version of macOS you want to install (or a compatible one)
- Access to the macOS installer from the App Store (e.g., macOS Sonoma, Ventura, Monterey)
- About 30–60 minutes of uninterrupted time
Step-by-Step
- Back up any data on the USB drive—this process will erase everything on it.
- Connect the USB drive to your Mac.
- Open the App Store and download the macOS installer you want to use. Search for the version (e.g., macOS Sonoma) and click 'Get' or 'Download'. The installer will open automatically after download—quit it if it launches.
- Open Terminal, found in Applications > Utilities > Terminal.
- In Terminal, type the following command, leaving a space at the end:
sudo /Applications/Install\ macOS\ [Version].app/Contents/Resources/createinstallmedia --volume
Replace [Version] with the actual name of the installer (e.g., Sonoma, Ventura). If you’re unsure, check the exact name in the Applications folder. - After the command, add a space and then drag the USB drive’s name from the Finder sidebar into the Terminal window. This automatically fills in the correct path.
- Press Return to run the command. You’ll be prompted for your administrator password. Type it (no characters will appear as you type) and press Return.
- Confirm you want to erase the drive when prompted—type 'Y' and press Return.
- Wait while Terminal formats the drive and copies the installer files. This takes 20–60 minutes. Do not disconnect the USB or put the Mac to sleep.
- When complete, Terminal will display 'Copy complete. Done.' You can now quit Terminal.
- Eject the USB drive by right-clicking its icon on the desktop and selecting 'Eject', or dragging it to the Trash (which becomes an Eject icon).
Common Mistakes
- Using a USB drive with less than 16GB—this causes the process to fail midway.
- Typing the Terminal command incorrectly—especially missing backslashes or misnaming the installer app.
- Not quitting the macOS installer after download—leaving it open may interfere with the createinstallmedia tool.
- Interrupting the process—removing the USB or closing Terminal before completion corrupts the drive.
- Using a corrupted or incomplete macOS installer—always download directly from the App Store on a stable connection.
Tips
- Name your USB drive something simple like 'MyUSB' before starting—this makes it easier to identify in Terminal.
- Use a high-quality USB 3.0 or USB-C flash drive for faster performance.
- If you plan to install macOS on multiple Macs, keep the bootable drive for future use—it remains valid until Apple revokes the installer.
- Keep the bootable drive in a safe place; it’s a reliable recovery tool if your Mac won’t start.
- Always verify the integrity of the USB by testing it on another Mac if possible.
Troubleshooting
If the USB drive does not boot on your Mac:
- Restart the Mac and immediately hold the Option (⌥) key. This brings up the Startup Manager. If the USB appears, select it and press Return.
- If the drive doesn’t appear, restart and hold Command (⌘) + R to enter Recovery Mode. From there, choose 'Reinstall macOS' and see if the system detects the external drive.
- Reformat the USB drive using Disk Utility: Open Disk Utility, select the USB, click 'Erase', choose 'Mac OS Extended (Journaled)' or 'APFS' as the format, and 'GUID Partition Map' as the scheme. Then retry the Terminal command.
- Ensure your Mac supports the macOS version on the USB. For example, newer versions like Sonoma may not run on older Macs.
- Try a different USB port—preferably one directly on the Mac, not through a hub.
- If Terminal returns 'Resource busy', ensure no files from the USB are open and unmount it properly before retrying.
Frequently Asked Questions
Can I use a Windows PC to create a bootable macOS USB?
No, the createinstallmedia tool is macOS-only. You need a working Mac to create a bootable installer for Mac.
Will this erase my Mac’s internal drive?
No, creating the USB installer only erases the connected USB drive. Installing from it is a separate step and only affects the selected destination drive.
How do I boot from the USB drive?
Restart your Mac and hold the Option (⌥) key. Select the USB drive from the startup options and press Return.
Can I use the same USB to install different macOS versions?
No, each installer is separate. You must erase the drive and repeat the process for a different macOS version.
Why does the Terminal command fail with 'No such file or directory'?
This usually means the installer app name doesn’t match the command. Check the exact name in the Applications folder and ensure spaces are escaped with backslashes.
Is it safe to store other files on the bootable USB?
Not recommended. Adding other files may interfere with booting. Use a dedicated drive for the installer.