Add missing EFI partition
The error
There is no boot entry for windows. The hard drive is not bootable.
The reason
The EFI system Partition is missing.
The solution
-
Use a Windows installation media to gain access to a command prompt.
-
Run diskpart to create an EFI System partition.
C:\Windows>diskpart -
Select the disk and partition that windows is installed on
DISKPART> list disk DISKPART> select disk <n> -- (1)! DISKPART> list partition DISKPART> select partition <n> -- (2)!- Change
<n>to the desired disk number - Change
<n>to the desired partition number
- Change
-
Add the EFI system partition
DISKPART> shrink desired=500 DISKPART> create partition efi DISKPART> format fs=fat32 quick DISKPART> assign letter=Y DISKPART> exit -
Add the boot files to the ESP using bcdboot.
C:\Windows>bcdboot C:\Windows /s Y: -- (1)!/sspecifies the volume letter.
Further reading
- Use
/?to get more information about a command. - Missing EFI Partition in Windows 10 – Solved