If you recently moved from BIOS to UEFI and you cannot boot your computer since then, here is how you can repair the EFI bootloader in Windows 11/10. It is pretty easy to repair the EFI bootloader using bcdboot command, and this article shows how you can use the command to get the job done.
What is the EFI bootloader in Windows?
EFI boot loader files are executables on UEFI systems that contain data on how the computer boot process should proceed. If you are using a UEFI system instead of BIOS, you can find an additional particular called EFI System Partition. It stores the data of the EFI bootloader, which is mainly some .efi files. However, if there are some issues with this partition, you might not be able to boot your computer regularly.
Although the EFI partition doesn’t require a drive letter to stay on your computer and work without error, at times, it creates issues. There are mainly two ways to repair the EFI bootloader in Windows 11: Using the bcdboot command and changing the drive letter. However, if the latter solution works only when there are some minor issues. Other than that, you must use the bcdboot command to get rid of any EFI bootloader problem automatically.
How to repair the EFI bootloader in Windows 11/10
To repair the EFI bootloader in Windows 11 or Windows 10, follow these steps:
- Change drive letter
- Use bcdboot command
You might want to read about the Boot Configuration Data (BCD) Editor before you proceed.
1] Change drive letter
It is the first thing you need to do if you can boot into your computer after moving to the UEFI architecture. You need to open Advanced Recovery Mode.
For that, press Win+I to open Windows Settings and go to System > Recovery. Here you can find the Advanced startup option. You need to click the Restart now button.
After opening the next window, go to Troubleshoot > Advanced options and select the Command Prompt option.
Following that, enter these commands:
diskpart list vol select volume 1
You need to select the EFI partition by entering the assigned number.
After that, close the Command Prompt and restart your computer.
If you cannot boot into your computer, you need to follow other methods to open Advanced Recovery Mode. For that, you need to restart your computer 2-4 times within a short period of time.
After using the aforementioned steps, you need to use the bcdboot command to fix all the boot records.
2] Use bcdboot command
The bcdboot commands help you replace the corrupted EFI files with the new ones so that your system works flawlessly. For that, you need to enter the following command in the Command Prompt:
It rebuilds the Boot Configuration Data file or BCD file.
After that, enter this command:
bcdboot c:windows /s c:
Don’t forget to replace the c with your original system drive’s letter. In most cases, it is named after c. However, if you have assigned something else, you need to enter the drive letter here.
Also, here we have used the /s parameter, which helps users choose the volume of a system partition. Because of that, this command will copy the boot files in the mentioned volume.
Finally, you need to restart your computer.
How do I fix my EFI bootloader?
To fix the EFI bootloader, you need to do two things – change the drive letter and fix the boot records. For both, you must open the Command Prompt in Advanced Recovery Mode. After that, you can use the DISKPART to change the drive letter and bcdboot to fix the boot records.
How can I repair the Windows 11/10 EFI bootloader?
To repair the Windows 11/10 EFI bootloader, you must use the bcdboot command. It helps you copy the boot configuration data files to the EFI partition. Before that, you need to use the diskpart to change or assign a drive letter to the EFI partition.
That’s all! Hope this guide helped.
Read: Windows computer won’t boot after enabling Secure Boot.