- Use a Windows installation media and boot it
- Go to:
Repair your computer > Troubleshoot > Advanced options > Startup Repair
- If it fails (like most of cases), go to:
Repair your computer > Troubleshoot > Advanced options > Command Prompt
- There first run:
diskpart
- Then run:
list vol
- Select the Windows hidden partition:
select volume X
(where X is the number of the partition) - Assign it a letter:
assign letter=Y
(make sure you assign an unused one) - Exit diskpart, run:
exit
- Run:
bootrec /rebuildbcd
- Given that your Windows partition has the letter
C:
assigned, run:bcdboot c:\windows /s c:
- Reboot.
Created
October 4, 2022 12:11
-
-
Save mvidaldp/9f0d8d8c037322a8c7c965345807e466 to your computer and use it in GitHub Desktop.
Repair Windows' EFI bootloader (e.g. after Linux or another OS overwrittes it)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment