Creating a bootable Windows USB drive on a Mac is a straightforward process when you use the right tools and follow precise steps. This guide walks you through the entire workflow, from downloading the official Windows ISO to safely writing the image to a USB drive using Terminal commands. The method described here is reliable and works across recent versions of macOS, ensuring compatibility with both older and newer Mac hardware.
Preparing Your Mac and USB Drive
Before you begin, you need to prepare your environment by gathering the necessary files and hardware. You will require a USB drive with at least 8GB of storage, which will be completely erased during the process. It is also essential to back up any important data on this drive before proceeding. Additionally, ensure you have a valid Windows ISO file, which you can download directly from the Microsoft official website.
Downloading the Windows ISO Image
To create an authentic installation media, you must obtain the ISO file from Microsoft’s official source. Navigate to the Windows 10 or Windows 11 download page and use the Media Creation Tool to generate the ISO. On a Mac, you can run this tool via a virtual machine or simply download the ISO directly using a compatible browser. Selecting the correct edition and architecture (Home or Pro, 64-bit) is critical for a successful installation.
Verifying the ISO Checksum
After downloading the Windows ISO, it is a best practice to verify its integrity. Microsoft provides SHA-256 checksums on the download page to confirm that the file has not been corrupted or tampered with. On your Mac, you can open Terminal and use the `shasum` command to compare your local file against the official hash. This step ensures that the installation process will not fail due to file corruption.
Identifying the USB Drive in Terminal
The core of this process relies on the command line, specifically the `diskutil` and `dd` commands, which are powerful tools for managing drives. First, insert your USB flash drive into your Mac and open Terminal. You must identify the correct disk identifier, which usually appears as `/dev/disk2` or similar. It is vital to double-check this identifier, as selecting the wrong disk can lead to data loss on your internal drive.
Listing Available Disks
To determine the exact identifier for your USB drive, type `diskutil list` into Terminal. This command displays all connected storage devices and their partitions. Look for the size of the drive to distinguish it from your main internal disk. Once identified, note the specific disk number, such as `disk3`, but do not include any partition number like `disk3s1`. You will use this base identifier for the next steps.
Writing the ISO to the USB Drive
With the correct disk identifier noted, you can proceed to write the ISO image to the USB drive. In Terminal, you will use the `sudo dd` command, which requires administrative privileges. The process involves uncompressing the ISO file and streaming its contents directly to the USB device. This operation is irreversible and will destroy all existing data on the target drive.
Executing the Command
When you are ready, unmount the drive using `diskutil unmountDisk /dev/diskX`, replacing `X` with your identifier. Then, execute the `dd` command, carefully ensuring the `if` (input file) points to your ISO and the `of` (output file) points to the raw disk. The command will run for several minutes, and the cursor will appear to freeze. Avoid interrupting the process, as doing so will corrupt the USB drive.