Jump to content
funtoo forums
  • 0
theasker

[multiboot] grub In various OS [Solved]

Question

Hello:

I want boot various Linux distro with my grub. Now have 4 partitions:

/dev/sda1 --> /boot

/dev/sda2 --> swap

/dev/sda3 --> / (funtoo)

/dev/sda4 --> Calculate Linux (with /boot )

How do I have to configure /etc/grub.d/40_custom for boot all OS?  I try this, but don't work it, do not see it in the boot menu:

# /etc/grub.d/40_custom

menuentry "Reiniciar" --class reboot {
    echo "Se esta reiniciando el sistema..."
        reboot
}

menuentry "Apagar" --class shutdown {
        echo "Se está apagando el sistema..."
        halt
}

Thanks in advance and sorry for my english..

Mauri from Spain

 

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Hello, theasker!

Sorry for the delay!

As you have more operating systems, I advise you not to use the program sys-boot/boot-update and do this:

1 - install sys-boot/grub (attention to the variable GRUB_PLATFORMS in /etc/portage/make.conf) and sys-boot/os-prober

2 - run 'grub-mkconfig -o /boot/grub/grub.cfg'

3 - run 'grub-install /dev/sda'

This usually works automatically, without needing to edit anything.

Hope this helps!

Share this post


Link to post
Share on other sites
  • 0

Hello, theasker!

If you do not use the program sys-boot/boot-update to update the file '/boot/grub/grub.cfg', you must have installed the program sys-boot/os-prober. Look at this:

* sys-boot/os-prober
     Available versions:  1.71 (~)1.73 (~)1.74
     Homepage:            http://packages.debian.org/source/sid/os-prober
     Description:         Utility to detect other OSs on a set of drives

Hope this helps!

Share this post


Link to post
Share on other sites
  • 0

First, thanks for your response:

Then, ... boot-update is the substitute for os-prober ?.
Is there a configuration manual for boot-update?
And is there a manual to manually modify the grub configuration if os-prober or boot-update does not detect the OS?

Thx in advance

Share this post


Link to post
Share on other sites
  • 0
20 hours ago, theasker said:

Is there a configuration manual for boot-update?

yes type "man boot-update"

for boot.conf "man boot.conf"

or you can look at it here, https://github.com/funtoo/boot-update/blob/master/doc/boot.conf.5.rst

suggest you look at /boot directory and find out how kernels are named i.e bzImage or vzImage so you will know what to put in boot.conf.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×