How to make bootable Windows 10 installation USB drive using MacOS
Windows installation USB Drive

This should be as easy as downloading an app and the iso and clicking a button right? Well no.

So how to do it then?

Get ready to get hackerz and write some terminal code.

First thing is first, download windows 10 ISO file from https://www.microsoft.com/en-ca/software-download/windows10.

Once you have that file downloaded, now you’re going to run some commands in the Terminal.

Run diskutil list , to get a list of all disks that you have. Make sure your USB drive is plugged in before running it. Find for the disk that looks like `/dev/diskX (external, physical)` where X is the disk number. Take note of that number.

Next, you’re going to partition the drive. Run `diskutil partitionDisk /dev/diskX 2 MBR MS-DOS Boot 1g ExFAT Windows R` where X is the disk number from before. This will create two volumes. The FAT32(MS-DOS) is for booting and the ExFat is where the installation files should go.

Now, you’ll need to mount the windows ISO as a virtual drive and copy everything but the sources folder into the Boot volume. Then, create a folder in the Boot volume named Sources . Then copy the boot.wim file from the sources folder in the ISO to the Boot volume.

Finally, copy all the files from the ISO to the Windows volume and voilà you should have a Windows 10 installation USB drive.

Why is it so hard?

The reason why we can’t copy everything into the FAT32 volume is because there’s a file in the ISO that’s larger than 4GB. Some people have suggested to split that file in two but that didn’t work for me. It failed on setup.

Credits

After searching around, I found this article https://win10.guru/usb-install-media-with-larger-than-4gb-wim-file/ which is for Windows but it works equally well for MacOS.
['Viventhraa Rao']
['Macos', 'Bootable Usb', 'Windows 10']