need help with menu.lst

Hi peoples.
I need a bit of help with grub, I have 2 sata drives…
1 has OpenSuse11 and Windows xp dualbooting fine… The 2nd Sata drive has Ubuntu 8.04 which i just installed… I chose to not install the boot loader when installing ubuntu… i heard it was a good idea to do that so you can just add ubuntu to menu.lst on the OpenSuse grub… but anyways…

here is my info…

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/sda2 3825 19457 125572072+ f W95 Ext’d (LBA)
/dev/sda5 3825 4086 2104483+ 82 Linux swap / Solaris
/dev/sda6 4087 6697 20972826 83 Linux
/dev/sda7 6698 19457 102494668+ 83 Linux

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00022715

Device Boot Start End Blocks Id System
/dev/sdb1 1 182 1461883+ 82 Linux swap / Solaris
/dev/sdb2 183 9729 76686277+ 83 Linux
linux-uqw8:/home/kaddy

As you can see, OpenSuse and Windows is on /dev/sda and im trying to get Ubuntu to boot which is on /dev/sdb2
cheers.

you will need to tell grub something like this

root (hd2,0)

kernel /ubuntu/disks/boot/vmlinuz-2.6.24-16-generic

initrd /ubuntu/disks/boot/initrd.img-2.6.24-16-generic

now in your case replace (hd2,0) with your drive/partition

and then kernel and initrd settings…

i would advice you press e at grub prompt (so that u can now type commands…)

type root(hdx,y)

then kernel if your (hdx,y) is correct pressing tab will list your folders…
you should be interested in
==> /boot/…

you need to experiment before you can hit at the target!
once you do that… you can always then type those commands in menu.lst (from the already existing linux system)

i hope it helps!

I have Suse 11 and Ubu multibooting from Suse. This is what I have in menu.lst for Ubu:

###Don’t change this comment - YaST2 identifier: Original name: Ubuntu 7.10###
title Ubuntu 7.10 (/dev/sdb2)
root (hd1,1)
configfile /boot/grub/menu.lst

Of course, I altered my sdb9 to your sdb2 and my (hd1,8) to your (hd1,1)

So I suggest you edit your menu.lst appropriately.

I think in the case of Swerdna : his boot for Ubuntu is pointing to his Ubuntu menu.lst
Which is the approach suse seems to have adopted in recent releases. It is the best way too, as kernel upgrades in Ubuntu won’t break your boot of Ub from the suse grub.
In the past grub would pick up the kernel in Ub or whatever other distro it is, but when that changes - your in a mess.
The way Swerdna points is correct and best, you just need to edit the HD partition numbers correctly.

When you boot Ubuntu, suse grub then loads Ubuntu grub.

Hope that’s clear

arghh. all of that was confusing, but i took the easy way out and just reinstalled ubuntu with the boot loader, and now that boots all my partitions. lol.
but thanx for the info anyways, couldn’t get it to work manually. Now its all good though :wink:
kaddy