How to Fix the Bootloader on the EFI System Partition in Windows causing Blue screen of death(BSOD) and infinite boot loop.
- Use a USB bootable Windows drive to access the repair menu.
- Open the Command Prompt from the repair menu.
- In the Command Prompt, type
diskpartand press Enter. - List the volumes by typing
list volumeand press Enter. - Identify the EFI System Partition, then type
select volume X(replaceXwith the volume number of the EFI partition) and press Enter. - Assign a temporary drive letter by typing
assign letter=Z(replaceZwith any available drive letter) and press Enter. - Exit DiskPart by typing
exitand press Enter.
-
With the EFI partition now accessible, repair the boot files by typing the following command:
bcdboot C:\Windows /s Z: /f UEFI
Replace C:\Windows with the correct path if Windows is installed on a different drive, and replace Z: with the letter assigned to the EFI partition.
- Re-enter DiskPart by typing
diskpartand pressing Enter. - Select the EFI partition again by typing
select volume X(use the same volume number as before) and press Enter. - Remove the temporary drive letter by typing
remove letter=Zand press Enter. - Exit DiskPart by typing
exitand press Enter.
- Restart your computer and check if it boots successfully into Windows.
mine was from https://nzxt.com/product/n7-z790