This is a guide on various methods of creating installation media on OSX. The methods vary based on a couple of factors. Mainly the age of the system, and whether the motherboard can boot to certain file systems. Mainly ExFAT. FAT32 will work, but it’s limited to a maximum file size of 4GB, and at this point the install.wim file on the current version of Windows 10 is too large for this file system and this is the main hurdle.
Microsoft has tools to work around this. Their media creation tool will format your flash drive FAT32 and split the wim file for you. DISM.exe also has ability to split and combine wim files. Unfortunately, neither of these tools are available to us on OSX without setting up a virtual machine.
You can download the latest version of Windows 10 here: https://www.microsoft.com/en-us/software-download/windows10
If you’ve got a new ASUS board with an Intel chipset, you’re more than likely not going to have a problem with exFAT. I’ve also tested some Asrock boards with Intel chipsets that worked just fine as well. This makes the process quick and easy. You’ll need to format your flash drive as exFAT. You can do this in Disk Utility or via Terminal. I will detail the command via terminal below. You can open Terminal from the Utilities.
Type “diskutil list” to list your drives. In the image below we see our drive is disk2. Verify this by the volume name and capacity. Be careful, you do not want to wipe the wrong drive. Once you’re sure, type “diskutil erasedisk exfat “ESD-USB” MBR disk4” with disk4 being your flash drive. If this is not the case, correct the number on the end.
Now we need to copy our installation files. Double click the ISO we downloaded earlier to mount it. It will mount as CCCOMA_X64FRE_EN-US_DV9. Our flash drive is labeled ESD-USB. Type “cp -rp /Volumes/CCCOMA_X64FRE_EN-US_DV9/* /Volumes/ESD-USB/”. We’re using the copy command (cp) with the switches recursive (to copy all sub directory files) and p (Preserves file attributes). Let the files copy, this will take up to 20 minutes.
It’s important to note there is not status indicator here, you’ll get a flashing cursor. At this point, wait until it finishes. Your prompt will return once it does. Finally eject the flash drive, connect it to your computer and power it on. If this is a new build with an empty drive, it should boot automatically. From here, you’re just doing a normal clean install of Windows 10. If not, you’ll need to use the boot menu key and select the flash drive from there. We’re booting UEFI in this guide.
From here, you’re just doing a normal clean install of Windows 10. Please see our guide on this:
If you followed the guide above and your flash drive wasn’t detected, apparently your motherboard cannot boot from an ExFAT partition. We’ll need to use FAT32. In this guide we’re going to focus on doing this in a way that does not use third party tools to split the wim file.
First we’ll need to create a folder to store our installation files. I created a folder on the desktop called “Windows10”. From here, we’ll copy the files from the mounted ISO file. You can do this in finder, or via terminal. Type: “cp -r /Volumes/CCOMA_X64FRE_EN-US_DV9/* ~/Desktop/Windows10/”.
Now, we need to navigate to this new folder where the files were copied via terminal. Open terminal and type: “cd Desktop\Windows10\Sources”. The prompt should confirm you’re in the sources folder.
Next we’ll need to split the wim file. Remember, we need to get the file size under 4GB for FAT32. We’ll type, “sudo split -b 3000m install.wim”. It’s important to follow the syntax exactly, the m for “Megabyte” must be lower case. This will split our wim file into two files labeled “xaa” and “xab”. This is much like copying files, it will take some time to process. Wait for the prompt to return. Then delete install.wim from the Windows10\Sources folder.
Now we need to format our flash drive to FAT32. You can do this from Disk Utility or via Terminal by typing ”diskutil erasedisk fat32 “ESD-USB” MBR disk4”.
Next, we’ll copy our files to our newly formatted flash drive. We’ll type “cp -r ~/Desktop/Windows10/* /Volumes/ESD-USB/”. We’ll wait for it to copy, this will take some time. Once done, we’re finished with the OSX side. Eject the flash drive and connect it to your PC.
We’ll boot to the flash drive, either through our boot menu, or automatically if there are no other devices to boot to. Now we need to format our internal hard drive to be imaged from this media, before we copy over the files and image it. Make sure your data is backed up and any drives with important data are disconnected. We will need to wipe your main hard drive that you’ll be installing Windows to in advance. To open command prompt press”Shift + F10” from the “Install Now” page.
Well type the following commands:
Once you’re done. Type: “list part” and verify the partition scheme matches the image below. Also type “list vol” so we can verify our assigned drive letters. Once confirmed, type "exit" to exit diskpart.
Next we’re going to copy out files on to our newly formatted and labeled W volume. We’ll type “xcopy /h /c /y C:\Sources\xa* W:\”. In this case our flash drive was labeled as C. This will be corrected automatically when we reboot. Your main drive will be C as normal, not W. This command will copy both the xaa and xab files we created when we split the install.wim file. Asterisk is a wildcard, that searches for and copies any file in the directory that starts with xa. Once again, wait a few minutes for the files to copy.
Now we’re going to merge the two halves of the wim file we split earlier. We’ll need to navigate to the W root folder. Type “W:”, verify the prompt indicates your in this directory.
Now type “type xaa xab > Install.wim”. Wait a few moments while the two large files halves are merged together.
Now we’ll need to image our drive from the wim file. Type”dism /Apply-Image /ImageFile:W:\install.wim /index:1 /ApplyDir:W:\”. This will take a few moments to complete.
Last step is to make our new windows installation bootable. We used a GPT partition and we’re booting via UEFI so we’ll type “W:\Windows\System32\bcdboot W:\Windows”.
Finally, remove the flash drive and reboot. If you want to do this via command prompt type “W:\Windows\System32\shutdown -r -t 0”, or just restart the system with the power button. Once it reboots, it should load of windows and right into the out of box experience for you to create your user account.
diskpart /s D:\formatdisk.txt
Excellent! Glad to hear it helped!
It looks like you're new here. If you want to get involved, click one of these buttons!
Submit photos and a description of your PC to our build showcase
See other custom PC builds and get some ideas for what can be done
Services starting at $149.99