LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Suse/Novell (http://www.linuxquestions.org/questions/suse-novell-60/)
-   -   Open Suse 11.2 Install grub entry for chainloading ubuntu (http://www.linuxquestions.org/questions/suse-novell-60/open-suse-11-2-install-grub-entry-for-chainloading-ubuntu-821093/)

Tim Johnson 07-20-2010 03:39 PM

Open Suse 11.2 Install grub entry for chainloading ubuntu
 
I intend to re-install open suse 11.2, 32-bit. On a previous install,
suse did not provide a grub entry for ubuntu.
My current setup has
ubuntu/root on /dev/sda6
ubuntu/home on /dev/sda7
ubuntu/usr/local on /dev/sda8
mint/root on /dev/sda1
mint/home on /dev/sda2
mint/usr/local on /dev/sda9
with mint handling the boot loading.
I intend to replace the mint partitions with the same sequence of
suse partions (reformatted).
What would be the grub entry to execute chainloading of ubuntu?
would it be something like?
Code:

title Ubuntu
root (hd0,6)
chainloader (hd0,6)+1

I'm not clear about the usage of the +1, but it would be great if
someone could verify or correct the entry above.
Thanks
tim

syg00 07-20-2010 06:03 PM

Make that "(hd0,5)" - for the old grub both harddisk and partition numbering is zero based.
Will only work if grub on Ubuntu was installed into the partition boot sector record.

May be better to use
Code:

title Ubuntu
configfile (hd0,5)/boot/grub/menu.lst

(substitute grub.cfg if using grub2 on Ubuntu).

Tim Johnson 07-20-2010 06:44 PM

Quote:

Originally Posted by syg00 (Post 4040062)
Make that "(hd0,5)" - for the old grub both harddisk and partition numbering is zero based.
Will only work if grub on Ubuntu was installed into the partition boot sector record.

Understood.
Quote:

May be better to use
Code:

title Ubuntu
configfile (hd0,5)/boot/grub/menu.lst

(substitute grub.cfg if using grub2 on Ubuntu).
FYI: Ubuntu 10.04 does use grub2. I prefer grub, but
that is progress I guess, or feature-itis.
Thanks
tim

Larry Webb 07-20-2010 06:58 PM

You can chainload from Suse 11.2 which I believe still uses grub legacy.
The menu lst entry should be

Title ubuntu
root (hd0,5)
chainloader +1

That will work if your ubuntu grub was installed to /

Tim Johnson 07-20-2010 08:00 PM

Quote:

Originally Posted by Larry Webb (Post 4040088)
You can chainload from Suse 11.2 which I believe still uses grub legacy.
The menu lst entry should be

Title ubuntu
root (hd0,5)
chainloader +1

That will work if your ubuntu grub was installed to /

Thanks Larry, that would be the case.
tim


All times are GMT -5. The time now is 04:01 AM.