If you see an error message on your Windows PC before it even begins to load, then there is a chance that the boot sector on your system partition is damaged, corrupted, or has some files missing. This article focuses on fixing the UEFI boot process.
Let’s repair your Windows 10/11 bootloader!
What is the purpose of UEFI Bootloader?
Boot sector: a small section at the start of a hard drive created when we format a device. It carries some code and data which helps BIOS hand off control of the startup process to the widows. Moreover, it also hosts MBR i.e. Master Boot Record; it carries the disk signature, a partition table for the disk, and a small code known as the master boot code.
When a system starts, BIOS handles the initial power-on routine. It then loads it to the system’s RAM and hands it off to it. It then scans the partition table, determines the active partition, loads a copy of the boot sector into the system’s RAM, and hands it off to that code. This bootstrapping process allows the initial bit of the Windows code to get started with the loading.
It can experience the same problems as any other part of the hard drive like missing files, corrupted files, and even physical damage. When this process fails, it shall happen after users see the BIOS information but before Windows begins to load in real. You shall see the following error messages:
- Error loading operating system
- Missing operating system
- Reboot and select the proper boot device
- Invalid partition table
- Bootmgr is missing
- FATAL: No bootable medium found! System halted.
If you are seeing any of these, then you shall not be able to start Windows and need to use the Windows recovery environment to troubleshoot. Let’s walk you through this process.
Note: If your system begins to load Windows but fails, then the bootloader is not the problem. It would be best if you tried starting the PC safely and troubleshooting from there. Start with system restore as it would be a good place to begin.
3 Methods on How you Can Fix UEFI Bootloader Issues in Windows 10/Windows 11
Check your Master-Boot Record
You can begin by starting your system into this. It is quite possible that the system has a special recovery partition that allows users to start it without requiring any physical disc. How we do this varies with what PC brand we own. You shall see a message often during this telling which key to press or start and repair.
If your system does not have this or you are unsure how to access it, you can start it by using a DVD or USB with a Windows installer on it.
If you do not have the disc, you need to use another system to download a copy of Windows. Create a DVD or USB install disc that can be used to boot your system. If the PC is still operational, you may want to take some precautionary steps to create a recovery drive or system repair disc that can be used in the future.
If you begin your system using this, click until you see the “initial Windows installation screen” and then click the “Repair your computer” link despite starting. If you are starting from the recovery partition or disc, then the screen may look a bit different from the usual, but you shall end up with the same options we will cover here.
- Windows shall load the recovery environment. On the first page, you need to click on the “Troubleshoot” option.
- Advanced options page appears, it carries options that we shall discuss so follow through.
- If you are using Windows 7, then the screens may look different. Users shall see mostly the same options including others discussed below.
READ: How to Disable Private Browsing Mode in Edge.
Run Start-up Repair
In many cases, the user should allow Windows to repair this automatically. It not only attempts to fix this or re-create the boot sector but will also scan for and try to fix other related problems.
- You need to click “Startup Repair”, on the advanced options page.
- The next page shall display all the OS detected on the system, even if the user has clicked only once. Click the OS that you want to repair.
- Windows begins to check for related problems and attempts to repair them.
- As the process is completed, windows will let you know whether the repairs are successful. In any way, you are provided with the option to restart your system or go back to the advanced options page.
READ: Learn why Calibrating Your Monitor is Important.
Repair Master Boot Record from CMD
If you like to handle things by yourself or an automatic repair has failed and you are sure that the issue is with this you can use this for a quick fix.
- Click “Command Prompt” on the advanced options page.
- Once there, you shall be using bootrec In here there are some options that are useful for fixing such errors.
- To restore it, type in the following command and press “Enter”.
- This issued to write a new one compatible with Windows to it without overwriting the present partition table. This is quite a good start to repair such an error resulting from corruption.
Bootrec /fixmbr
- To write a new boot sector to the system partition in spite, type in the following command and press “Enter”. This shall overwrite the current one and can thus at times cause problems if you are set up to boot to a different OS.
- This won’t overwrite any data on actual partitions but you might need to reconfigure your multi-boot options after using this. The command is quite useful when the user suspects any other OS installation or malware might have overwritten this, or if you see this being damaged itself.
Bootrec /fixboot
This one also offers other advanced options. Type in bootrec /? If you want more options for and get help with the command.
READ: How to Configure Stylus Settings for PC.
What you need to do after an OS recovery process
Once you have repaired your system successfully and are able to start Windows then we recommend you to go ahead and perform a few important steps.
- In the first step, you must run the “Disk Utility”. This is used to scan the integrity of the file system and the hard disk. It is always possible that your error message stemmed from any physical problem with the hard disk.
- Then, you need to use the system file checker utility. This is used to scan and fix any corrupted system files. It is unlikely that the steps we have discussed will cause problems with system files, but it is also possible. It is quite easy to check on and fix.
As such error messages can be a bit intimidating as they pop up, because of the little information the user is given when they appear; these are easy to repair. The user needs to know what to look for and have the recovery solution ready to load.
READ: How to turn on the Local Group Policy Editor in Windows 10/11.
Summary
I hope the above has helped you fix the BCD bootrec.exe errors you have seen. We use a variety of EFI shell commands in CMD to repair the bootloader. Let me know if you know of an alternative method that can be mentioned above.