LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2011, 09:00 AM   #1
vedi
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Rep: Reputation: 0
Fedora messed up Ubuntu


I had Ubuntu 11.04 and Windows7 installed on my computer. I thought of trying fedora 15 and installed it on a different partition.
Now only fedora and Windows boot up.

Can I triple boot my system and how?
If not, how to get back Ubuntu 11.04 and Windows 7 as before.

Thnx in Advance
 
Old 07-10-2011, 09:09 AM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi there,

You said that you installed Fedora on a different partition so it should not mess us your existing OS. The possibility is that Fedora grub.conf does not have any entry for Ubuntu to boot up. Also Fedora 15 uses Grub version 0.97 whereas Ubuntu 11.04 uses Grub version 1.99.

Let us know the following:

1. Are you able to see your Ubuntu partitions in Fedora?
2. Do you know on which partition your Ubuntu was installed?
3. Do you have the backup of grub.cfg file.
 
Old 07-10-2011, 09:22 AM   #3
vedi
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Yes you are right.
I just can't boot Ubuntu.
1.And yes Ubuntu is safe.
2. /dev/sda5
3.I dont get ur this question. I have not done anything with this file of Fedora.


Guide me to edit grub.cfg in order to be able to boot Ubuntu

Last edited by vedi; 07-10-2011 at 09:26 AM. Reason: wanted to answer of above questions
 
Old 07-10-2011, 09:37 AM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

See if your /dev/sda5 partition is mounted or not?

If mounted then get in there and look for a file called grub.cfg. Grub.cfg file will have lot of text in it one of the entry that you should be looking at will be similar to the one mentioned below:

menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 96475352-3ec4-46f9-ae3f-a436269132b2
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=96475352-3ec4-46f9-ae3f-a436269132b2 ro quiet splash security=selinux selinux=1
initrd /boot/initrd.img-2.6.32-21-generic

Obviously kernel will be different as I am using Ubuntu 10.04. If it is there copy it into a file and then put it your Fedora /boot/grub/grub.conf file (make sure you take a backup of /boot/grub/grub.conf file on Fedora before you make any changes to it)


title Ubuntu 11.04
root=(hd0,5)
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=96475352-3ec4-46f9-ae3f-a436269132b2 ro quiet splash security=selinux selinux=1
initrd /boot/initrd.img-2.6.32-21-generic

Again, the above example is using my grub.cfg file you edit the parameters as per your Ubuntu kernel.
 
Old 07-10-2011, 10:33 AM   #5
vedi
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
I added following lines

title Ubuntu
root (hd0,4)
kernel /boot/grub/core.img

In second line hd0,4 is because ubuntu is on /dev/sda5(so hd0 should be with less 1 than 5)

It worked.

THnx u tried to help.
 
Old 07-10-2011, 01:32 PM   #6
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,674

Rep: Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485
For the record:
Most distros will set up their boot loader to handle every other OS they can find and recognise. Fedora won't: it will only include Windows.

The best bet, if you want to try installing a second distro, is to install its bootloader to its root partition, leaving the first distro's bootloader on the MBR. If this contains something like the following (for Grub 1), you can then boot anything

title guest Linux
rootnoverify (hd0,partition_number)
chainloader +1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Messed up symbols on Fedora 7 Mr. Wii Linux - Software 2 10-25-2007 01:07 PM
Fedora cannot read DVD !!! but its more messed up than that WhiskeyTangoFoxtrot Linux - Software 10 11-06-2005 03:17 AM
Firefox ui messed up after Fedora upgrade fannymites Fedora 2 08-20-2005 10:59 PM
fedora messed up after debian installation greg108 Fedora 7 08-26-2004 10:15 PM
mandrake/fedora/xp I messed up help! Lost Soul Linux - Newbie 1 02-06-2004 04:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration