Hoe herstel ik een verwijderde EFI-systeempartitie in Windows?

Hoe u een ontbrekende of verwijderde Windows EFI-opstartpartitie kunt herstellen

Als je ooit met schijfpartities hebt geëxperimenteerd of per ongeluk de EFI-partitie op een UEFI-machine hebt geformatteerd, dan weet je hoe frustrerend het kan zijn als Windows gewoon niet meer opstart. Meestal geeft je systeem dan een klassieke foutmelding, zoals ” Reboot and select proper boot devicekan de benodigde EFI-bestanden niet vinden”.Dat kan behoorlijk frustrerend zijn, vooral als je Windows niet helemaal opnieuw wilt installeren. Het goede nieuws is dat je met wat commandoregel-trucs en een beetje geduld die essentiële EFI- en MSR-partities opnieuw kunt aanmaken en je systeem weer opstartbaar kunt maken. Deze aanpak is meestal van toepassing op Windows 10, 11 en zelfs Windows Server-machines – in principe alle UEFI-systemen.

Wees gewaarschuwd: het wijzigen van schijfpartities kan snel misgaan. Als je niet vertrouwd bent met commando’s zoals diskpartof het kopiëren van EFI-bestanden, is het verstandig om eerst back-ups te maken of in ieder geval te begrijpen wat elke stap doet. Het proces omvat opstarten vanaf Windows-installatiemedia, het aanmaken van de EFI- en MSR-partities en vervolgens het herstellen van de bootloader. Op die manier hoef je het besturingssysteem niet opnieuw te installeren, maar herstel je de bestaande opstartomgeving.

🎯 Hoe de EFI-opstartpartitie op een UEFI-schijf opnieuw op te bouwen

Methode 1: EFI- en MSR-partities opnieuw aanmaken met Diskpart en BCDboot

Dit is de meest eenvoudige manier, maar hiervoor moet je opstarten in een herstelomgeving. Je hebt een USB-installatie- of herstel-USB-stick nodig met de UEFI-modus ingeschakeld. Ja, niet de makkelijkste installatie, maar zeker mogelijk. Wanneer je in de opdrachtprompt bent (Shift + F10 vanuit het installatieprogramma), kun je de schijfpartities rechtstreeks beheren met de opdrachtprompt diskpart.

  1. Start op vanaf je Windows-installatiemedium. Zorg ervoor dat je opstart in UEFI-modus. Als je het niet zeker weet, controleer dan je BIOS/UEFI-instellingen of bekijk de opstartopties; daar zou UEFI expliciet vermeld moeten staan.
  2. Zodra het installatiescherm verschijnt, druk je Shift + F10op de toets om de opdrachtprompt te openen. Geen zorgen, het is net als een Windows-shell, maar dan in herstelmodus.
  3. Typ diskparten druk op Enter. Geef nu een lijst van je schijven op met: list disk. Als er een * in de GPT-kolom van je schijf staat, heb je een GPT-schijf, wat betekent dat de UEFI-modus correct is ingesteld.
  4. Selecteer de primaire schijf: select disk 0. Wees hier zeer voorzichtig — het kiezen van de verkeerde schijf kan problemen veroorzaken.
  5. Geef nu een lijst van de huidige partities: list partition. Hoogstwaarschijnlijk ontbreekt uw EFI-partitie of is deze beschadigd.
  6. Als de EFI-partitie bestaat maar beschadigd is, is reparatie soms voldoende, maar vaak moet deze opnieuw worden aangemaakt. Als de partitie ontbreekt, hebt u wat ongebruikte ruimte nodig om nieuwe EFI- en MSR-partities te creëren.
  7. Om een ​​bestaande MSR te verwijderen waarvan u zeker weet dat deze beschadigd is, selecteert u deze: select partition N(vervang N door het partitienummer) en verwijdert u deze vervolgens: delete partition override. Controleer of u geen cruciaal volume verwijdert door dit nogmaals te controleren met list partition.
  8. Vervolgens moet je de EFI-partitie aanmaken. Zorg ervoor dat je minimaal 100 MB aan vrije, niet-toegewezen ruimte hebt:
    • Selecteer uw schijf opnieuw:select disk 0
    • Maak een EFI-partitie aan: create partition efi size=100(hiermee wordt een FAT32-partitie van 100 MB gemaakt).
    • Formatteer de schijf en wijs er een stationsletter aan toe: select partition 1(ervan uitgaande dat het de nieuwe schijf is, controleer dit met list partition), en vervolgens:
      • format quick fs=fat32 label="System"
      • assign letter=G
  9. Maak nu de MSR-partitie opnieuw aan. Gebruik hiervoor de Diskpart-opdracht: create partition msr size=16. Dit is een kleine partitie van 16 MB die door Windows wordt gebruikt voor systeembestanden.
  10. Als Diskpart aangeeft dat er onvoldoende vrije ruimte is, moet u mogelijk uw hoofdpartitie van Windows verkleinen (select volume N, then shrink desired=128) to free up space.
  11. Once these are created, exit diskpart: exit.

