I have a CD of the boot tool Super Grub 2.0 and I only can boot using that at the moment, in that tool I can select the entry “Leap 15.4” and then it boots as expected.
I have no clear idea what grub commands I can savely apply or if I just can force a reinstall of some grub packages that can fix it. The boot file setup is nothing extraordinary.
Any help or useful idea of the right commands is much appreciated, thank you.
Kind Regards
I’m not sure what is wrong. So I am going to do some guessing.
My guess: the bootloader is installed in your boot partition, rather than in the MBR. And you have an older grub installed in the MBR which depends on something no longer installed.
My suggestion:
Use Yast Bootloader
Check where it says grub is installed. If I’m right and you are booting from a partition, then check the box to install generic boot code in the MBR.
You can quit without saving the change (maybe it is “Abort”), if something doesn’t look right. In that case, make notes about what doesn’t look right.
Alright—well from my user perspective checkboxes (the design of that dialogue) are not mutually exclusive …
Now I set it anew and tested, and it works as well — the first tab Boot Code Options I have set :
Boot Load Location
[x] write to logical partition (/dev/sda7)
[ ] write to extended partition (/dev/sda3)
[x] write to Master Boot Record (/dev/sda)
and below that
[ ] write generic Boot Cod to MBR
Just to notice the question relating “Hopefully, Yast knows how to deal with that mistaken choice”: In the very first try, I added only the checkbox for generic [x] write generic Boot Cod to MBR and left out the other above Boot Load Location option [ ] write to Master Boot Record (/dev/sda) then the boot haltered with a black screen at the very beginning and nothing happend
Grub _
Then I did check both of these MBR options, as described above, and it appeared working. Perhaps there is a mistake of designing the dialogue like that, from a philosophical point of view or so. Anyway it is working, and that’s the point.
Is this setting now the correct one, also in the long run for the future?
Yes, Yast allows you to set both even though that doesn’t make sense. I presume that the Yast team know how to deal with that.
There’s actually no need to have both “write to logical partition” and “write to MBR”. The write to the MBR already does what you need. But it is harmless to do both. So just leave it as it is.
No, it is not. For every location grub2-install is invoked and every time it creates new /boot/grub2/i386-pc/core.img (“stage1.5”). If embedding is not possible for several locations, then this core.img will be valid only for the last location and previous locations will be referencing deleted files. Which may appear to work until space is reused. It was actually relatively common problem in the past, when YaST by default installed in all possible locations.
In general, it is best to avoid multiple install locations.