Creating a macOS bootable USB drive on a Windows PC is a straightforward process when you follow the correct steps. This guide walks you through the necessary preparations, from downloading the official installer to configuring the USB drive so it can reliably start a Mac installation or recovery process.
Preparing Your Tools and Files
Before you begin, you need to gather a few essential items to ensure a smooth creation process. You will require a USB flash drive with a capacity of at least 16GB, which will be formatted to hold the macOS installer files. Additionally, you must download the macOS installer directly from the App Store on a Mac device, as this is the only legitimate source for the necessary application file. Finally, you need a Windows PC with administrative access to run the required formatting and command-line tools.
Downloading the macOS Installer
On a Mac, open the App Store and search for the specific version of macOS you intend to install, such as macOS Ventura or macOS Sonoma. Initiate the download and wait for it to complete; this application, named something like "Install macOS," is the core file you will transfer to the USB drive. Without this authentic installer, the Windows-based process will not function correctly, so ensure the download finishes successfully before proceeding to the next steps.
Formatting the USB Drive
Windows cannot natively read the macOS file system, so the USB drive must be formatted in a way that makes it recognizable to Apple's bootloader. You will use a command-line tool called Diskpart to clean the drive and then format it as FAT32. This file system is universally supported by Macs during the boot selection process, ensuring the target Mac can locate and load the installer files from the USB stick.
Using Diskpart to Prepare the Drive
Insert the USB drive into your Windows PC and open Command Prompt as an administrator. Type `diskpart` and press Enter, then use a sequence of commands to identify the disk number of your USB drive, clean it to remove all old partitions, and create a new FAT32 volume. It is critical to select the correct disk number here, as selecting the wrong drive will result in data loss on your main system drive.
Transferring the Installer Files
With the USB drive properly formatted, you need to make it bootable by injecting the macOS installer files into the root of the drive. This is done by converting the FAT32 volume into a bootable environment using a tool called createinstallmedia. This command-line script, located inside the installer application on macOS, effectively turns the simple storage device into a bootable utility that Mac hardware can recognize.
Running the Createinstallmedia Command
On the Mac where you downloaded the installer, you will open Terminal and construct a precise command that points to the createinstallmedia script and the location of the USB drive. This process copies the core operating system files and the bootloader to the USB stick. Once the command completes, the USB drive will contain all the necessary components to start the macOS installation wizard on a Windows-compatible environment.
Booting the Target Mac
Now that the USB drive is ready, you can connect it to the Mac you wish to install or repair. You must restart the Mac and immediately hold down the Option or Alt key to access the boot manager. This menu allows you to bypass the internal drive and select the USB drive directly, initiating the macOS installation process from the external media you created.
Selecting the Boot Option
In the boot manager, look for the removable drive labeled with the name you gave the USB or simply listed as EFI Boot. Selecting this option tells the Mac to load the installer files from the USB drive instead of the internal storage. If the Mac does not recognize the drive, you may need to hold the Control key in addition to the Option key to force Legacy Boot mode, which handles older file structures differently.