LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-20-2009, 10:07 AM   #1
cricballa
Member
 
Registered: Jan 2007
Posts: 33

Rep: Reputation: 15
dual boot with Ubuntu 9.04 and Fedora 11


I am trying to install Ubuntu 9.04 and Fedora 11 on my new box. I am not able to make it dual boot system. I have a 500G hard drive
and would like to use around 150G for each OS and leave 200G in free space. Here is
what I did,

1. Installed Ubuntu with the following partitions,

/boot 200 MB
/ 100G
/usr 30G
/var 10

2. I then ran the system and verified that this worked as I expected.

3. I then started to install Fedora in the free space. Fedora seemed to recognize the partitions that I created in Ubuntu. After I created the partition, Fedoara showed this info,

Device/LVM Volume Groups "Mount Point/
RAID/VOLUME" Type Format Size (MB)

vg_naseemu32 335396
lv_root / ext4 yes 331844
lv_swap swap yes 3552

Hard Drives
/dev/sda1 ext3 188
/dev/sda2 extended 141149
/dev/sda5 swap 2863
/dev/sda6 ext3 38146
/dev/sda7 ext3 4769
/dev/sda8 ext3 95370
/dev/sda3 /boot ext3 Yes 200
/dev/sda4 physical volume (LVM)Yes

4. After Fedora finished formating HD, it showed a screen with a list of current OS on the system. It only listed Fedora, It did not seem to recognize Ubuntu. There was a field which said something like "add boot loader at /dev/sda1" which was checked.It also had an option to add other OS, I did not know how to add so I moved forward.

5. After it finished instlling all 1350 packages, I expected that on reboot, I would see option for both the Operating systems, howeever, there was no such option. Only Fedora gets started each time I restart the system.

Any suggestion that how can I fix this.
 
Old 09-20-2009, 10:57 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
From your description, I suspect that in the process of installing Fedora, you also installed it's bootloader to the MBR of the hard drive, overwriting the Ubuntu bootloader installation to the MBR. Also, Fedora probably looked in Ubuntu's root for the grub files and ignored the files in the /boot partition.

To verify, boot Fedora and mount Ubuntu's /boot partition. Open file /boot/grub/menu.lst and copy the menu item for Ubuntu (should be three lines starting with "title"). Paste that into the Fedora /boot/grub/menu.lst (or possibly grub.conf) then reboot. You should have both Ubuntu and Fedora in the menu.

Select Ubuntu and press enter. If Ubuntu boots properly, you're in business.
 
Old 09-20-2009, 05:16 PM   #3
cricballa
Member
 
Registered: Jan 2007
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks for the suggestion. I mounted ubuntu's /boot (which appears as /dev/sda1 in the output of df). I see three sections starting with title. These are:

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid XXXXXXXXX
kernel XXXXXXXXX
initrd XXXXXXXXX
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery
uuid
kernel
initrd
title Ubuntu 9.04, memtest86+
uuid
kernel
initrd

The menu.lst in Fedora is a symlink to grub.conf. I copied the three lines under the first title above (i,e, Ubuntu 9.04, kernel 2.6.28-11-generic) in Fedora's grub.conf. I then reboot the system and expect to see both the operating systems listed. However, Fedora boots directly without giving me any option for the other file system.
May be I am close but not quite there.
 
Old 09-20-2009, 05:55 PM   #4
cricballa
Member
 
Registered: Jan 2007
Posts: 33

Original Poster
Rep: Reputation: 15
In fact you are right. In grub.conf, there was a line hiddenmenu. I commented this out and now I see both OS listed when I restart the system. However, when I select Ubuntu option, I get an error, "file not found".

Does it mean that I have overwritten ubuntu's bootloader? Would I have to install Ubuntu again?
 
Old 09-20-2009, 07:28 PM   #5
cricballa
Member
 
Registered: Jan 2007
Posts: 33

Original Poster
Rep: Reputation: 15
It works now. I had to add, another line in grub.conf:

root(hd0,0).

This line was missing from Ubuntu's grub.conf. I do not know, why Ubuntu's boot loader does not need this info.

Thanks for your suggestion. It was indeed valuable and taught me some thing.
 
Old 09-27-2009, 11:39 AM   #6
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by cricballa View Post
It works now. I had to add, another line in grub.conf:

root(hd0,0).

This line was missing from Ubuntu's grub.conf. I do not know, why Ubuntu's boot loader does not need this info.
Because UBUNTU use UUID to boot
 
  


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
Doubt on installing Ubuntu 9.04 over Fedora 11 Dual Boot. maheshkuruganti Linux - General 1 05-20-2009 09:45 AM
Dual Boot Fedora 7 + Ubuntu Feisty yusuo Linux - Distributions 7 07-07-2007 06:46 AM
Dual boot Ubuntu and fedora core 6 bzeecongas Linux - Newbie 13 01-07-2007 12:01 AM
Dual Boot Ubuntu, Suse, Mandriva & Fedora rickbman Linux - Newbie 3 11-26-2005 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:03 AM.

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
Open Source Consulting | Domain Registration