Cómo recuperar una partición del sistema EFI eliminada en Windows

Cómo reparar una partición de arranque EFI de Windows faltante o eliminada

Si alguna vez has manipulado particiones de disco o formateado accidentalmente la partición EFI en un equipo con UEFI, conoces la sensación de pánico que surge cuando Windows simplemente…deja de arrancar. Normalmente, el sistema muestra el error clásico » Reboot and select proper boot deviceno encuentra los archivos EFI necesarios para iniciar».Puede ser un verdadero dolor de cabeza, sobre todo si quieres evitar reinstalar Windows desde cero. La buena noticia es que, con un poco de paciencia y la magia de la CLI, puedes recrear esas particiones EFI y MSR esenciales y que tu sistema vuelva a arrancar. Este método suele ser aplicable en equipos con Windows 10, 11 e incluso Windows Server, básicamente todos los equipos con UEFI.

Sin embargo, tenga cuidado: manipular las particiones del disco puede salir mal rápidamente. Si no se siente cómodo con comandos como diskpartcopiar archivos EFI, conviene hacer primero algunas copias de seguridad o, al menos, comprender la función de cada paso. El proceso implica arrancar desde el medio de instalación de Windows, crear las particiones EFI y MSR, y luego restaurar el gestor de arranque. De esta forma, no tendrá que reinstalar el sistema operativo; simplemente reactive el entorno de arranque existente.

🎯 Cómo reconstruir la partición de arranque EFI en un disco UEFI

Método 1: Usar Diskpart y BCDboot para recrear particiones EFI y MSR

Esta es la forma más sencilla, pero requiere iniciar un entorno de recuperación. Necesitará una unidad USB de instalación o recuperación de Windows con el modo UEFI habilitado. No es la configuración más sencilla, pero es factible. En el símbolo del sistema (Mayús + F10 desde el instalador), puede manipular las particiones del disco directamente con diskpart.

  1. Arranque desde el medio de instalación de Windows. Asegúrese de arrancar en modo UEFI. Si no está seguro, revise la configuración de BIOS/UEFI o consulte las opciones de arranque; debería mencionar UEFI explícitamente.
  2. Una vez en la pantalla del instalador, pulsa Shift + F10para acceder al símbolo del sistema. No te preocupes, es como un shell de Windows, pero en modo de recuperación.
  3. Escribe diskparty pulsa Intro. Ahora, enumera tus discos con: list disk. Si tu disco muestra un * en la columna GPT, es un disco GPT, lo que significa que el modo UEFI está configurado correctamente.
  4. Seleccione el disco principal: select disk 0. Tenga mucho cuidado: elegir el disco incorrecto puede causar problemas.
  5. Ahora, enumere las particiones actuales: list partition. Lo más probable es que su partición EFI no esté disponible o esté dañada.
  6. Si la partición EFI existe, pero está dañada, a veces basta con repararla, pero a menudo es necesario recrearla. Si falta, necesitará espacio no asignado para crear nuevas particiones EFI y MSR.
  7. Para eliminar cualquier MSR existente que esté seguro de que está dañado, selecciónelo: select partition N(reemplace N con el número de partición) y luego elimínelo: delete partition override. Confirme que no está eliminando un volumen crucial verificando con list partition.
  8. A continuación, debe crear la partición EFI. Asegúrese de tener al menos 100 MB de espacio libre sin asignar:
    • Elige tu disco nuevamente:select disk 0
    • Crear partición EFI: create partition efi size=100(esto crea una partición FAT32 de 100 MB).
    • Formatee y asígnele una letra de unidad: select partition 1(asumiendo que es la nueva, verifique con list partition), luego:
      • format quick fs=fat32 label="System"
      • assign letter=G
  9. Ahora, recrea la partición MSR. Usa el comando Diskpart: create partition msr size=16. Esta es una pequeña partición de 16 MB que Windows usa para el sistema.
  10. Si Diskpart se queja de que no hay suficiente espacio libre, es posible que tengas que reducir el tamaño de tu partición principal de Windows (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.