After partitioning, the next step is copying the EFI boot files and configuring the boot manager.

Method 2: Copying EFI Boot Files and Rebuilding BCD

Once the EFI partition exists, you need to load the Windows boot files there. If you already have a Windows install disk or recovery media, you can use the bcdboot utility to do that automatically:

bcdboot c:\windows /s G: /f UEFI

This command copies all necessary EFI boot files from your Windows system directory to the EFI volume (the G: drive in this example).It also creates a fresh Boot Configuration Data (BCD) store. On some setups, this step is enough for Windows to boot again. Just make sure the EFI partition has the right files, particularly bootmgfw.efi.

To verify, you can check the EFI volume for necessary files:

  • \EFI\Microsoft\Boot\bootmgfw.efi
  • \EFI\Microsoft\Boot\BCD

If all that sounds like voodoo, don’t worry — after running bcdboot, reboot and see if Windows starts normally. Sometimes, you might need to also repair or rebuild the BCD store manually using Windows Recovery options or bcdedit.

Final Tips & When Things Still Fail

Even after fixing the EFI and BCD, some folks run into boot issues — especially if the UEFI boot entries are misconfigured or need to be recreated. In BIOS/UEFI firmware menus, check if the EFI Boot Priority is set correctly, especially if you have multiple drives or USB sticks plugged in.

And always verify that only the EFI partition has the boot flag set. Using a tool like GParted can help make sure the EFI partition is correctly flagged.

If Windows still refuses to boot, it might be worth rebuilding the BCD manually with bcdedit, or replacing the EFI files with clean copies from another working machine.

Wrap-up

This process isn’t as straightforward as clicking "Recover", but sometimes that’s unavoidable when EFI gets hosed. The biggest hurdle is just knowing what commands to run, and sometimes having to shrink a partition or two to get space for the new EFI and MSR slices. On one setup it worked the first try, on another, I needed to repeat parts of the process or retrieve some files by mounting the EFI volume on a working machine. But in the end, it’s surprisingly doable if you have a reasonable grasp of disk management commands and Windows recovery tools.

Summary

  • Boot into recovery mode with Windows installation media in UEFI mode.
  • Use diskpart to identify unallocated space and create EFI (100MB) & MSR (16MB) partitions.
  • Format the EFI partition as FAT32 and assign a drive letter.
  • Copy EFI boot files with bcdboot or manually rebuild BCD with bcdedit.
  • Check UEFI boot options, prioritize the EFI partition, and verify EFI files.

Wrap-up

Hopefully, this gets you back into Windows without the hassle of a full reinstall. Just be cautious when working with disk commands — one slip, and it’s a whole different recovery mission. Usually, recreating the EFI and MSR partitions and restoring the boot files is enough to revive a dead system, whether it's a physical machine or VM. Fingers crossed this helps someone out there avoid full reinstall headaches.