Quantcast
Viewing latest article 11
Browse Latest Browse All 6812

Install Win10XPE_x64 Flat or Compact Mode on VHD

In this case I used my Win10XPE_x64.iso (builded using as source Win10 18.362.19h1)

 

My Win10XPE_x64.iso size is 811 MB and boot.wim size is 771 MB

 

From Post No. 7

 

From: https://docs.microso...boot-or-non-ram

Quote

 

Windows Preinstallation Environment (Windows PE) is a minimal operating system where you can prepare a PC for installation, deployment, and servicing of Windows. Here's how to download and install it to an internal or external hard drive.

These instructions show how to set up a basic Windows PE installation that runs from the drive. This can sometimes give you better performance than booting from memory, and can help you run Windows PE on PCs or virtual environments with low memory. This procedure is also known as a non-RAMDISK boot, or a flat boot.

Note   When Windows PE is running from the drive, you must turn off the PC before disconnecting the drive to avoid losing your work.

 

Anyway it is not a good idea to think in use a WinPE environment for everyday use, as it is not legal, and can be prosecuted by the law.

 

NOTE-1: this procedure may apply to any WinPE.

 

Requirements:

 

Your Win10XPE_x64.iso, (having all programs booting from Ram) to create it see: https://github.com/ChrisRfr/Win10XPE

 

Procedure to install Win10XPE_x64 Flat and/or Compact LZX Mode on VHD:

1.- Create a fixed or expandable VHD of 3GB or bigger to hold following used sizes, on the root of a partition on your internal HD or USB device (in case of USB device, previously formated with USB_Format_Tool from wimb):

  • Non Compacted Flat install used size of my VHD is: 2.19 GB
  • Compact LZX Flat install used size of my VHD is: 1 GB

2.- VHD has to contain only a single NTFS primary active partition, Inicialized as MBR, MBR has to be 6.x and it is good (but not a requirement) to have BOOTMGR Partition Boot Record, you can verify/modify this with BootIce.

 

3.- Mount your Win10XPE_x64.iso or use 7-zip to extract boot.wim file from the sources folder.

 

4.- By means of wimlib-imagex (from Eric Biggers) or wimlib-clc (GUI by Retokener) make a normal install of the boot.wim to the mounted VHD.

 

EDIT: Also it is possible to install Win10XPE_x64 directly on a Compact mode VHD, using wimlib-clc and the boot.wim file, only required is edit the Wimboot attribute (Flag) of the image. As it already contains its own version of WimBootCompress.ini but we need to apply the Wimboot Flag to the boot.wim first, see post No. 3

 

5.- Mount again your Win10XPE_x64.iso or use 7-zip to extract to the root of the VHD:

  • boot and efi folders, but not the folder sources.
  • and also extract BOOTMGR, bootmgr.efi and bootmgr.exe files but DO NOT extact CDUsb.y XPEStartup.cmd and XPEStartup.ini

6.- Edit or create a new VHD entry in both BCDs located on boot partition of your HD or USB device in accordance with attached pictures External BCD.png and External BCD-2.png, look carefully this is very important:

  • Edit on the Boot\BCD the bootfile pointing to: \windows\system32\boot\winload.exe for MBR/CSM booting.
  • Edit on the EFI\Microsoft\Boot\BCD the bootfile pointing to: \windows\system32\boot\winload.efi for UEFI booting.

 

7.- Reboot and select the new booting option created to test the booting process and the VHD creation.

 

8.- If all went fine, reboot to your current OS or a WinPE, mount the new VHD and capture it by means of wimlib-imagex or wimlib-clc using Wimboot mode as on attached Wimboot mode Capture.png

 

9.- Create a new VHD or mount the one created before and format it to make a Compact LZX install on the VHD.

 

NOTE-2: Same procedure apply also to create a Wimboot mode install. But since the boot.wim boots directly on Ram, this is not a better alternative.

 

NOTE-3: WimBootCompress-WinPE.ini is same as our current WimBootCompress.ini + this added lines under [PrepopulateList]: \Windows\System32\Boot\winload.exe, and \Windows\System32\Boot\winload.efi, but I noticed all the content of \Windows\System32\Boot folder was copied uncompressed, then I need to check if that lines can be optional when using Win10PEs boot.wim, but required on 7 and 8.x WinPEs, in this case they need to also have wofadk.sys installed.

 

EDIT: Confirmed Win10XPE_x64 runs fine with its internal WimbootCompress.ini, no modded version required, see post No. 3 and 5

 

alacran

Attached Files


Viewing latest article 11
Browse Latest Browse All 6812

Trending Articles