Damaged grub2 will not boot

Using XFCE.
After using grub-cutomizer to reduce the number of boot choices, I can only boot to a grub prompt. Is there a tool to rebuild grub2? Using SuperGrub I was able to boot but running YaST did not generate a new boot menu. If SuperGrub can find a way to boot it, surely it can be corrected from inside 15.6.

Any suggestions will be appreciated.

What did you try to do in YaST?

Grub2 reinstallation from rescue system - #11 by sboehringer might provide some info that’s of use.

1 Like

Run YaST bootloader, and change something. I usually change the timeout by 1 second. That will cause booting to be reinstalled.

2 Likes

I changed the timeout. This was my result.

No bootloader options. Is there a way I can delete all grub files and start from not having a bootloader?

When you click “OK” on that screen, it should reinstall booting.

I did that. Nothing changed. No bootloader options show.

You have to change something on the screen to rewrite the boot stuff. Change something and cnage it back maybe it just needs a change

I did that. Several times back and forth. Nothing changed.

Don’t change it, change it back, and click OK, change it and click OK.

It’s not clear, but it sounds like that’s not what you’ve done. The screen needs to see an actual change; reverting it before hitting OK will cause it to say “oh, nothing’s changed, so I don’t need to redo the boot loader”.

I have changed the time out from 5 to 3 and saved it. Rebooted…no change. I then changed the Probe Foreign OS setting and saved it. Rebooted…no change. Each time clicking OK. No other item can be set or changed. I have changed and rebooted at least six times with no changes.

Then start providing some information about your system. Are you using EFI or legacy BIOS?

I would also suggest checking out the thread I pointed you at earlier, as it contains a manual way to rebuild the grub2 menu using rescue mode. It’s a somewhat more complex way of fixing the issue, but from my read, it should do the trick.

Did you try something like grub2-mkconfig -o /boot/grub2/grub.cfg after you managed to boot your OS? (Read the man for grub2-mkconfig first…) If only grub.cfg got damaged somehow, but /etc/default/grub and the scripts in /etc/grub.d/ are still intact, it should rebuild you boot menu. If that does not work, using Yast2-bootloader and switch to “no bootloader”- save - then switch back to “GRUB” or “GRUB-EFI” might create a working setup.

→ https://documentation.suse.com/sles/15-SP6/html/SLES-all/cha-grub2.html

I gave up and re-installed.