Fixing grub after reinstall...

I reinstalled the Bazzite Partition in a Dual Boot, but I think it overwrote the efi partition and now I can't get grub to recognize the Windows Partition. I still see the partition with the files inside, but ujust regenerate-grub isn't finding it. How do I fix this?
1 Reply
nagito || Knight of Emilia
that's the thing grub doesn't look for the windows partition it looks for /EFI/Microsoft/bootmgfw.efi on the EFI partition once launched bootmgfw looks for /EFI/Microsft/BCD the BCD file is something that isn't well understood so Linux can't really restore it Windows installation media can though it has a program called bcdboot that does the trick you launch it from command prompt bcdboot WINDOWS_DRIVE_LETTER:\Windows this should do the trick of restoring both the bootmgfw.efi file & the BCD file as well as some other ones but afterwards Windows will be bootable & ujust regenerate-grub will once more be able to find it

Did you find this page helpful?