PDA

View Full Version : [ubuntu] Dual boot Ubuntu and Fedora



uniquerockrz
May 27th, 2011, 09:07 AM
I had Ubuntu 10.10. Now in the free space remaining in my hard disk, I installed Fedora 15. But unfortunately, Fedora failed to detect ubuntu. Now when I start my computer, grub automatically loads fedora and also doesnt display the boot menu. How can I boot ubuntu and let the grub display a menu of operating system choices? My /etc/grub.conf file in fedora is as follows:



# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=0
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.38.6-26.rc1.fc15.i686)
root (hd0,0)
kernel /boot/vmlinuz-2.6.38.6-26.rc1.fc15.i686 ro root=UUID=45aa3eb0-1283-41ef-a0e1-bfc47b7d8785 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /boot/initramfs-2.6.38.6-26.rc1.fc15.i686.img
~
~
~
~
"/etc/grub.conf" 17L, 774C

Quackers
May 27th, 2011, 11:17 AM
Welcome to UF :-)

From the Ubuntu live desktop re-install grub2 to the mbr of the drive by first mounting your Ubuntu root partition.

Example

sudo mount /dev/sda5 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
This example assumes that /dev/sda5 is your Ubuntu root partition and that /dev/sda is the hard drive that you wish to boot Ubuntu from.

If the above reports no errors, reboot, when you should be greeted by either your grub menu, or with Ubuntu booting directly.
IOf it's the latter open a terminal and run
sudo update-grub and you should see Fedora 15 picked up as grub.cfg is run.
You can then reboot and you should then see your grub menu with both systems listed.

Drainy
May 27th, 2011, 12:32 PM
Hey,

This is the exact problem I found when I installed Fedora.
Only posted a few days ago, check here - all solved now;

http://ubuntuforums.org/showthread.php?t=1767457