Wiki Home Boot image Create EFI partition on image

Create EFI partition on image

2025-11-02
efi, partition, image

The following explains how to create EFI partition in images some motherboards like Acer need EFI partition on image to boot successfully

  1. Mount the VHD image using:
    Open Powershell to run the command below
    Mount-DiskImage -ImagePath "C:\Path\YourDisk.vhd"
  2. Or you can use CCBoot mount function:  https://www.ccboot.com/wikis-mount-unmount-image.htm
  3. Open diskpart and check the mounted disk:
    Diskpart
    list disk
  4. Select the VHD disk and create an EFI partition:
    select disk X
    convert gpt
    shrink desired=100
    create partition efi size=100
    format quick fs=fat32 label="SYSTEM"
    assign letter=S
    exit
  5. Verify the Windows partition inside the VHD is mounted and note its drive letter (for example C:).
  6. Copy EFI boot files using:
    bcdboot C:\Windows /s S: /f UEFI
  7. Open the S: drive and check that it contains the folders:
    EFI\Boot\bootx64.efi
    EFI\Microsoft\Boot
  8. Dismount the image when done:
    Dismount-DiskImage -ImagePath "C:\Path\YourDisk.vhd"
  9. Or you can use CCBoot dismount function:
    https://www.ccboot.com/wikis-mount-unmount-image.htm
  10. The VHD now includes an EFI System Partition and can boot in UEFI mode through Hyper-V, VMware, or a UEFI system.

Related: