Fix: Could Not Locate EFI\BOOT\BOOTX64.EFI Error | Explained & Solved!
The issue “Could not locate efi\boot\bootx64.efi” occurs when the system’s UEFI firmware cannot find the necessary boot-loader files. Common causes include incorrect USB formatting, mismatched partition styles between the USB and the target disk, or restrictive Secure Boot settings that restrict boot-loader access.
In simple terms, this error indicates a disconnect between your bootable device and your system’s UEFI settings. This typically happens during installations or repairs of Windows. By ensuring proper partitioning, file formats, and BIOS configurations, you can resolve this issue quickly. Let’s resolve the issue!
Note: This guide specifically addresses the EFI boot error issue during the installation or repair of Windows operating systems. While similar issues may occur in other environments, such as Linux distributions, the instructions and solutions provided here are tailored for Windows users. For non-Windows operating systems, please refer to resources specific to those environments.
Things to Know Before Proceeding:
It’s important to understand that UEFI has largely replaced the traditional BIOS in modern systems. Legacy mode (or CSM) is included in UEFI systems to support older operating systems and hardware. This guide will help you determine your system’s current boot mode and make necessary changes to resolve the EFI boot error.
How to Check if Your BIOS is Legacy or UEFI from Windows:
- If Legacy mode (often referred to as Compatibility Support Module or CSM) is enabled in your UEFI firmware settings, your system is mimicking traditional BIOS behavior and typically uses an MBR (Master Boot Record) partitioning style.
- If UEFI mode is active in your firmware settings, your system can utilize the GPT (GUID Partition Table) partitioning style, which is more advanced than MBR and offers additional features.
- Press Windows + S keys together and search for “System Information“.
- In the System Summary, find the BIOS Mode.
- Check if it’s UEFI or Legacy/BIOS.
Since we’re encountering an issue with installing Windows, it’s likely related to Legacy/BIOS settings. Let’s check the details first and then proceed with a fresh start.
Check for Hardware Specifications:
- Press the appropriate key to Enter BIOS.
- While the PC is restarting, press the BIOS key repeatedly to enter the BIOS menu.
- In the BIOS menu, look for the Boot or Advanced section.
- Look for an option related to UEFI or BOOT Mode. If you see UEFI listed, your motherboard supports it. If not, your system may only support legacy BIOS.
How to Check Your Current Partition Format (GPT or MBR)
- Press Windows + S, type Disk Management, and open it.
- Find your current boot disk (usually identified by its size).
- Right-click on it, select Properties,
- Check the Partition style under disk information in the Volume tab. It will show either GUID Partition Table (GPT) or Master Boot Record (MBR).
Once everything is verified, you can start the installation process smoothly. This guide covers all possible causes of the error, so follow it carefully to fix any related issues.
1. Convert MBR to GPT Using Windows Command Prompt:
If your system supports UEFI as mentioned above, you must convert the partition style from MBR to GPT if its current state is MBR.
CRITICAL WARNING:
- Converting a disk from MBR to GPT involves the “clean” command, which will erase all data and partitions on the selected disk. This action is irreversible and will result in total data loss if a backup is not created beforehand. Ensure you have securely backed up all important data before proceeding with the conversion.
- Furthermore, do not proceed with converting to GPT unless your hardware explicitly supports UEFI mode. Attempting to boot a GPT disk on a system that only supports Legacy/BIOS will prevent Windows from loading. Verify your system’s compatibility with UEFI to avoid accessibility issues post-conversion.
Follow these steps before enabling UEFI mode from BIOS:
- Boot into Windows (while BIOS is still set to Legacy; otherwise, you cannot access Windows).
- Open Windows Search by pressing Win + S, type cmd, right-click on it, and select Run as administrator.
- Type the following commands one by one to convert MBR to GPT:
diskpart List Disk select disk X (Replace "X" with the number of the disk you want to convert) clean convert gpt
2. Enable UEFI Mode for GPT Compatibility
Once we have converted our disk from MBR to GPT, to resolve the “Could not locate efi\boot\bootx64.efi” error, it’s crucial to ensure that your system is set to UEFI mode when using the GPT partition style. Be sure to select it to allow UEFI to read the (GPT) disk partition style.
Enable UEFI Mode for GPT Compatibility and Check UEFI Support:
As we convert our partition from MBR to GPT to resolve the “Could not locate efi\boot\bootx64.efi” error, it’s important to make sure your system is set to UEFI mode from BIOS, as mentioned above
Navigate to Boot Options in BIOS/UEFI:
- Once inside BIOS/UEFI, you’ll need to find the boot configuration settings. This can vary depending on the manufacturer, but generally it’s Del, F2, or ESC—search for your motherboard model online for the BIOS Setup key.
- Look for a tab or menu labeled Boot, Boot Options, Boot Order, or Advanced Boot.
- You should see options like UEFI, Legacy, or UEFI/Legacy.
- Make sure to select UEFI to read the GPT disk partition style.Important: Some systems may automatically switch to UEFI when you use GPT partitioning, so you may only need to verify this setting.
- After making changes, press the appropriate key or find the exit option to Save and Exit.
- Confirm the changes when prompted and allow your system to reboot.
3. Use the Correct ISO for Your System
Just as we verified the UEFI-related settings on your motherboard in the first step, now we will verify the Windows ISO file and recreate it to ensure there are no issues.
In most cases, when we download files from third-party websites, these issues can arise. Sometimes, it’s also due to improper bootable configurations. We will use the Official Windows Media Creation Tool to create a bootable USB drive again. This way, we ensure that the ISO file we’ve downloaded is official and correct.
- Go to the official Microsoft download page for Windows 11 or Windows 10 (depending on your system).
- Scroll down and find the section for “Create Windows Installation Media” and click “Download Now” to get the Media Creation Tool.
- Once downloaded, open the tool and accept the license agreement.
- You will be prompted with “What do you want to do?” Choose Create installation media (USB flash drive, DVD, or ISO file) for another PC.
- Choose the Windows requirements: Architecture, language, and edition.
- Choose “USB flash Drive” as the media type to create the bootable USB drive.
- Ensure the USB drive is connected and has at least 8GB of free space.
- The Media Creation Tool will now download the Windows ISO and automatically create the bootable USB. This may take some time, depending on your internet speed.
- Once the process is complete, check your USB drive to ensure it has the necessary boot files and that the ISO is correctly copied. To test if your USB drive is bootable, you can restart your computer and boot from the USB.
4. Still Facing the Error? Fix GPT/MBR and UEFI Issues
Many users get stuck when using a GPT-formatted USB. They enable UEFI from the BIOS but still face issues because their partition is still MBR, which causes the problem. In this case, disable UEFI in BIOS, insert the MBR bootable USB, and follow the steps under Repair Windows → Troubleshoot → Advanced → Command Prompt.
Using the commands mentioned in Step 1 can help solve the “Could not locate efi\boot\bootx64.efi” issue. After converting the disk, restart your PC, insert the GPT-formatted bootable USB, enable UEFI again from BIOS, and you’re all set. If you encounter any further issues, feel free to reach out at zubyan@appuals.com. Good luck!