How can I split install.wim from Windows installation ISO on OSX? [duplicate]

Solution 1:

I have found that after upgrading to High Sierra, my 2013 iMac could boot the Windows 10 installer from a ExFAT formatted USB flash drive.

Here are three potential ways to create the USB installer. I am sure there are may other ways.

Answer #1

Mac computers running High Sierra or Mojave may be able to boot from USB flash drives that are ExFAT formatted. So, Apple could fix this problem by changing to Boot Camp Assistant to format the USB flash drive as ExFAT instead of FAT32. For now, you can use the following steps to create a USB Windows 10 flash drive installer.

  1. Download the Windows 10 October 2018 Update ISO file from the Microsoft website Download Windows 10 Disc Image (ISO File).

  2. Use the Boot Camp Assistant application to download the Windows Support Software. Look for Download the Windows Support Software under Action on the Menu Bar. After the download finishes, the Window Support Software folder should appear as shown below.

    a2

  3. Use the Disk Utility application to erase a 16 GB or larger USB flash drive. Choose Name, Format and Scheme as shown in the image below..

    d1

  4. Use the Finder application to mount the ISO file. The name of the ISO file, I downloaded, was Win10_1809Oct_English_x64.iso. The volume name, when mounted, was CCCOMA_X64FRE_EN-US_DV9. Your names may be different.

  5. Use the Finder application to copy the contents of the ISO file to the USB flash drive. When finished, the root folder of the USB flash drive should appear as shown below.

    a1

  6. Use the Finder application to copy the Window Support Software to the USB flash drive. When finished, the root folder of the USB flash drive should appear as shown below.

    a3

The USB flash drive installer can now be used to install Windows on your Mac. If wish to use the flash drive to install Windows 10 on a different Mac, then you should replace the Windows Support Software files with ones downloaded on that Mac.

Answer #2

This answer was suggested (in a now deleted comment) by Solar Mike. I will remove the answer, if he posts a similar answer.

Use a machine running Windows to create the USB flash drive installer. At this point the flash drive does not contain the Windows Support Software provided by Apple. To add this software, follow steps 2 and 6 of Answer #1.

When using the Windows operating system, you can download the application MediaCreationTool1809.exe. This allows the creation of either a USB flash drive installer or the download of an ISO file. Mac users do not download an application. Instead, Mac users can only download the ISO file. The MediaCreationTool1809 creates a FAT32 formatted USB installer. So there must be a difference between the files downloaded for the USB installer and the files downloaded in the ISO. I do not know how many of the files are different. However, I do know the largest file is different. This file contains all the Window 10 images. The MediaCreationTool1809 application creates the file install.esd which is 3.45 GB in size. This is nowhere near the 4 GB limit for files stored on FAT32 formatted volumes. Unfortunately, the ISO substitutes the file install.wim which is 4.4 GB in size. This is well over the 4 GB limit.

Either .esd files are more efficient in storage than .wim files or the install.esd file has less images than the install.wim file.

Answer #3

Download the Windows 10 April 2018 Update ISO file from the Microsoft website Download Windows 10 Disc Image (ISO File). This ISO file is compatible with the Boot Camp Assistant. After using the Boot Camp Assistant to install Windows 10, you should goto the Microsoft website Download Windows 10 to upgrade to the Windows 10 October 2018 Update. Note: This last link will only work when booted to Windows. If booted to macOS, then you redirect to Download Windows 10 Disc Image (ISO File)

Solution 2:

The only way I was able to successfully overcome this problem was following this person's guide:

The final problem is that the install.wim file is too big to copy across to the FAT32-formatted USB stick (you can try, but will be met with an error). On Windows, Microsoft's official solution is to split the file using a special tool designed for these .wim files. Fortunately, there's also a free alternative called wimlib which works on Mac (and Linux).

With wimlib installed, available via Homebrew (brew install wimlib), you can easily perform the file splitting of install.wim that the Windows 10 ISO will automatically pickup and understand with no extra fuss.

wimlib-imagex split /Volumes/CCCOMA_X64FRE_EN-US_DV9/sources/install.wim /Volumes/WINDOWS10/sources/install.swm 4000

Solution 3:

Do the following on a PC:

  • Create a folder called "wim" on the root of your C drive (so C:\wim). Inside that folder, create another folder called "split." Of course you can create different names, but for the sake of the following command, we are going with this. Now copy your large wim file to C:\wim.

  • Type the following command, which will split your wim file into smaller sizes, which will fit perfectly on a FAT32 USB stick:

    dism /split-image /ImageFile:C:\wim\install.wim /SWMFile:C:\wim\split\install.swm /FileSize:2000

  • Now delete the wim file off of your USB stick (in the sources folder) and replace it with the several .swm files in the C:\wim\split folder. Because we said filesize=2000, it will split the wim file into approx 2GB files. Had we said 1000, it would be approx 1GB files.

  • Now you don't have to mess around with alternate file systems. Use the media creation tool from Microsoft to build your USB stick, then delete the .esd file out of the "sources" folder on the USB stick, then put these split install.swm files in its place. As long as they are named "install.swm, install2.swm, etc," Windows will treat them like a standard wim file and install Windows normally.

Solution 4:

https://twocanoes.com/using-larger-windows-10-isos-with-boot-camp-assistant/ splits 4+ GB install.wim to smaller parts automatically

Solution 5:

2021 update

.iso files under 4GB have been removed from most of the posted online sources, including the official Windows download site. As of February 2021, there's only one ISO version available. I had the best luck downloading a free trial of an NFTS emulator for Mac, and formatting the USB drive there. I then followed the instructions on this blog. Using Terminal:

  1. diskutil list to find the name of your USB drive
  2. you've already formatted your SB to NTFS so skip step 2
  3. hdiutil mount ~/Downloads/Win10_20H2_v2_English_x64.iso (iso file name will change with newer versions)
  4. cp -rp /Volumes/CCCOMA_X64FRE_EN-US_DV9/* /Volumes/WIN10 (the name of your mounted ISO will change with your version)
  5. hdiutil unmount /Volumes/CCCOMA_X64FRE_EN-US_DV9/