I tried to dual boot Ubuntu and fedora, but now I am unable to boot into my Ubuntu installation. Here is the situation
I had Ubuntu installed already on /dev/sda2
and I resized it to create another partition /dev/sda3
. I installed fedora 15 on /dev/sda3
. Now I can boot into fedora but there in to option to go into Ubuntu. Swap partition is on /dev/sda1
.
Swap /dev/sda1
Ubuntu /dev/sda2
Fedora /dev/sda3
Fedora 15 still uses grub legacy for boot, and it overwrites Ubuntu's Grub 2 boot loader and menu. And Grub legacy does not find Ubuntu install out-of-the-box.
To restore Ubuntu's boot, all you have to do is re-install grub2.
Do this:
/media/label
Now open terminal and issue:
sudo grub-install --root-directory=/media/your-ubuntu-label /dev/sda
You may boot into Ubuntu now.
If you want to add Fedora 15 to Ubuntu's (grub2) boot list, do this:
sudo update-grub