LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Inserting entry of opensuse in grub 2 of linux mint 10 Problem (https://www.linuxquestions.org/questions/linux-newbie-8/inserting-entry-of-opensuse-in-grub-2-of-linux-mint-10-problem-866035/)

linuxwhacko 03-02-2011 01:57 PM

Inserting entry of opensuse in grub 2 of linux mint 10 Problem
 
i installed opensuse 11.3 on sda6
and linux mint 10 on sda8

currently the grub2 appears at start of system and there is no entry for opensuse 11.3

i didn't installed the grub bootloader at time of opensuse installation as then i would be having grub and grub2 both

please tell how to insert the entry of opensuse in grub 2 ?

i want to know which files are to be edited and what has to be inserted to accomplish this task ?

any tutorial or example would be really helpful

andrewthomas 03-02-2011 02:28 PM

You have two options.

You can either install grub in your opensuse installation and install it to the root partition, NOT the MBR.

or

You can just make a /boot/grub folder with a menu.lst file that contains the info for your suse kernels.

when you update-grub in your mint install grub2 will then pick up the contents of your menu.lst file.

The first approach has the drawback of installing grub to a partition boot record using blocklists, which are said to be unreliable.

The second approach has the drawback of the need to manually update the /boot/grub/menu.lst file each time you upgrade the kernel.

I use the second approach on my Gentoo installation.
Quote:

Originally Posted by gentoo /boot/grub/menu.lst
title Gentoo 2.6.38-rc6+
root (hd1,7)
kernel /boot/kernel-2.6.38-rc6+ root=/dev/sdb8 ro

title Gentoo 2.6.38-rc5+
root (hd1,7)
kernel /boot/kernel-2.6.38-rc5+ root=/dev/sdb8 ro

title Gentoo 2.6.37-gentoo
root (hd1,7)
kernel /boot/kernel-2.6.37-gentoo root=/dev/sdb8 ro

title Gentoo 2.6.38-latest
root (hd1,7)
kernel /boot/vmlinuz root=/dev/sdb8 ro

If you look at the last entry, you will see that I have an entry called latest. What I do here is use a symbolic link to point to the newest kernel. If you use an initrd you will also have to have a line for those

EDIT: I guess that you really have a third option. Which would be to cerate a custom entry in the
/etc/grub.d/40_custom file. If you would like to go that route let me know and I can help you with that.

Larry Webb 03-02-2011 04:38 PM

This seems to be one of the best tutorials on grub2.

grub2

This tutorial is from ubuntu but will work for you. The easiest way would be to do a repair from the suse cd and install grub to / and then from grub2 run os-prober and then update-grub and that should straighten things out.


All times are GMT -5. The time now is 02:30 AM.