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 10-12-2011, 06:08 PM   #1
theonislair
LQ Newbie
 
Registered: Oct 2011
Distribution: Fedora, CentOS, RHEL
Posts: 12

Rep: Reputation: Disabled
Dual Booting CentOS 6 & Fedora 15


I'm not exactly a 'newbie', but I do have a question that I'm not quite clear on. I have Fedora 15 (KDE) installed on a box, and I want to dual boot CentOS 6 with it. Here's my set-up:

sda-mbr (Windows bootloader)
sda-1 (WINXP RECOVERY)
sda-2 (WINXP)
sda-3 (Fedora 15)

sdb-mbr (Fedora GRUB)
sdb-1 (Windows 7)
sdb-2 (SWAP)
sdb-3 (CentOS)

Should I install the CentOS bootloader in the first sector of sdb3? If I do this I think that I'll have to boot Fedora, mount sdb3 and take the GRUB information for CentOS (with UUID, kernel, initrd) to add to my Fedora's /boot/grub/grub.conf and /boot/grub/menu.lst. Is this right? I use sda to boot Windows and sdb to boot Linux.
 
Old 10-12-2011, 06:43 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,266

Rep: Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358
Yes. What you plan in your last paragraph is what will need to be done. The file to edit should be the grub.conf as I believe in Fedora the menu.lst is just a link to grub.conf. If you copy the entry from CentOS to the Fedora grub.conf and it doesn't boot, try just chainloading it.
 
1 members found this post helpful.
Old 10-12-2011, 06:43 PM   #3
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 267

Rep: Reputation: 30
Which of your OS's did you install first? CentOS or Fedora?
You might want (if you have the disk space to spare) to move the malware collection (on sdb1) to sda3 and then move Fedora to sdb1. Then using the Fedora LiveCD restore the Fedora bootloader to the mbr of sdb and you'll get both OS's (Fedora and CentOS) in the menu.
 
Old 10-12-2011, 08:57 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,621

Rep: Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088
Quote:
Originally Posted by yancek View Post
If you copy the entry from CentOS to the Fedora grub.conf and it doesn't boot, try just chainloading it.
Personally I would chainload regardless. That way if something (kernel name, UUID whatever) changes, things don't break.
 
Old 10-12-2011, 09:51 PM   #5
theonislair
LQ Newbie
 
Registered: Oct 2011
Distribution: Fedora, CentOS, RHEL
Posts: 12

Original Poster
Rep: Reputation: Disabled
Well I was correct. I installed the bootloader to the first sector of sdb3, booted Fedora, mounted sdb3 and copied the kernel/initrd/grub information from the CentOS /boot/grub/grub.conf to Fedora's /boot/grub/grub.conf. I can boot either Fedora or CentOS from the Fedora grub screen. Now I'm curious about chainloading, what is it and how do you utilize chainloading? I can post my Fedora grub.conf information if its needed.
 
1 members found this post helpful.
Old 10-12-2011, 10:45 PM   #6
theonislair
LQ Newbie
 
Registered: Oct 2011
Distribution: Fedora, CentOS, RHEL
Posts: 12

Original Poster
Rep: Reputation: Disabled
Can anyone explain this for me?
 
Old 10-13-2011, 09:23 AM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,266

Rep: Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358
Basically, the way you are booting CentOS from Fedora, Grub is pointed to the kernel and initrd files. If you chainload, it looks for the boot file/menu and would go to the grub.conf file of CentOS and from there boot the kernel. The boot files go to the same location on a partition so this should work for any OS.
 
1 members found this post helpful.
Old 10-13-2011, 02:09 PM   #8
theonislair
LQ Newbie
 
Registered: Oct 2011
Distribution: Fedora, CentOS, RHEL
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thank you all so much for the information.
 
  


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
Dual Booting in Fedora 8 & Vista Mabonyo67 Linux - Newbie 3 07-10-2008 02:46 PM
Problem of dual booting WinXP & Fedora core5 in two primary hard drives biswajit12 Fedora - Installation 5 11-07-2006 09:06 AM
Dual booting win xp 32 bit & fedora core 4 X86-64 badsha316 Linux - Newbie 2 03-20-2006 01:35 PM
Dual Booting SuSE 9.2 & XP Pro/dual hard drives The_Bug Linux - General 3 01-04-2006 05:44 PM
Dual booting XP & Fedora C4 problem bugeyed Linux - Newbie 6 09-09-2005 09:00 AM


All times are GMT -5. The time now is 07:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration