This project documents the recovery of a failed Windows bootloader in a dual-boot Linux environment, caused by conflicting EFI partitions and corrupted/missing boot files.
The system was restored without OS reinstallation or data loss by rebuilding the Windows Boot Manager from a Linux-prepared recovery environment.
Additionally, the root cause (multi-EFI fragmentation) was identified, with a plan for long-term remediation.
A Lenovo-based UEFI system running a dual-boot configuration encountered the following issues:
- System booted exclusively into Pop!_OS
- Windows Boot Manager was not accessible from firmware
- EFI partition (
p1) lacked valid Windows boot files - Multiple EFI partitions (
p1,p6) caused inconsistent boot behavior
nvme0n1
βββ p1 (260MB) β Windows EFI (corrupted)
βββ p2 (16MB) β Reserved
βββ p3 (251GB) β Windows OS (C:)
βββ p4 (200GB) β Data (D:)
βββ p6 (1GB) β Pop!_OS EFI (active)
βββ p7/p8/p9 β Linux + recovery
-
Windows EFI partition (
p1) was missing critical boot files:\EFI\Microsoft\Boot\bootmgfw.efi
-
Dual EFI partitions:
- Windows β
p1 - Pop!_OS β
p6
- Windows β
-
Pop!_OS uses
systemd-boot(does not auto-detect external OS) -
Firmware prioritized Pop!_OS boot entry
- Windows installation remained intact
- Boot chain was broken at EFI level
lsblksudo efibootmgr- Windows Boot Manager entry existed but failed
- Boot order prioritized Pop!_OS
- EFI partition appeared empty when mounted
Rebuild Windows bootloader using Windows Recovery Environment (WinRE), without reinstalling the OS.
Using Ventoy:
wget https://github.com/ventoy/Ventoy/releases/download/v1.1.05/ventoy-1.1.05-linux.tar.gz
tar -xvf ventoy-1.1.05-linux.tar.gz
cd ventoy-1.1.05
sudo ./Ventoy2Disk.sh -i /dev/sdXCopy ISO:
cp Win11.iso /mnt/ventoy/-
Boot via BIOS (F12)
-
Select USB
-
Navigate:
- Repair your computer
- Troubleshoot β Advanced Options β Command Prompt
diskpart
list disk
select disk 0
list partition- EFI β Partition 1 (~260MB)
- Windows β Partition 3 (~251GB)
select partition 1
assign letter=S
select partition 3
assign letter=C
exitdir C:\Windowsbcdboot C:\Windows /s S: /f UEFIBoot files successfully created.
- Removed installation media
- Rebooted system
- Windows boot restored successfully
UEFI β Pop_OS EFI (p6) β systemd-boot β Pop_OS only
UEFI β Windows EFI (p1) β Windows Boot Manager β Windows
- Windows OS integrity is independent of EFI bootloader state
- EFI partition corruption is a common failure point in dual-boot systems
bcdbootis the most reliable method for rebuilding Windows boot configuration- Multiple EFI partitions introduce ambiguity at firmware level
- systemd-boot does not scan external EFI partitions
Target State:
EFI (p1)
βββ Microsoft/
βββ systemd/
βββ loader/
- Deterministic boot behavior
- Simplified firmware configuration
- Reduced risk of future boot failure
- UEFI Boot Process Understanding
- Low-Level System Recovery
- Cross-Platform Debugging (Linux β Windows)
- Disk & Partition Analysis
- Bootloader Reconstruction
- Production-Style Incident Resolution
- Windows boot functionality fully restored
- Zero data loss
- Root cause identified
- System stability improved