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.
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.
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.
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.