This article provides information about how to resolve an issue with the EFI Bootloader not booting correctly on a GPT Hard Disk Drive for a number of Windows Operating Systems.
Table of Contents:
- Introduction
- How to repair your EFI Bootloader
- How to repair your MBR (Master Boot Record) - Legacy Machines
- What to do if you are still unable to boot into Windows
Introduction
Most people with boot issues on Windows Operating Systems (OS) will choose to reinstall the OS rather than attempt to fix the boot issue itself.
This particular article deals with running a repair of the EFI (Extensible Firmware Interface) bootloader on a GPT (GUID (Globally Unique Identifiers) Partition Table) Hard Disk Drive.
This will only work for those OSs installed on a UEFI (Unified Extensible Firmware Interface) BIOS (Basic Input / Output System).
Note: Replace any < some text here >
with the appropriate values found on your machine, do not keep the < >
How to repair your EFI Bootloader
Windows 7, 8 and 8.1 could install on a Legacy BIOS using MBR. However Windows 8, 8.1 and 10 were designed to install on the UEFI BIOS using the EFI bootloader and GPT.
The GPT structure deals with a lot of the problems that the Bootsect command was designed to remedy in MBR. However if you find yourself in need of repairing the EFI bootloader, you can follow the instructions below:
Windows 7
If you do have the Installation Media :
-
Insert the Media (DVD/USB) in your PC and restart.
-
Boot from the media.
-
Select Repair Your Computer.
-
Select the operating system and click next.
-
Choose Command Prompt from the menu :
-
Type and run the command :
diskpart
-
Type and run the command :
sel disk 0
-
Type and run the command :
list vol
-
-
Verify that the EFI partition (EPS - EFI System Partition) is using the FAT32 file system and assign a drive letter to it (Assign a letter that isn't already in use.):
-
Type and run the command :
sel vol <number of volume>
-
Type and run the command :
assign letter=<drive letter>:
-
Type and run the command :
exit
-
-
In order to repair the boot record :
-
Type and run the command :
cd /d <drive letter>:\EFI\Microsoft\Boot\
-
Type and run the command :
bootrec /FixBoot
-
If you don't have the Installation Media :
-
Restart your PC
-
Tap rapidly on the <F8> key once the PC has turned on, but before the Windows Splash Screen appears.
-
Select Repair your computer from the menu that appears.
-
Select Command Prompt from the Recovery Options :
-
Type and run the command :
diskpart
-
Type and run the command :
sel disk 0
-
Type and run the command :
list vol
-
-
Verify that the EFI partition (EPS - EFI System Partition) is using the FAT32 file system and assign a drive letter to it (Assign a letter that isn't already in use.):
-
Type and run the command :
sel vol <number of volume>
-
Type and run the command :
assign letter=<drive letter>:
-
Type and run the command :
exit
-
-
In order to repair the boot record :
-
Type and run the command :
cd /d <drive letter>:\EFI\Microsoft\Boot\
-
Type and run the command :
bootrec /FixBoot
-
The next step is the same across all the operating systems at this point :
-
Rebuild the BCD store
-
First run the command below to backup the old BCD :
ren BCD BCD.old
-
Now recreate it using this command :
bcdboot c:\Windows /l en-us /s <boot letter>: All
Windows 8 and 8.1
If you do have the Installation Media :
-
Insert the Media (DVD/USB) in your PC and restart.
-
Boot from the media.
-
Select Repair Your Computer.
-
Select Troubleshoot.
-
Choose Command Prompt from the menu :
-
Type and run the command :
diskpart
-
Type and run the command :
sel disk 0
-
Type and run the command :
list vol
-
-
Verify that the EFI partition (EPS - EFI System Partition) is using the FAT32 file system and assign a drive letter to it (Assign a letter that isn't already in use.):
-
Type and run the command :
sel vol <number of volume>
-
Type and run the command :
assign letter=<drive letter>:
-
Type and run the command :
exit
-
-
In order to repair the boot record :
-
Type and run the command :
cd /d <drive letter>:\EFI\Microsoft\Boot\
-
Type and run the command :
bootrec /FixBoot
-
If you don't have the Installation Media :
-
Restart your PC
-
Tap rapidly on the <F8> key once the PC has turned on, but before the Windows Splash Screen appears.
Please be aware this may take several attempts. The timing for this option was shortened significantly from that in Windows 7.
-
Select Repair your computer from the menu that appears.
-
Select Command Prompt from the Troubleshoot screen :
-
Type and run the command :
diskpart
-
Type and run the command :
sel disk 0
-
Type and run the command :
list vol
-
-
Verify that the EFI partition (EPS - EFI System Partition) is using the FAT32 file system and assign a drive letter to it (Assign a letter that isn't already in use.):
-
Type and run the command :
sel vol <number of volume>
-
Type and run the command :
assign letter=<drive letter>:
-
Type and run the command :
exit
-
-
In order to repair the boot record :
-
Type and run the command :
cd /d <drive letter>:\EFI\Microsoft\Boot\
-
Type and run the command :
bootrec /FixBoot
-
The next step is the same across all the operating systems at this point :
-
Rebuild the BCD store
-
First run the command below to backup the old BCD :
ren BCD BCD.old
-
Now recreate it using this command :
bcdboot c:\Windows /l en-us /s <boot letter>: All
Windows 10
If you do have the Installation Media :
-
Insert the Media (DVD/USB) in your PC and restart.
-
Boot from the media.
-
Select Repair Your Computer.
-
Select Troubleshoot.
-
Select Advanced Options.
-
Choose Command Prompt from the menu :
-
Type and run the command :
diskpart
-
Type and run the command :
sel disk 0
-
Type and run the command :
list vol
-
-
Verify that the EFI partition (EPS - EFI System Partition) is using the FAT32 file system and assign a drive letter to it (Assign a letter that isn't already in use.):
-
Type and run the command :
sel vol <number of volume>
-
Type and run the command :
assign letter=<drive letter>:
-
Type and run the command :
exit
-
-
In order to repair the boot record :
-
Type and run the command :
cd /d <drive letter>:\EFI\Microsoft\Boot\
-
Type and run the command :
bootrec /FixBoot
-
If you don't have the Installation Media :
-
Restart your PC
-
Tap rapidly on the <F8> key once the PC has turned on, but before the Windows Splash Screen appears.
Please be aware this may take several attempts. The timing for this option was shortened significantly from that in Windows 7.
-
Select Repair your computer from the menu that appears.
-
Select Command Prompt from the Advanced Options tab in the Troubleshoot screen :
-
Type and run the command :
diskpart
-
Type and run the command :
sel disk 0
-
Type and run the command :
list vol
-
-
Verify that the EFI partition (EPS - EFI System Partition) is using the FAT32 file system and assign a drive letter to it (Assign a letter that isn't already in use.):
-
Type and run the command :
sel vol <number of volume>
-
Type and run the command :
assign letter=<drive letter>:
-
Type and run the command :
exit
-
-
In order to repair the boot record :
-
Type and run the command :
cd /d <drive letter>:\EFI\Microsoft\Boot\
-
Type and run the command :
bootrec /FixBoot
-
The next step is the same across all the operating systems at this point :
-
Rebuild the BCD store
-
First run the command below to backup the old BCD :
ren BCD BCD.old
-
Now recreate it using this command :
bcdboot c:\Windows /l en-us /s <boot letter>: All
Note: If you are creating boot entries on an attached USB Flash or other external drive add /f between the : and the ALL. Please remember that the <boot letter> is replaced with whatever the letter of the drive you are booting from is. (ie. C:\, D:\)
How to repair your MBR (Master Boot Record)
These steps apply to any legacy drive used as a boot drive on any recent Windows Operating system.
-
Using the F12 key at the Splash screen to enter a menu that lets you boot from the Windows installation media or a bootable disc or flash drive.
-
Click on the Repair your Computer link at the bottom of the Install Now screen.
-
Click on Troubleshoot
-
Select Command Prompt
-
Enter the following three commands in turn, following each by pressing the Enter key:
bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd -
Restart the PC with the installation media removed to check if the repair worked
What to do if you are still unable to boot into Windows
If you have attempted to perform the steps above, you will need to locate and install a new, fresh copy of Windows onto your machine, keeping the same partition structure as before.
After completing the fresh installation, you will need to boot into the DRBoot disk, and restore only your "C:" and any User Data partitions inside of your Image Backup, one partition at a time, instead of the entire disk.
Most of the contents of this article originated here