Skip to content

Instantly share code, notes, and snippets.

@dp21g
Created August 24, 2024 09:43
Show Gist options
  • Save dp21g/9a13ab8b4b117da257cb420d80ea8dd2 to your computer and use it in GitHub Desktop.
Save dp21g/9a13ab8b4b117da257cb420d80ea8dd2 to your computer and use it in GitHub Desktop.

How to Fix the Bootloader on the EFI System Partition in Windows causing Blue screen of death(BSOD) and infinite boot loop.

Step 1: Access the Windows Repair Menu

  1. Use a USB bootable Windows drive to access the repair menu.
  2. Open the Command Prompt from the repair menu.

Step 2: Assign a Drive Letter to the EFI Partition

  1. In the Command Prompt, type diskpart and press Enter.
  2. List the volumes by typing list volume and press Enter.
  3. Identify the EFI System Partition, then type select volume X (replace X with the volume number of the EFI partition) and press Enter.
  4. Assign a temporary drive letter by typing assign letter=Z (replace Z with any available drive letter) and press Enter.
  5. Exit DiskPart by typing exit and press Enter.

Step 3: Repair Boot Files on a GPT Drive

  1. 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.

Step 4: Remove the Temporary Drive Letter

  1. Re-enter DiskPart by typing diskpart and pressing Enter.
  2. Select the EFI partition again by typing select volume X (use the same volume number as before) and press Enter.
  3. Remove the temporary drive letter by typing remove letter=Z and press Enter.
  4. Exit DiskPart by typing exit and press Enter.

Step 5: Restart and Test

  1. Restart your computer and check if it boots successfully into Windows.

Step 6: Update your motherboard bios

mine was from https://nzxt.com/product/n7-z790

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment