Fixing UEFI after changing from MBR to GPT

AssemblerX86

Reputable
Jul 29, 2014
158
0
4,710
Hi,

I couldn't find a working guide on how to fix Windows UEFI boot after changing the partition table layout from MBR to GPT.

I have changed the partition table layout, and the Microsoft Reserved partition got also deleted, so I recreated one with 128MB size, NTFS, and msr flag set on that partition.

I already have an EFI partition and it is working (Linux boots from it), but how do I add Windows EFI image to it?

I have Windows 8.1 x64 Pro.

Thanks in advance!
 
Solution

Boot from windows 8.1 installation media and use bcdboot command:
  • bcdboot x:\windows /s y:
x: - windows partition
y: - bootloader partition (EFI system partition)
(it's possible - bootloader partition may not have letter assigned when booting from windows installation media, then use diskpart command to assign drive letter)
  • diskpart
    list disk
    select disk a
    list partition
    select partition b
    assign letter=y

Boot from windows 8.1 installation media and use bcdboot command:
  • bcdboot x:\windows /s y:
x: - windows partition
y: - bootloader partition (EFI system partition)
(it's possible - bootloader partition may not have letter assigned when booting from windows installation media, then use diskpart command to assign drive letter)
  • diskpart
    list disk
    select disk a
    list partition
    select partition b
    assign letter=y
 
Solution