Create a bootable installer for macOS
You can use a USB flash drive or other secondary volume as a startup disk from which to install the Mac operating system. These steps are primarily for system administrators and other experienced users who are familiar with entering commands in Terminal.
Why use a bootable installer?
You don't need a bootable installer to upgrade macOS or reinstall macOS. However, a bootable installer can be useful when those or other macOS installation methods are unsuccessful, or when you want to install macOS on multiple computers without downloading the installer each time.
A creating a bootable installer is not the same as preparing an external storage device for use as a startup disk.
Download a full macOS installer from Apple
To get a full macOS installer:
Download macOS from the App Store or with your web browser using the download links and instructions in How to download and install macOS.
Download from a Mac that is compatible with the macOS you're downloading. If downloading an older macOS, you might need to create the bootable installer on an older Mac that is compatible with it.
Download from a Mac that is using the latest version of OS X El Capitan, or any later version of macOS. Find out which macOS your Mac is using.
Enterprise administrators: Download from Apple, not a locally hosted update server.
After downloading the installer:
Make sure that the installer is in the Applications folder of your startup disk. This is the folder that opens when you choose Go > Applications from the menu bar in the Finder. Move the installer into this folder, if necessary.
Make sure that the installer is named Install [Version Name], such as Install macOS Sequoia. It must be an installer app, not a disk image (.dmg) or package (.pkg) that contains the installer.
Connect a USB flash drive to your Mac
Connect a USB flash drive or other secondary volume to your Mac.
When you create the bootable installer, this volume will automatically be erased.
A 32GB USB flash drive has more than enough storage space for any macOS installer, and 16GB is enough for most earlier versions of macOS. If more space is needed, Terminal will let you know.
Use Terminal to create the bootable installer
Connect the USB flash drive directly to your Mac.
Open Terminal, which is in the Utilities folder of your Applications folder.
Depending on which macOS you downloaded, enter one of the following commands in Terminal. Each command assumes that the installer is in your Applications folder, and your USB flash drive is named MyVolume. If it has a different name, rename it or replace MyVolume in the command as needed.
Sequoia
sudo /Applications/Install\ macOS\ Sequoia.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
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
Catalina
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
Mojave
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
High Sierra
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
El Capitan
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app
When prompted, type your administrator password. Terminal doesn't show any characters as you type. Then press Return.
When prompted, type Y to confirm that you want to erase the volume, then press Return. Terminal shows the progress as the volume is erased. If Terminal can't erase successfully, use Disk Utility to erase the volume using Mac OS Extended (Journaled) format, then start again from the beginning.
If you see an alert that Terminal would like to access files on a removable volume, click OK to allow the copy to proceed.
When Terminal says that the install media is now available, the volume will have the same name as the installer, such as Install macOS Sequoia. You can now quit Terminal, eject the volume, and disconnect the USB flash drive.
Use the bootable installer
Follow the appropriate steps based on whether the Mac on which you’re installing macOS is a Mac with Apple silicon.
Mac with Apple silicon
Before you begin:
This Mac must be compatible with the macOS that you're installing. If it isn't, it might start up to a circle with a line through it.
This Mac must be able connect to the internet. A bootable installer doesn't download macOS, but it does need an internet connection to get firmware and other information for this Mac model.
Shut down or turn off the Mac.
Connect the bootable installer to the Mac.
Turn on the Mac and continue to hold the power button until you see the startup options window, which shows your bootable volumes, including the bootable installer.
Select the bootable installer, then click Continue.
When the macOS installer opens, follow the onscreen instructions.
Any other Mac
Before you begin:
This Mac must be compatible with the macOS that you're installing. If it isn't, it might start up to a circle with a line through it.
This Mac must be able to connect to the internet. A bootable installer doesn't download macOS, but it does need an internet connection to get firmware and other information for this Mac model.
Shut down or turn off the Mac.
Connect the bootable installer to the Mac.
Turn on the Mac, then immediately press and hold the Option (Alt) key.
Release the Option key when you see a dark screen showing your bootable volumes, including the bootable installer.
Select the bootable installer. Then click the onscreen arrow or press Return.
If you're using a Mac with the Apple T2 Security Chip and you can't start up from the bootable installer, make sure that Startup Security Utility is set to allow booting from external or removable media.
Choose your language, if prompted.
Select Install macOS (or Install OS X) from the Utilities window, then click Continue and follow the onscreen instructions.
Learn more
If the Mac you're using to create the bootable installer is using macOS Sierra or earlier, append --applicationpath
to your command, followed by the appropriate installer path, similar to what is shown at the end of the command for El Capitan.