If you accidentally deleted your boot partition, your PC will not start, but the data is usually recoverable and the partition can be rebuilt. You can fix this by booting from Windows installation media and using the Command Prompt to run bootrec commands, or by using a third-party partition recovery tool. This article explains exactly what the boot partition does, why its deletion stops Windows from loading, and the step-by-step methods to restore it.
What Is the Boot Partition and What Does It Do?
The boot partition (often called the EFI System Partition on UEFI systems or the System Reserved partition on older BIOS systems) is a small, hidden partition that stores the files Windows needs to start. On UEFI systems, it contains the Boot Manager (bootmgfw.efi) and the Boot Configuration Data (BCD) store. On BIOS systems, it holds bootmgr and the BCD. When you press the power button, the firmware looks for this partition, loads the boot manager, and then hands control to the Windows loader on the main C: drive.
Without this partition, the firmware cannot find a bootable operating system, so you see an error like “No bootable device� or “An operating system wasn’t found.� The rest of your data—documents, photos, installed programs—is usually still intact on the C: drive, because deleting the boot partition only removes the startup files, not your personal files.
Why Does the Boot Partition Get Deleted?
Accidental deletion usually happens when you are trying to clean up disks or resize partitions. Common scenarios include:
- Using Disk Management and deleting the 100 MB System Reserved partition thinking it is unnecessary.
- Running a third-party partition tool and selecting the wrong partition.
- Formatting the EFI partition while trying to remove a Linux installation.
- Using a “clean� command on the wrong disk in DiskPart.
If you have not overwritten the space with new data, recovery is straightforward. Even if you have, the boot files are small and may still be recoverable with specialized software.
Method 1: Rebuild the Boot Partition with bootrec
This is the most reliable method and works on both UEFI and BIOS systems. You need a Windows installation USB or DVD. If you do not have one, you can create it on another computer using Microsoft’s Media Creation Tool.
- Insert the Windows installation media and boot from it. You may need to change the boot order in your BIOS/UEFI settings.
- On the first screen, click “Next,� then click “Repair your computer� in the bottom-left corner.
- Go to Troubleshoot → Advanced options → Command Prompt.
- Type
diskpartand press Enter. - Type
list diskto see your disks. Identify the disk that contains your Windows installation (usually Disk 0). - Type
select disk 0(replace 0 with your disk number). - Type
list partitionto see the partitions. Look for an unallocated space or a partition without a file system. If the EFI partition is missing entirely, you will see unallocated space. - If you have unallocated space, create a new EFI partition: type
create partition efi size=100(orcreate partition primary size=100for BIOS). Then typeformat quick fs=fat32(for EFI) orformat quick fs=ntfs(for BIOS). - Exit diskpart by typing
exit. - Now run these commands one by one:
bootrec /fixmbr– repairs the master boot record.bootrec /fixboot– writes a new boot sector.bootrec /scanos– scans for Windows installations.bootrec /rebuildbcd– rebuilds the Boot Configuration Data.
- If you get an error on
/fixbootsaying “Access is denied,� you may need to assign a drive letter to the EFI partition first. In diskpart, select the EFI partition and typeassign letter=S:, then exit and runbcdboot C:\Windows /s S: /f UEFI(adjust paths as needed). - Type
exitand restart your PC. Remove the installation media.
If the bootrec commands complete without errors, Windows should start normally. If you see “The system cannot find the path specified,� the C: drive letter might be different in the recovery environment. Use dir to explore and find the correct drive.
Method 2: Use a Partition Recovery Tool
If you did not create a new partition and the old one is still marked as “unallocated,� you can recover it with a dedicated partition recovery program. Tools like TestDisk (free, open-source) or commercial options like EaseUS Partition Master can scan the disk for lost partitions and restore them. These tools work by reading the partition table and finding the original EFI partition’s location and size.
Steps for TestDisk (command-line):
- Download TestDisk on another computer and put it on a USB drive.
- Boot from a Windows installation USB, open Command Prompt, and run TestDisk from the USB.
- Select your disk, choose “Intel� for the partition table type, then “Analyse� and “Quick Search.�
- If it finds the missing EFI partition, select it and choose “Write� to restore the partition table.
- Reboot. Windows should start.
Graphical tools are easier if you can boot into a live Linux environment or a Windows PE. The principle is the same: scan for lost partitions, restore the EFI partition, and reboot.
What If the Boot Partition Is Overwritten?
If you formatted the partition or installed another OS over it, the original boot files are gone. You can still rebuild the partition from scratch using the bootrec method, because Windows can generate new boot files from the installation media. The only data you lose is the old boot configuration—which you do not need anyway. Your personal files on C: remain untouched.
If you accidentally deleted the entire disk (all partitions), you need to recover the C: partition first using a tool like TestDisk or a data recovery program. Once C: is back, you can then create a new EFI partition and run bcdboot to point to it.
Preventing Future Accidents
To avoid deleting the boot partition again, follow these practices:
- Before using any disk tool, open Disk Management and note which partitions are System, EFI, or Recovery. Do not delete them.
- When shrinking or extending partitions, use Windows’ built-in Disk Management instead of third-party tools unless you are experienced.
- Always back up your data regularly. A partition mishap is a common reason for data loss.
- If you dual-boot with Linux, be careful when deleting Linux partitions—the EFI partition is shared and should not be removed.
Frequently Asked Questions
Can I recover files from the deleted boot partition?
The boot partition usually does not contain personal files, only system boot files. So there is nothing valuable to recover. Your documents and photos are on the C: drive, which is separate.
Will I lose my installed programs if I rebuild the boot partition?
No. Rebuilding the boot partition only affects the startup files. Your installed programs and personal data on C: remain intact. After the fix, everything should work as before.
What is the difference between MBR and GPT?
MBR (Master Boot Record) is the older partitioning scheme used with BIOS, while GPT (GUID Partition Table) is the newer standard for UEFI. The boot partition type differs: MBR uses a System Reserved partition (NTFS), GPT uses an EFI System Partition (FAT32). The repair steps are similar, but the partition creation commands differ.
Can I use a Linux live USB to fix the boot partition?
Yes. You can boot from a Linux live USB and use tools like GParted to create a new EFI partition, or use the terminal to run efibootmgr and grub-install. However, the Windows bootrec method is simpler if you have Windows installation media.
Why does my PC still not boot after running bootrec?
Possible reasons: the EFI partition was not created with the correct size or file system, the BCD rebuild did not find Windows (wrong drive letter), or the firmware boot order is wrong. Try running bcdboot C:\Windows after creating the partition, and check the BIOS boot mode (UEFI vs Legacy) matches your installation.
Is it safe to delete the System Reserved partition on a working PC?
No. Deleting it will make Windows unbootable. If you need to free space, use Disk Management to shrink other partitions, but never delete the System Reserved or EFI partition.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Second Wind Quest Walkthrough: Where Winds Meet6.00 min/km
- Enshrouded Weapon Upgrade Guide: How to Improve Gear5.00 min/km
- Connect Phone to Controller for Cloud Gaming
- Python Search Highlighting: Snippets & Matches
- Secure Boot Battlefield 6 ASUS: Fix & Enable Guide
- Best Tech Websites to Follow for Pros & Beginners