Goal

Create a bootable Windows 11 USB installer on macOS.


List disks

Check the USB disk identifier before erasing it.

diskutil list

Erase the USB drive

Replace /dev/disk5 with your USB disk identifier.

diskutil eraseDisk MS-DOS "WIN11" MBR /dev/disk5

Copy Windows files

This example assumes the Windows ISO is mounted at /Volumes/CCCOMA_X64FRE_EN-US_DV9/.

rsync -avh --progress --exclude=sources/install.wim /Volumes/CCCOMA_X64FRE_EN-US_DV9/ /Volumes/WIN11

Split install.wim

FAT32 does not support files larger than 4 GB, so install.wim must be split first.

Install wimlib if needed:

brew install wimlib

Then split the image:

wimlib-imagex split /Volumes/CCCOMA_X64FRE_EN-US_DV9/sources/install.wim /Volumes/WIN11/sources/install.swm 3800