Guide to prepare Windows 10 October 2018 release UEFI bootable USB drive on any Linux distribution.
Notice, that Windows 10 October 2018 release has an installation file sources/install.wim
larger than the maximum FAT32
file size, so we will format USB drive to NTFS
. Windows installer also cannot work with an EFI partition (code ef00
), so we will use Microsoft basic data
partition type (code 0700
).
Steps for creating USB drive with name /dev/sdc
(Replace all commands with YOUR device name!):
- Insert USB drive to computer and make sure it is unmounted. Some distributions like to automount USB drives, so make sure you unmount them. Mounted partitions can be found with
mount -l | grep '/dev/sdc'
, then unmount with sudo umount /dev/sdcX
(X is partition number).
- Open USB block device using
gdisk /dev/sdc
, configure it as GPT
and create Microsoft basic data
partition (code 0700
), then write changes and quit (Next steps will destroy partition table in your USB drive!!!).
sudo gdisk /dev/sdc
o
> This option deletes all partitions and creates a new protective MBR.
> Proceed? (Y/N): y
n
> Partition number ... > hit Enter
> First sector ... : > hit Enter
> Last sector ... : > hit Enter
> Current type is 'Linux filesystem'
> Hex code or GUID (L to show codes, Enter = 8300): 0700
p
> Should print something like:
> Disk /dev/sdc: 15646720 sectors, 7.5 GiB
> Model: DataTraveler 160
> Sector size (logical/physical): 512/512 bytes
> Disk identifier (GUID): ...
> Partition table holds up to 128 entries
> Main partition table begins at sector 2 and ends at sector 33
> First usable sector is 34, last usable sector is 15646686
> Partitions will be aligned on 2048-sector boundaries
> Total free space is 2014 sectors (1007.0 KiB)
> Number Start (sector) End (sector) Size Code Name
> 1 2048 15646686 7.5 GiB 0700 Microsoft basic data
w
> Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!
> Do you want to proceed? (Y/N): y
q
- Format new partition as NTFS:
sudo mkfs.ntfs /dev/sdc1
- Mount new USB partition to temporary directory in your home:
mkdir ~/tmp-win10-usb-drive
sudo mount /dev/sdc1 ~/tmp-win10-usb-drive
- Download Windows installation ISO, create new temporary directory in your home and mount it there:
mkdir ~/tmp-win10-iso-mnt
sudo mount Win10_1809Oct_English_x64.iso ~/tmp-win10-iso-mnt
- Copy all files from mounted ISO to USB drive (you can use
rsync
to see progress):
sudo cp -rT ~/tmp-win10-iso-mnt/ ~/tmp-win10-usb-drive/
- Unmount Windows ISO and USB drive and remove temporary directories:
sudo umount ~/tmp-win10-iso-mnt/ ~/tmp-win10-usb-drive/
rmdir ~/tmp-win10-iso-mnt/ ~/tmp-win10-usb-drive/
- Insert USB drive to new computer and boot from it.
I think it should be formatted NTFS... (are you the guy who asked this on reddit too btw?) – Alex – 2015-12-25T00:32:13.817
@Alex, not, wasn't me... and not, UEFI can boot only from FAT32! – Victor Aurélio – 2015-12-25T01:26:16.983
Did you fix up the BCD store? – fpmurphy – 2015-12-26T01:28:43.670
@fpmurphy1 not, how to do that ? – Victor Aurélio – 2015-12-26T14:54:53.653
1What does "Put UEFI:NTFS on FAT32" mean? – Philipp Ludwig – 2018-08-08T15:22:52.873
Put this on FAT32 partition.
– Victor Aurélio – 2018-08-10T17:04:12.663Duplicates: https://superuser.com/questions/1290568, https://superuser.com/questions/1440520, https://superuser.com/questions/1045291
– That Brazilian Guy – 2019-07-11T19:46:21.180