How to create the bootable flash drive with Windows under Mac OS.

Step 1. Volumes.

Step 2. Formatting.

diskutil list
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *4.0 GB disk2
1: Windows_NTFS ⁨⁩ 4.0 GB disk2s1
diskutil eraseDisk MS-DOS "YOURDESIREDNAME" MBR <IDENTIFIER> // in our case disk2

Step 3. Copying.

diskutil list
ls -lh /Volumes/<NAME_YOUR_WINDOWS_IMAGE>/sources/install.wim
rsync -avh --progress /Volumes/<NAME_YOUR_WINDOWS_IMAGE>/ /Volumes/<YOUR_FLASH_DRIVE>
rsync -avh --progress --exclude=sources/install.wim /Volumes/<NAME_YOUR_WINDOWS_IMAGE>/ /Volumes/<YOUR_FLASH_DRIVE>

Step 4. Splitting.

/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)"
brew update
brew install wimlib
wimlib-imagex split /Volumes/<NAME_YOUR_WINDOWS_IMAGE>/sources/install.wim /Volumes/<YOUR_FLASH_DRIVE>/sources/install.swm 3800

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store