Skip to content

Instantly share code, notes, and snippets.

@arag0re
Created December 20, 2021 10:01
Show Gist options
  • Save arag0re/dc8560ba6e1a5e76084dea0b84c03266 to your computer and use it in GitHub Desktop.
Save arag0re/dc8560ba6e1a5e76084dea0b84c03266 to your computer and use it in GitHub Desktop.
create windows bootable usb on macOS
diskutil eraseDisk MS-DOS "WIN10" GPT /dev/disk2
hdiutil mount ~/Desktop/Win10_2004_EnglishInternational_x64.iso
rsync -vha --exclude=sources/install.wim /Volumes/CCCOMA_X64FRE_EN-GB_DV9/* /Volumes/WIN10
install homebrew if not already installed by executing: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install wimlib
mkdir /Volumes/WIN10/sources
wimlib-imagex split /Volumes/CCCOMA_X64FRE_EN-GB_DV9/sources/install.wim /Volumes/WIN10/sources/install.swm 3800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment