Skip to content

Instantly share code, notes, and snippets.

@ajayverghese
Created December 3, 2022 21:01
Show Gist options
  • Save ajayverghese/6fb51932efbda3d17263d439e260f1ab to your computer and use it in GitHub Desktop.
Save ajayverghese/6fb51932efbda3d17263d439e260f1ab to your computer and use it in GitHub Desktop.
Create bootable USB from windows ISO on Mac
  • Run brew install wimlib on mac
  • Format USB thumbdrive with Fat32. Name the partition to something relevant such as win11pro
  • Mount the windows ISO on Mac by double clicking the image.
  • The mountpoints of the USB and the ISO will be in /Volumes. For example, windows ISO at /Volumes/CCCOMA_X64FRE_EN-US_DV9 and USB at /Volumes/win11pro

Run the following

export WINISO="/Volumes/CCCOMA_X64FRE_EN-US_DV9" 
export USB="/Volumes/win11pro"
rsync -vha --exclude=sources/install.wim ${WINISO}/* ${USB}
wimlib-imagex split ${WINISO}/sources/install.wim ${USB}/sources/install.swm 3500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment