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
diskpart
and press Enter. - List the volumes by typing
list volume
and press Enter. - Identify the EFI System Partition, then type
select volume X
(replaceX
with the volume number of the EFI partition) and press Enter. - Assign a temporary drive letter by typing
assign letter=Z
(replaceZ
with any available drive letter) and press Enter. - Exit DiskPart by typing
exit
and 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
diskpart
and 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=Z
and press Enter. - Exit DiskPart by typing
exit
and press Enter.
- Restart your computer and check if it boots successfully into Windows.
mine was from https://nzxt.com/product/n7-z790