Repair Deleted EFI Partition Windows 7
In this article
Yes, you can repair a deleted EFI partition in Windows 7, but only if the system was originally installed in UEFI mode—which is rare. Most Windows 7 systems use BIOS with MBR, not UEFI and GPT. If your system does use UEFI (typically on newer hardware that came with Windows 7 preinstalled in UEFI mode), and the EFI partition was accidentally deleted, you must recreate it using command-line tools from a Windows installation or recovery disc. This process restores the system’s ability to boot by rebuilding the EFI system partition and reinstalling boot files.
What You'll Need
- A Windows 7 installation disc or USB drive
- Access to the command prompt in recovery mode
- A second computer (to create bootable media if needed)
- Basic knowledge of disk partitioning and command-line tools
- Backup of important data (recommended before making disk changes)
Step-by-Step
- Insert the Windows 7 installation disc or USB and boot from it. On startup, press the appropriate key (often F12, F2, or Del) to enter the boot menu and select the installation media.
- Choose your language preferences and click "Next."
- Click "Repair your computer" at the bottom-left of the setup screen.
- Select the Windows installation (usually under C:\) and click "Next."
- Choose "Command Prompt" from the list of recovery tools.
- In the command prompt, type
diskpartand press Enter to launch the disk partitioning tool. - Type
list diskand press Enter. Identify the disk that contains your Windows installation (usually Disk 0). - Type
select disk 0(or the appropriate disk number) and press Enter. - Type
list partitionto see existing partitions. Look for any EFI or system partitions. If missing, proceed. - Type
create partition efi size=100and press Enter. This creates a new 100MB EFI partition. - Type
format quick fs=fat32and press Enter to format the partition. - Type
assign letter=S(or another unused letter) and press Enter to assign a drive letter temporarily. - Type
exitto leave diskpart. - Now, reinstall boot files. Type
bcdboot C:\Windows /s S: /f UEFIand press Enter. Replace "C:" with your Windows drive if different, and "S:" with the letter you assigned. - Close the command prompt and restart the computer. Remove the installation media when prompted.
Common Mistakes
Selecting the wrong disk or partition can result in data loss. Always double-check the disk number and partition list before making changes. Another common error is using MBR instead of GPT—Windows 7 UEFI systems require GPT partitioning. If your disk is MBR, you cannot create a proper EFI partition without converting to GPT, which requires wiping the disk. Also, forgetting to assign a drive letter in diskpart prevents bcdboot from accessing the EFI partition. Lastly, running bcdboot without the /f UEFI flag results in a BIOS-style boot entry, which won’t work on UEFI systems.
Tips
Before starting, confirm your system uses UEFI. Check the BIOS/UEFI firmware settings for a UEFI boot option or look for a "Secure Boot" setting. If your system boots in legacy BIOS mode, you don’t have an EFI partition—your boot files are stored in the system reserved partition instead. Use bootrec /fixmbr, bootrec /fixboot, and bootrec /rebuildbcd for BIOS systems. Always back up your data before modifying partitions. If diskpart shows no partitions, your disk may be failing—run hardware diagnostics first. Use consistent drive letters and avoid assigning letters used by other drives.
Troubleshooting
If the system still won’t boot after recreating the EFI partition, check that the disk is set to boot in UEFI mode in the firmware settings. If it boots in legacy mode, the UEFI boot entry won’t be used. If bcdboot fails with "Failed to create boot file," verify that the Windows installation on C:\ is intact and not corrupted. Run sfc /scannow from recovery if accessible. If diskpart doesn’t recognize the disk, ensure the drive is detected in the BIOS and connected properly. If the EFI partition exists but is unformatted or has the wrong file system, reformat it as FAT32 using diskpart. If you get "Access is denied" when assigning a letter, run the command prompt as administrator—this is automatic in recovery mode, but verify permissions.
Frequently Asked Questions
Can Windows 7 use EFI partitions?
Yes, but only if installed on UEFI systems with GPT disks. Most Windows 7 systems use BIOS and MBR, so EFI partitions are uncommon.
What size should the EFI partition be?
100MB is standard. Microsoft recommends at least 100MB for UEFI systems.
Can I recover data if the EFI partition is deleted?
Yes. The EFI partition contains only boot files, not user data. Your personal files remain safe unless other partitions were affected.
Do I need to reinstall Windows after fixing the EFI partition?
No. Recreating the EFI partition and using bcdboot restores bootability without reinstalling Windows.
Why does bcdboot fail with 'invalid parameter'?
This usually means a typo in the command or incorrect drive letters. Double-check syntax and ensure the EFI partition has a drive letter assigned.
Can I use third-party tools to fix the EFI partition?
Some tools like EasyUEFI or AOMEI Partition Assistant can assist, but manual diskpart and bcdboot are more reliable and built into Windows.