Skip to content

Instantly share code, notes, and snippets.

@SerjRamone
Last active November 1, 2022 20:27
Show Gist options
  • Save SerjRamone/2ec3f4a63d675f25c08531dab1f0767c to your computer and use it in GitHub Desktop.
Save SerjRamone/2ec3f4a63d675f25c08531dab1f0767c to your computer and use it in GitHub Desktop.
Create Windows 10 Bootable USB on Mac
# find yours usb drive in list. f.e. it was /dev/disk2 for me
diskutil list
# format your disk to Windows FAT32 format
sudo diskutil eraseDisk FAT32 "WIN10" MBRFormat /dev/disk2
# open Finder and mount the Windows 10 ISO by doble click ISO file
# list /Volumes folder and find mounted folder. For me it was /Volumes/CCCOMA_X64FRE_RU-RU_DV9
# copy small files by rsync
rsync -vha --exclude=sources/install.wim /Volumes/CCCOMA_X64FRE_RU-RU_DV9/ /Volumes/WIN10
# install Homebrew if not installed yet
# https://github.com/Homebrew/brew/blob/master/docs/Installation.md
# install wimlib
brew install wimlib
# create sources directory on USB if not created
mkdir /Volumes/WIN10/sources
# copy last large file by splitted on chunks
wimlib-imagex split /Volumes/CCCOMA_X64FRE_RU-RU_DV9/sources/install.wim /Volumes/WIN10/sources/install.swm 4000
# drive is ready! You are awesome!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment