Installing macOS on an external hard drive transforms your Mac into a versatile workstation or a bootable rescue system, providing a clean environment for development or a safety net for troubleshooting. This process requires careful preparation to ensure compatibility with Apple’s security protocols and the hardware architecture of your Mac. The following steps outline a reliable method to create a bootable external macOS installer without relying on third-party tools that might compromise system integrity.
Understanding the Requirements and Limitations
Before initiating the installation, it is essential to verify that your hardware supports the target macOS version. Apple Silicon (M1, M2, etc.) and Intel Macs handle the installation process differently, particularly regarding external drives. The external drive must be formatted with a GUID Partition Map (GPT) scheme and use the APFS or Mac OS Extended (Journaled) file system. Furthermore, the macOS installer must be downloaded from the App Store, as the createinstallmedia command relies on the local copy of the app to access the installation assets.
Drive Capacity and Speed Considerations
While macOS requires a minimum of 128GB to install, a 256GB or 512GB external solid-state drive (SSD) is recommended for a practical user experience. USB 3.0 or Thunderbolt connectivity is crucial to reduce installation time and ensure smooth operation post-installation. Mechanical hard drives (HDDs) are generally not suitable due to insufficient read/write speeds, which result in significant lag when running the operating system.
Preparing the External Drive
Disk Utility on macOS provides the necessary tools to format the drive correctly. This step erases all existing data on the target drive, so ensure that no important files remain on the device. The goal is to create a single partition that the Mac can recognize as a valid startup volume.
Step-by-Step Formatting
Connect the external hard drive to your Mac using a high-speed port.
Open Disk Utility, located in the Applications > Utilities folder.
Select the external drive from the sidebar and click the "Erase" button.
Set the name to "Untitled" or "InstallDrive" and choose "Mac OS Extended (Journaled)" or "APFS" as the format.
Set the Scheme to "GUID Partition Map" and confirm the erase operation.
Creating the Bootable Installer
Once the drive is prepared, the terminal command `createinstallmedia` is used to copy the macOS installer files to the external drive. This process links the installation assets to the boot sector of the drive, making it a functional startup disk. The command must be executed with administrator privileges, and the exact path to the Installer app must be specified accurately.
Executing the Terminal Command
Open the Terminal application and use the following structure, adjusting the path if your installer app or drive name differs:
sudo /Applications/Install\ macOS\ Sonoma.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --nointeraction
After entering the command, you will be prompted for your password. The process will take approximately 15 to 30 minutes, during which the drive will restart multiple times. Do not interrupt the power or eject the drive during this operation.
Booting from the External Drive
With the installer complete, you can now use the external drive to install macOS on another Mac or on the same machine after wiping the internal drive. For Intel Macs, holding the Option key during startup opens the boot manager. For Apple Silicon Macs, you must shut down the computer, then press and hold the power button until the startup options appear.