Add ubuntu entry to Opensuse boot menu

Hi all,
i just installed ubuntu 9.10 netbook remix, i made a partition (sda6) for it, first i had only opensuse, and when i was installing ubuntu, i put the bootloader in (sda6) the Opensuse bootloader is installed on MBR,

fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb02fb02f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          14      112423+  83  Linux
/dev/sda2              15       19457   156175897+   f  W95 Ext'd (LBA)
/dev/sda5              15         275     2096451   82  Linux swap / Solaris
/dev/sda6             276        1580    10482381   83  Linux
/dev/sda7            1581        2885    10482381   83  Linux
/dev/sda8            2886        4190    10482381   83  Linux
/dev/sda9            4191        6279    16779861   83  Linux
/dev/sda10           6280       19457   105852253+  83  Linux

when i start the eeepc i have my opensuse grub screen, how can i add ubuntu to it ?

 # mount -t ext4 /dev/sda6 /ubuntu
# cd /ubuntu
# cd boot
/boot # ls -l
total 13760
-rw-r--r-- 1 root root  629174 2009-10-16 18:03 abi-2.6.31-14-generic
-rw-r--r-- 1 root root  111371 2009-10-16 18:03 config-2.6.31-14-generic
drwxr-xr-x 2 root root    4096 2010-04-02 01:27 grub
-rw-r--r-- 1 root root 7645067 2010-04-02 01:28 initrd.img-2.6.31-14-generic
-rw-r--r-- 1 root root  128796 2009-10-23 16:11 memtest86+.bin
-rw-r--r-- 1 root root 1664737 2009-10-16 18:03 System.map-2.6.31-14-generic
-rw-r--r-- 1 root root    1196 2009-10-16 18:06 vmcoreinfo-2.6.31-14-generic
-rw-r--r-- 1 root root 3890400 2009-10-16 18:03 vmlinuz-2.6.31-14-generic

I hope somedbody can help !

i have already add these lines to menu.lst

title ubuntu 9.10
root    (hd0,5)
chainloader +1

but when i try to start with it i have only an error:

root (hd0,5)
File system type is ext2fs, partition type 0x83
chainloader +1
Error 13: invalid or unsupported executable format.

Hello elaich,

i have already add these lines to menu.lst

 title ubuntu 9.10

root (hd0,5)
chainloader +1

but when i try to start with it i have only an error:
     
 root (hd0,5)

File system type is ext2fs, partition type 0x83
chainloader +1
Error 13: invalid or unsupported executable format.

I’m not sure but I think you need to change root(hd0,5) to root(hd0,3).
Your current setting is trying to boot sda8.

Good luck!:wink:

title african word for - I cannot configure debian
root (hd0,5)
kernel /boot/vmlinuz-2.6.31-14-generic root=/dev/sda6 ro quiet
initrd /boot/initrd.img-2.6.31-14-generic

For extra parameters added to the kernel line, take a look at the configs of *buntu.

*Buntu uses grub2, AFAIK grub1 can not chainload grub2.

//Edit:

Setting it to (hd0,3) would try to boot from /dev/sda4, which does not even exist.

Try this tutorial: HowTo Multiboot Ubuntu from openSUSE using the GRUB bootloader

The entry (for ubu on sda6) looks like this:

#Don't change this comment - YaST2 identifier: Original name: none# 
title Ubuntu 9.10 booting via symlinks 
root (hd0,5) 
kernel /vmlinuz root=/dev/sda6 ro quiet splash 
initrd /initrd.img

You put this code in the menu.lst on the openSUSE partition.

Let’s change it a little, shall we?


title Ubuntu 9.10 NOT booting via NON-existing symlinks 

Looks more accurate in this case. :slight_smile:

that works, thanks !

And where did the symlinks come from?

/boot # ls -l
total 13760
-rw-r--r-- 1 root root  629174 2009-10-16 18:03 abi-2.6.31-14-generic
-rw-r--r-- 1 root root  111371 2009-10-16 18:03 config-2.6.31-14-generic
drwxr-xr-x 2 root root    4096 2010-04-02 01:27 grub
-rw-r--r-- 1 root root 7645067 2010-04-02 01:28 initrd.img-2.6.31-14-generic
-rw-r--r-- 1 root root  128796 2009-10-23 16:11 memtest86+.bin
-rw-r--r-- 1 root root 1664737 2009-10-16 18:03 System.map-2.6.31-14-generic
-rw-r--r-- 1 root root    1196 2009-10-16 18:06 vmcoreinfo-2.6.31-14-generic
-rw-r--r-- 1 root root 3890400 2009-10-16 18:03 vmlinuz-2.6.31-14-generic

I don’t see any of them here.

Does *Buntu have it’s own boot Partition?

Wait a minute, please don’t tell me this is true:

*Buntu actually puts symlinks to /boot/vmlinuz-version directly on /?

How brain dead is that?

With an extra boot (needed for i.e. encrypted root filesystem, you will be f*cked with such an idiotic idea).

This illustrates that you are two things:

  1. rude
  2. ignorant
title african word for - I cannot configure debian

nice title!

Nope, just illustrates that *Buntu seems to put symlinks directly on / which is completely brain dead (explanation see above).

I’m really sorry for not considering that some distributor actually had such an idea.

You just keep on biting your foot don’t you. It’s the Debian devs that put the symlinks there. And for very good reasons.

Enlighten me, why there is a good reason (and I know, that the debian devs do, how stupid do you think I am?).

When using an extra boot partition the same link to /vmlinuz will bring you in lots of trouble the moment you need this extra /boot running without the ability to already mount / (encrypted / for sure, not sure about LVM really) and you will try to boot a kernel via a symlink which is not accessible (as / is not accessible yet).

Most other distros I know have such a link, because it makes sense to always have a link “vmlinuz” (or similar) pointing to the recent kernel, but this link resides in the same folder, so it will always be on the same partition than the kernel itself.

Putting it somewhere else is just a very bad idea.

We’ve already covered that.

The only further dialog I want on this matter is to tell you (again) to stop being rude to the members.