how to add ubuntu to grub

Hi there,
does anyone know how to add ubuntu to grub in opensuse 11.1

Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0000814a

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6374 51199123+ 7 HPFS/NTFS
/dev/sda2 6375 30515 193912582+ 5 Extended
/dev/sda5 6375 18849 100205406 7 HPFS/NTFS
/dev/sda6 18850 30515 93707113+ 7 HPFS/NTFS

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90909090

Device Boot Start End Blocks Id System
/dev/sdb1 1 368 2955928+ 82 Linux swap / Solaris
/dev/sdb2 369 7301 55689322+ 5 Extended
/dev/sdb3 7302 11086 30403012+ 83 Linux
/dev/sdb5 369 3289 23462901 83 Linux
/dev/sdb6 3290 7301 32226358+ 83 Linux

ubuntu is on partition
/dev/sdb5
/dev/sdb6

Thanx a lot

should be something like:

title Ubuntu
root (hd1,4)
chainloader +1

Thanx for the quick answer
Im getting Error 13 now when I try to boot ubuntu

from these you quote which is the root (/)

/dev/sdb3 7302 11086 30403012+ 83 Linux
/dev/sdb5 369 3289 23462901 83 Linux
/dev/sdb6 3290 7301 32226358+ 83 Linux

If it’s sdb3

maybe you need this

title Ubuntu
root (hd1,2)
chainloader +1

sdb3 is opensuse

So if Ubuntu is sdb6? Try

title Ubuntu
root (hd1,5)
chainloader +1

Looks like a problem here. Once you figure out which partition Ubuntu is on you can edit an entry into openSUSE’s menu.lst file. Suppose the partition is sdb6, which is (hd1,5). Use whatever partition is the correct number instead of my example sdb5/(hd1,4). Change the chainloader Ububtu entry from this:

###Don’t change this comment - YaST2 identifier: Original name: whatever it was###
title Ubuntu
root (hd1,5)
chainloader +1

to this

###Don't change this comment - YaST2 identifier: Original name: whatever it was###
title Ubuntu
    root (hd1,5)
kernel		/vmlinuz root=/dev/sdb6 ro quiet splash 
initrd		/initrd.img
quiet

See if that helps

PS/Edit – of course, try caf4926’s chainloader first.

If you are using ext4 FS on ubuntu you will probaly need to use the chainloader method.

Hi ken_yap. What’s the problem with ext4 and Grub?

grub needs patching to support ext4. Suse’s grub wont have the patch

Thanks for that.

Can you amplify that ken_yap

The SUSE GRUB hasn’t been patched to read from an ext4 /boot.