Skip to content

Instantly share code, notes, and snippets.

@lukasmatta
Last active August 26, 2025 10:58
Show Gist options
  • Select an option

  • Save lukasmatta/513ca56ec8a5f2c1aefab5797efef255 to your computer and use it in GitHub Desktop.

Select an option

Save lukasmatta/513ca56ec8a5f2c1aefab5797efef255 to your computer and use it in GitHub Desktop.
Create Windows 10 installation USB on Mac OS
  1. Download ISO from here - https://www.microsoft.com/sk-sk/software-download/windows10ISO
  2. Insert USB storage drive into your pc
  3. Identify which drive is USB mounted on by typing diskutil list command.
  4. Format USB to work with Windows diskutil eraseDisk MS-DOS "WIN10" GPT /dev/disk2 (replace /dev/disk2 with the code you got in previous command).
  5. Mount downloaded ISO hdiutil mount ~/Downloads/Win10_1903_V1_English_x64.iso
  6. Copy files to USB (excluding install.wim as it is larger than 4 GB, FAT32 allows max 4 GB files) rsync -vha --exclude=sources/install.wim /Volumes/CCCOMA_X64FRE_EN-US_DV9/ /Volumes/WIN10
  7. brew install wimlib
  8. Use wimlib to split install.wim into multiple parts wimlib-imagex split /Volumes/CCCOMA_X64FRE_EN-US_DV9/sources/install.wim /Volumes/WIN10/sources/install.swm 4000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment