Run in Terminal:
brew install wimlib
- run, ifwimlib
is not installed yet (required for splitting large files)- To identify target USB device, run:
diskutil list
- Format USB drive:
diskutil eraseDisk MS-DOS "$WIN_USB_NAME" MBR /dev/$DISK
where$WIN_USB_NAME
is a new volume name (e.g. WIN) and$DISK
is a target disk identificator (e.g. disk5). Alternatively, you can tryGTP
partititon style instead ofMBR
(recommended for UEFI = newer Windows distributions) - To mount Windows installer image, run:
hdiutil mount ~/Desktop/$WIN_INSTALLER_IMAGE.iso
where $WIN_INSTALLER_IMAGE is installer image name. - Copy all files to the USB drive, beside the "install" file (if it's over 4GB size):
rsync -vha --exclude=sources/install.$EXT /Volumes/$WIN_INSTALLER_NAME/ /Volumes/$WIN_USB_NAME
where $EXT iswim
oresd
, $WIN_INSTALLER_NAME is the mounted Windows installer volume name and $WIN_USB_NAME is target disk name.