Skip to content

Instantly share code, notes, and snippets.

@kaisershahid
Last active October 18, 2025 19:05
Show Gist options
  • Select an option

  • Save kaisershahid/c6c797e83ba08a263039abd04f11bc53 to your computer and use it in GitHub Desktop.

Select an option

Save kaisershahid/c6c797e83ba08a263039abd04f11bc53 to your computer and use it in GitHub Desktop.
source: https://alexlubbock.com/bootable-windows-usb-on-mac
in terminal:
```
# one-time install
brew install wimlib
diskutil list
# find diskX for usb
diskutil eraseDisk MS-DOS "USB_VOL" MBR diskX
# mount iso, then:
rsync -avh --progress --exclude=sources/install.wim /Volumes/ISO_VOL/ /Volumes/USB_VOL
# finally, split install.wim
wimlib-imagex split /Volumes/ISO_VOL/sources/install.wim /Volumes/USB_VOL/sources/innstall.swm 3800
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment