I have been installing Windows for a long time. Does it get easier? I want to say it gets easier, but it seems like there's always some new wrinkle! These instructions are as much a note to my future self as they may be useful to anyone else.
For me, I was not able to get any exfat-based installs, or even any of the GUI helpers to make this process any more straightforward. Maybe on your target Windows / host OS those helpers will work, but the below process (as of current year) is consistent, and not overly complicated.
Overview:
- Downloading an official ISO image from MS:
- Formatting the drive (at least 8GB) as GPT, and one FAT-format partition (aka MS-DOS)
- Can use Disks or Disk Utilty for this
- Mounting the ISO either in a file browser (eg. Files or Finder)
- Copying over all the files except
sources/install.wim
- Using wimsplit from wimtools to split the
install.wim
file onto the destination drive- FAT-format filesystems have a limitation of 4GB per file, wimsplit creates two files in a format the Windows installer understands
Format the the target drive, as mentioned above. It should be at least 8GB, FAT/MS-DOS-formatted, and GPT partitioning scheme.
Install wimsplit on Ubuntu:
sudo apt install wimtools
On macOS (needs brew first
brew install wimlib
- Let's say
Downloads/Win11_22H2_English_x64.iso
is the Windows ISO.- Double click or right-click Open this file with "Disk Image Mounter" to mount it
- The USB drive is (FAT/MS-DOS formatted) mounted at
/Volumes/TheUSB
- (on Ubuntu, it's likely in
/media/<name>/<usb>
)
- (on Ubuntu, it's likely in
- The mounted Windows ISO is at
/Volumes/CCCOMA_X64FRE_EN-US_DV9
(say that 10 times fast)- (Ubuntu:
/media/<name>/CCCOMA_X64FRE_EN-US_DV9
)
- (Ubuntu:
The following command copies over all files except install.wim
:
rsync -avP --exclude sources/install.wim /Volumes/CCCOMA_X64FRE_EN-US_DV9/* /Volumes/TheUSB
Then, this command splits and copies install.wim
at 3000MB (Just under the FAT limit):
wimsplit /Volumes/CCCOMA_X64FRE_EN-US_DV9/sources/install.wim /Volumes/TheUSB/sources/install.swm 3000
Make sure to replace /Volumes
with the path to where the files/drives are mounted in the above commands.
If successful, you should see /Volumes/TheUSB
(your target USB) looks very similar to /Volumes/CCCOMA_X64FRE_EN-US_DV9
(the mounted ISO), except that in the sources
folder, the USB has install.swm
and install2.swm
. Again, these will be presented to the Windows installation environment as one file.
After this, put the USB in your target device, and boot off it from the boot menu.
Since we're using UEFI boot, it should just appear in the boot menu of the computer.
If your computer hardwaare does not support UEFI boot, you can try reformatting the drive using MBR instead of GPT (But still using FAT). I can't vouch for this, but according to sources online it should Also Work.
I can't believe that it's 2024 and something simple like this aren't even automated on Ubuntu :/