El problema The problem

Me llegó un portátil LG Gram que, al encenderlo, entraba directo en un bucle de "LG Recovery" y no salía de ahí. Cuando intentaba abrir el Boot Menu de la BIOS para ver qué opciones de arranque había, el "Windows Boot Manager" ni siquiera aparecía en la lista. Es decir, el firmware no tenía ni idea de dónde arrancar Windows.

La condición que me puse (y que me pidieron) era clara: arreglarlo sin perder archivos y sin recurrir a restaurar el equipo a valores de fábrica. Nada de empezar de cero borrando todo, que es la salida fácil pero no la que quería.

I got an LG Gram laptop that, on boot, went straight into an "LG Recovery" loop and wouldn't get out of it. When I tried opening the BIOS Boot Menu to see what boot options were available, "Windows Boot Manager" wasn't even on the list. In other words, the firmware had no idea where to boot Windows from.

The condition I set for myself (and that I was asked to keep) was clear: fix it without losing any files and without resorting to a factory reset. No starting from zero by wiping everything, which is the easy way out but not the one I wanted.

Bitácora de resolución Resolution log

Voy a dejar esto tal cual lo fui haciendo, con los errores incluidos, porque el camino hasta la solución cuenta tanto como la propia solución.

I'm leaving this exactly as I went through it, errors included, because the road to the fix matters as much as the fix itself.

1. Intento de recuperación estándar (y el bucle)

Lo primero, lo obvio: arrancar desde un USB de instalación de Windows y usar la opción "Reparar equipo". Pero el instalador se metía en su propio bucle, reiniciando el equipo una y otra vez y volviendo a cargar siempre el USB, sin avanzar.

Para saltarme ese bucle usé un atajo que no todo el mundo conoce: Shift + F10 (en portátiles con teclas de función compartidas, Shift + Fn + F10) directamente en la pantalla de bienvenida del instalador. Eso abre el Símbolo del Sistema en caliente, sin tener que avanzar por el asistente.

First thing, the obvious one: boot from a Windows installation USB and use "Repair your computer". But the installer got stuck in its own loop, restarting the machine over and over and always reloading the USB, without moving forward.

To skip that loop I used a shortcut not everyone knows about: Shift + F10 (on laptops with shared function keys, Shift + Fn + F10) right on the installer's welcome screen. That opens the Command Prompt on the spot, without having to go through the wizard.

2. Los comandos genéricos no valían (MBR vs UEFI)

Probé lo típico, bootrec /fixmbr y bootrec /fixboot, y no hicieron nada. Tenía sentido: los LG Gram modernos usan particionado GPT bajo firmware UEFI, y esos comandos están pensados para el mundo antiguo de MBR. Estaba atacando el problema equivocado.

I tried the usual suspects, bootrec /fixmbr and bootrec /fixboot, and they did nothing. Made sense: modern LG Gram laptops use GPT partitioning under UEFI firmware, and those commands are meant for the old MBR world. I was attacking the wrong problem.

3. Intentar reparar la partición EFI existente (error 1)

Probé a asignarle una letra a la partición oculta del sistema con diskpart, para luego inyectar los archivos de arranque con bcdboot. Me devolvió esto:

Error al intentar copiar archivos de arranque.

La partición de arranque original estaba corrupta o bloqueada de alguna forma.

I tried assigning a letter to the hidden system partition with diskpart, to then inject the boot files with bcdboot. It gave me the error above. The original boot partition was corrupted or locked somehow.

4. Forzar el montaje con mountvol (error 2)

Probé la alternativa de mountvol Z: /s, para saltarme las restricciones de volumen de la consola. El resultado:

El sistema no puede encontrar el archivo especificado.

Ese error confirmó lo que ya sospechaba: la partición EFI original había desaparecido o estaba tan dañada que ya no era recuperable tal cual. No había nada que reparar, solo reconstruir.

I tried the alternative mountvol Z: /s, to skip the console's volume restrictions. That error confirmed what I already suspected: the original EFI partition was gone or so damaged it wasn't recoverable as-is. There was nothing left to repair, only to rebuild.

5. La solución definitiva: reconstruir desde cero

Antes de nada, comprobé con dir C: que la partición de datos y los archivos del usuario seguían intactos. Con eso confirmado, me puse a fabricar un sistema de arranque completamente nuevo:

diskpart
select disk 0
select partition 3          REM la partición principal de Windows
shrink desired=100          REM libera 100 MB para la nueva partición EFI

create partition efi
format quick fs=fat32
assign letter=Z

Con la partición EFI nueva ya montada en Z:, lancé la inyección forzada de los archivos de arranque:

bcdboot C:\Windows /s Z: /f UEFI /l es-es

Y esta vez sí:

Archivos de arranque creados correctamente.

Before anything else, I checked with dir C: that the data partition and the user's files were still intact. With that confirmed, I set about building a completely new boot system: shrinking the main Windows partition by 100 MB with diskpart, creating a brand new EFI partition in that freed space, formatting it as FAT32, and assigning it the temporary letter Z:. With the new EFI partition mounted, I ran the forced boot file injection with bcdboot, and this time it worked: "Boot files created successfully."

Resultado final Final result

Al reiniciar el portátil sin el USB, la BIOS reconoció de inmediato el nuevo cargador UEFI: "Windows Boot Manager" ya aparecía en el Boot Menu. El equipo arrancó Windows con normalidad, con el 100% de los datos, configuraciones y archivos del usuario a salvo. Sin restaurar de fábrica, sin perder nada.

Rebooting the laptop without the USB, the BIOS immediately recognized the new UEFI loader: "Windows Boot Manager" was already showing up in the Boot Menu. The machine booted into Windows normally, with 100% of the user's data, settings, and files intact. No factory reset, nothing lost.