Is there a way (or tools) to rebuild grub’s data or use Refind to have a multi-OS system, including preinstalled Windows with a new /boot/efi partition? My laptop has W10 preinstalled and when EndeavourOS is installed the /boot/efi partition was accidentally formatted and now grub menu does not have an entry for booting W10.
I did install using the manual partitioning method. The /boot/efi partition was reused but ‘format’ was selected instead of ‘keep’. Refind was installed today and here is the output of efibootmgr:
If you installed rEFInd you’ll be able to boot both but that won’t fix the Windows boot loader.
Grub is separate and in order to fix the Windows boot loader you would have two options. If you have the original install disc or usb you can boot off it and fix it. Or you can boot windows in one of the repair modes and fix it possibly. But if it doesn’t work you may need the disc which you could download an ISO of Windows 10.
But you can get rEFInd to boot both. Just go into your Uefi when you boot the system and change the boot order. Or here is way to change it in Linux.
If you switch it to boot rEFInd you’ll have to change the setup on the rEFInd screen to not use the grub loader but to boot the vmlinz-linux. I think it’s option 4
I will post the instructions to fix the windows bootloader but keep in mind you’ll have to possibly boot on the live iso and chroot and fix grub in order to have windows and Endeavour booting properly.
Were you able to get rEFInd set up to get into it?
Edit: if you are able to boot Windows 10 you can try the repair for the boot by holding down the shift key and clicking on restart to get Windows to go into advanced startup mode. From there you can try the the automatic repair or do from command line.
For some reasons I could not get rEFInd working. I even reinstall it just now but when I boot the machine it goes to grub menu showing EndeavoursOS and snapshots.
System snapshots are generated when upgrading (or optionally when booting) and grub can boot the machine into a snapshot, in case something wrong with updates.
I am not sure why either. I installed rEFInd on other laptops before and it works like a charm, but not on this laptop. Maybe it has something to do with BIOS settings.
When you install rEFInd you have to change the boot to rEFInd in your boot menu in UEFI. Then when you boot the rEFInd menu comes up instead of grub. Then you have to make the changes in rEFInd menu to boot the right items because you want it to boot from vmlinux-linux rather than grub. The icons in the menu will have both so you hide grub ones and anything else you don’t need in the menu. I’m not sure how snapshots and all that setup works as I don’t use it.