How to Repair EFI Bootloader on a GPT HDD for Windows 10/8/7?
Geeks - Repairing the EFI bootloader on a GPT HDD (GUID Partition Table hard drive) can be necessary if the bootloader has become corrupt or if you want to change the boot order of your installed operating systems. Here are the steps you can follow to repair the EFI bootloader on a GPT HDD for Windows 10, 8, or 7:
Make sure you have a bootable Windows installation media, such as a USB drive or DVD, and a working computer.
Connect the bootable Windows installation media to the computer, and restart the computer. Press the appropriate key to enter the boot menu and select the bootable installation media.
When the Windows setup screen appears, select your language and other preferences, and then click "Next."
Click "Install Now," and then accept the license terms.
Choose the "Custom" installation option, and then select the GPT HDD where you want to install Windows.
After the installation process is complete, open the command prompt as an administrator.
Type the following command to identify the drive letter of the EFI partition: "diskpart," "list disk," "select disk X" (where X is the number of the GPT HDD), "list partition," "select partition Y" (where Y is the number of the EFI partition).
Type the following command to assign a drive letter to the EFI partition: "assign letter=Z" (where Z is the drive letter you want to assign to the EFI partition).
Type the following command to access the EFI partition: "exit," "Z:," "cd EFI," "cd Microsoft," "cd Boot."
Type the following command to rebuild the boot configuration data (BCD) store: "bootrec /rebuildbcd."
Type the following command to repair the bootloader: "bootrec /fixboot."
Restart the computer, and the EFI bootloader should now be repaired.
Note: These steps assume that you are repairing the EFI bootloader on the same version of Windows that was originally installed on the GPT HDD. If you are repairing the EFI bootloader on a different version of Windows, you may need to use different commands or a different method.