Grub Loader with Open Suse

I use Linux Mint and I install on a second hard disk Open Suse because I want to test it, but when I update the grub Open Suse do not start.

This guide should be valid also for Ubuntu, Debian and all system that use grub2.

Problem

  • On startup error like this: “/boot/vmlinuz-5.14.0–1-default not found”

This post have the solution but it do not explain step by step how to do and in particular do not say nothing about how to find hdx partition name that is different in my situation.

Step by step guide after Open Suse installation

Now mount the volume by click it into the file system or in any other way and exec the command to update the grub loader:

$ sudo update-grub

On the reboot you will see a new entry but if you try to boot it have problem to load the kernel, so click “c” to enter in the grub shell and exec ls command

grub> ls
grub> halt
grub ls resutls

The results show all partitions, in my case I have some (hd0, x) and one (hd1) if you install Open Suse in a new partition you should finde it on some x (hd0, x), instead of as in my case you install it on a new hard disk you find it on (hd1).

If you want you can check the instruction from grub shell before become a grub option:

grub> set root=(hd1)
grub> chainloader +1
grub> boot

With this information we start again linux mint and we edit the file “/etc/grub.d/40_custom”

sudo nano /etc/grub.d/40_custom

And add the following code at the end of the file:

menuentry "OpenSuse" {
set root=(hd1)
chainloader +1
}

Now mount again the volume of OpenSuse OS and repeat the grub update:

sudo update-grub

At the restart you see the new entry OpenSuse and it will start your new OS.

Conclusions

Linux user and Open Source fun. Deep learning PhD Student, Full stack web developer, Mobile developer, Musitian.