User Tools

Site Tools


general:linux:create_usb_bootable_windows_install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
general:linux:create_usb_bootable_windows_install [2021/11/11 12:01] – created sunkangeneral:linux:create_usb_bootable_windows_install [2021/11/16 12:13] (current) sunkan
Line 1: Line 1:
-====== Create USB Bootable Windows installation ======+====== Create USB Bootable Windows installation source ======
 Install "wimtools" so we can use wimsplit as the .wim file is usually too big for FAT32 Install "wimtools" so we can use wimsplit as the .wim file is usually too big for FAT32
  
Line 23: Line 23:
 Create partition table and filesystem Create partition table and filesystem
 <code> <code>
-parted -s /dev/sde -- mklabel msdos +parted -s /dev/sde -- mklabel gpt 
-parted -s /dev/sde -- mkpart primary fat32 1M -1s +parted -s /dev/sde -- mkpart WIN10_EN fat32 1MiB -1 
-parted -s /dev/sde -- toggle 1 boot+parted -s /dev/sde -- toggle 1 esp
 mkfs.fat -n WIN10_EN /dev/sde1 mkfs.fat -n WIN10_EN /dev/sde1
 </code> </code>
Line 36: Line 36:
 umount /mnt umount /mnt
 </code> </code>
 +
 +===== Install from this USB drive =====
 +
 +Due to the fact that install.wim is now split we need to launch Setup.exe manually.
 +
 +[[https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/split-a-windows-image--wim--file-to-span-across-multiple-dvds?view=windows-11|Split a Windows image file]]
 +
 +Choose "Repair your computer" and then start the "Command Prompt".
 +
 +Then find the drive that matches the USB stick (not X: as it is some runtime environment not the actual USB stick)
 +
 +<code>
 +c:\setup.exe /installfrom:"C:\sources\install.swm"
 +</code>
 +
 +====== Create USB bootable Windows install using Ventoy ======
 +
 +Install Windows using some virtualization tool (I tested using Virtualbox as it has VHD support builtin). \\
 +Make sure you boot it fully after installation to make sure everything is installed. \\
 +
 +Install [[https://www.ventoy.net/en/index.html|Ventoy]] to USB drive. \\
 +Then reformat the "Ventoy" partition in NTFS (needed for support to boot VHD files). \\
 +Install the [[https://github.com/ventoy/vhdiso/releases|VHDISO]] plugin to Ventoy by copying ventoy_vhdboot.img to a folder named "ventoy". \\
 +See instructions here [[https://www.ventoy.net/en/plugin_vhdboot.html]] \\
 +Copy the VHD image from the newly installed windows to the "ventoy" NTFS formatted partition. \\
 +
 +Done.
  
general/linux/create_usb_bootable_windows_install.1636632093.txt.gz · Last modified: 2021/11/11 12:01 by sunkan

Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki