Dual Boot Fedora 11 & Ubuntu 9.04

engelbma

Well-Known Member
Joined
Mar 28, 2009
Messages
150
Reaction score
7
Location
Pretoria
Hi Guy's,

Here is my problem.

I have 2 x 160G hard-drives.
Drive 1 installed Fedora 11
Drive 2 installed Ubuntu 9.04

GRUB displays only Fedora or Ubuntu seperately. How do I add Ubuntu to the fedora GRUB?

I have read up a lot and my head is spinning, I need someone to explain in easy step-by-step terms how to do this.

I got hold of cat /etc/fstab and ran in terminal this is what I got.

Fedora:
# /etc/fstab

# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=827baf3c-631d-4922-b960-b5e814df5ef8 /boot ext3 defaults 1 2
/dev/mapper/vg_fedora00-lv_root / ext4 defaults 1 1
/dev/mapper/vg_fedora-lv_swap swap swap defaults 0 0
/dev/mapper/vg_fedora00-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts defaults 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0



Ubuntu:
# /etc/fstab: static file system information.

# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=2aa405a1-77f2-4e98-af28-e7c49d501dc4 / ext3 relatime,errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=e7ccafaf-5e45-430a-a6f5-3793747d854a none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

Thanks in advance for the clever people who will be able to help me ;)
 
I'm gonna assume you're working from Fedora.

On your Ubuntu partition look at the file /boot/grub/menu.lst. Look for any lines that look like this (they don't have to be exact, just similar):

title Ubuntu 9.04
root (hd0,0)
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=291da951-fd1f-4709-948f-07aecbea4223 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
savedefault
boot

You need to append that to /boot/grub/menu.list in Fedora.

Also note that since Ubuntu will now be running of the second drive make sure you change "root (hd0,0)" to "root (hd1,0)".
 
Thks concentricpuddle,

Found this, let me know if it is right please.

title Ubuntu 9.04, kernel 2.6.28-13-generic
uuid 2aa405a1-77f2-4e98-af28-e7c49d501dc4
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=2aa405a1-77f2-4e98-af28-e7c49d501dc4 ro quiet splash
initrd /boot/initrd.img-2.6.28-13-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
uuid 2aa405a1-77f2-4e98-af28-e7c49d501dc4
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=2aa405a1-77f2-4e98-af28-e7c49d501dc4 ro single
initrd /boot/initrd.img-2.6.28-13-generic
 
Yip. You don't need to change any root (hd0,0) since it seems Ubuntu is just using UUID's (a unique marker for your hard drive).

So just add what you pasted to /boot/grub/menu.list on the Fedora partition and you should be fine.

In case you're wondering
title Ubuntu 9.04, kernel 2.6.28-13-generic
is for running Ubuntu as normal while
title Ubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
is sorta like safe-mode for Windows, but you just get a console to work with (once you know what you're doing it's quite a joy to have).

Anyway, just holler if anything's amiss.
 
Last edited:
Thanks.

Now I just need to figure out how to open the /boot/grub/menu.lst. in Fedora as root and edit.
 
Nearly there.....

I see Fedora and Ubuntu in Grub menu, when I select Ubuntu I get "Error 15 file not found" ?

This is what the menu file looks like now:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_fedora00-lv_root
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title GNU GRUB 2, (1.98)
kernel /grub2/core.img
title Fedora (2.6.29.5-191.fc11.i586)
root (hd0,0)
kernel /vmlinuz-2.6.29.5-191.fc11.i586 ro root=/dev/mapper/vg_fedora00-lv_root rhgb quiet
initrd /initrd-2.6.29.5-191.fc11.i586.img
title Fedora (2.6.29.4-167.fc11.i586)
root (hd0,0)
kernel /vmlinuz-2.6.29.4-167.fc11.i586 ro root=/dev/mapper/vg_fedora00-lv_root rhgb quiet
initrd /initrd-2.6.29.4-167.fc11.i586.img


title Ubuntu 9.04, kernel 2.6.28-13-generic
uuid 2aa405a1-77f2-4e98-af28-e7c49d501dc4
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=2aa405a1-77f2-4e98-af28-e7c49d501dc4 ro quiet splash
initrd /boot/initrd.img-2.6.28-13-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
uuid 2aa405a1-77f2-4e98-af28-e7c49d501dc4
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=2aa405a1-77f2-4e98-af28-e7c49d501dc4 ro single
initrd /boot/initrd.img-2.6.28-13-generic
 
Damn, I hate it when my advice doesn't work. Anyways, just change
title Ubuntu 9.04, kernel 2.6.28-13-generic
uuid 2aa405a1-77f2-4e98-af28-e7c49d501dc4
to

title Ubuntu 9.04, kernel 2.6.28-13-generic
root (hd1,0)
for both Ubuntu headers, so that your menu.list looks like this.

Nearly there.....

I see Fedora and Ubuntu in Grub menu, when I select Ubuntu I get "Error 15 file not found" ?

This is what the menu file looks like now:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_fedora00-lv_root
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title GNU GRUB 2, (1.98)
kernel /grub2/core.img
title Fedora (2.6.29.5-191.fc11.i586)
root (hd0,0)
kernel /vmlinuz-2.6.29.5-191.fc11.i586 ro root=/dev/mapper/vg_fedora00-lv_root rhgb quiet
initrd /initrd-2.6.29.5-191.fc11.i586.img
title Fedora (2.6.29.4-167.fc11.i586)
root (hd0,0)
kernel /vmlinuz-2.6.29.4-167.fc11.i586 ro root=/dev/mapper/vg_fedora00-lv_root rhgb quiet
initrd /initrd-2.6.29.4-167.fc11.i586.img


title Ubuntu 9.04, kernel 2.6.28-13-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=2aa405a1-77f2-4e98-af28-e7c49d501dc4 ro quiet splash
initrd /boot/initrd.img-2.6.28-13-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=2aa405a1-77f2-4e98-af28-e7c49d501dc4 ro single
initrd /boot/initrd.img-2.6.28-13-generic

Get back to me if it's not working.
 
Top
Sign up to the MyBroadband newsletter
X