Create Windows 10 2004 Installation USB in Ubuntu 20.04 LTS
First of all, we need to download Windows 10 ISO from Microsoft in Ubuntu 20.04 LTS.
We are required to install
wimtools by the following command.
sudo apt install wimtools
GPT for the USB drive and format it in
FAT32. Make sure to set the partition as
BIOS Bootable at
Disks (Gnome Disk Utility).
sources directory at Windows 10 2004 ISO is greater than 4GB, we need to split the
install.wim into smaller size files or optimize the size of the file.
We have two options, either Option 1 or Option 2, to do with the
install.wim file. Option 2 requires a longer time to complete. Optimize makes the file size smaller, it is about 3.3GB after the optimization.
Option 1 - Split
wimlib-imagex split install.wim install.swm 2000
Option 2 - Optimize
wimlib-imagex optimize install.wim --solid
It is recommended to copy all the files from the ISO to another directory, namely
splitted. Make sure to delete the original
sources directory before copying all the files to the USB drive from
When finished, your USB drive can be bootable to BIOS and UEFI computers.
OSCE OSCP OSWP
June 11, 2020, Hong Kong, China