Create a Bootable USB Drive on Mac: The Ultimate Step-by-Step Guide
Creating a bootable USB drive on a Mac is a fundamental skill for any user looking to install a new operating system, troubleshoot system issues, or run portable applications. The process is straightforward thanks to macOS’s built-in command-line utility, Disk Utility, and the Terminal. This guide walks you through the necessary steps to create a reliable, bootable flash drive that can be used on any compatible Mac or PC.
Understanding Bootable Drives
A bootable USB drive contains a standalone operating system or utility that can launch independently of your main macOS installation. Unlike a standard flash drive that stores files, a bootable drive includes the necessary boot loader and system files required to start a computer. This is essential for installing Windows via Boot Camp, running Linux distributions, or using diagnostic tools like macOS Recovery over USB.
Preparing Your USB Drive
Before you begin, you need to select the right hardware and prepare it for the process. Not all USB drives are suitable for holding a full operating system, so capacity is a critical factor.
- Storage Capacity: You will need a drive with enough space to hold the ISO image. For Windows 11 or 10, a 16GB drive is the bare minimum, while 32GB or 64GB is recommended for Linux distributions or multiple tools.
- Drive Selection: Ensure the drive is connected and recognized by your Mac. You will need to identify its identifier (such as
disk2) which we will use in the Terminal.
Formatting the Drive
Proper formatting erases all existing data and creates a structure that the target operating system can recognize. This step ensures there are no file system conflicts during the write process.
| Format Option | Use Case |
|---|---|
| MS-DOS (FAT) | For smaller files or drives under 32GB. |
| ExFAT | Best for large files and drives over 32GB; compatible with Mac and Windows. |
To format, open Disk Utility (found in Applications > Utilities), select the connected USB drive, click the Erase button, choose the name "UNTITLED" (or similar) for the format, select MS-DOS (FAT) or ExFAT for the scheme, and finally click Erase. This prepares the physical medium to receive the bootable data.
Using Terminal to Create the Boot Drive
While Disk Utility handles the storage formatting, the command-line tool diskutil in Terminal is responsible for writing the bootable sector and the core image file to the drive. This method is universally compatible with any ISO file you download.
- First, convert your downloaded
.ISOfile to a.DIMGfile using thehdiutilcommand to ensure compatibility. - Use the
diskutil listcommand to identify the exact identifier of your USB drive (e.g.,/dev/disk2). - Unmount the drive using
diskutil unmountDisk /dev/diskX(replacing X with your identifier) to prevent write conflicts. - Execute the
sudo dd if=imagepath of=/dev/diskX bs=1mcommand, which streams the binary data directly to the drive. This process may take several minutes depending on the size of the image and the speed of the drive.
Verifying the Process
Once the terminal command returns to the cursor, it signifies that the data stream has completed. It is crucial to verify the integrity of the drive before attempting to boot from it.
You can check the status by opening Disk Utility again. The drive should now show a single partition with a recognizable name, such as "WININSTALL" or "LINUX." If the drive appears as multiple partitions or shows errors, the write process may have failed, and you should repeat the steps with a fresh format.
Troubleshooting Common Issues
Even with precise instructions, users may encounter roadblocks. One common error is the "Resource busy" message in Terminal, which usually indicates that the drive is still mounted. Double-checking the diskutil mount status and unmounting again usually resolves this.
Another frequent issue is an interrupted write process due to sleep mode. Ensure your Mac is plugged into a power source and that the screen sleep settings are disabled to prevent the system from shutting down mid-operation. If the drive fails to boot, try recreating the image with a higher bs (block size) value, such as bs=2m, which can sometimes improve the success rate on older hardware.
Alternative Methods and Tools
For users who prefer a graphical interface over command-line commands, several third-party applications simplify the process. Tools like BalenaEtcher (free and open-source) or Apple Pi Baker (for more advanced macOS imaging) handle the file verification and writing automatically.
These utilities are particularly useful for less experienced users because they provide progress bars and prevent accidental selection of the wrong drive. However, understanding the Terminal method remains valuable, as it offers deeper insight into how storage media interacts with the operating system and is often the only solution when GUI tools fail.