LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 05-26-2006, 02:17 PM   #1
Jer1234
LQ Newbie
 
Registered: Mar 2006
Posts: 20

Rep: Reputation: 0
Dual boot FC5 and CentOS problems


I have a machine that has XP, Fedora 5, and CentOS 4 installed on. CentOS was the last one to be install and when I boot the computer and grub comes up the only ones that are there is CentOS and Other. Fedora is no showing up. I added it when I installed CentOS but it just doesnt work. Need to know how to fix it because I am not sure what to do. Thanks.
 
Old 05-26-2006, 04:07 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Did you use the same /boot partition for FC5 and CentOS? If you used different ones, you may have two partitions with the same /boot label, and this can cause one to be invisible from the other.

What I suspect happened is that CentOS created its own /boot, and changed GRUB so it points to that partition -- which has no information in it about FC5.

Here's what my /boot/grub/grub.conf file looks like:
Code:
default=0
timeout=5
splashimage=(hd1,1)/grub/splash.xpm.gz
title Fedora Core 5 (2.6.16-1.2122)
	root (hd1,1)
	kernel /vmlinuz-2.6.16-1.2122_FC5smp ro root=/dev/FC5/Root rhgb quiet
	initrd /initrd-2.6.16-1.2122_FC5smp.img
title Fedora Core 4 (2.6.16-1.2111)
	root (hd1,1)
	kernel /vmlinuz-2.6.16-1.2111_FC4smp ro root=/dev/FC4/root rhgb quiet
	initrd /initrd-2.6.16-1.2111_FC4smp.img
title Fedora Core 3 (2.6.12-1.1381)
	root (hd4,0)
	kernel /vmlinuz-2.6.12-1.1381_FC3smp ro root=LABEL=/ rhgb quiet
	initrd /initrd-2.6.12-1.1381_FC3smp.img
title Debian 2.6.8
        root (hd7,0)
	kernel (hd7,0)/vmlinuz ro root=LABEL=/ rhgb quiet
	initrd (hd7,0)/initrd.img
title WinXP
	rootnoverify (hd0,0)
	chainloader +1
title SBootMgr
	root (hd1,1)
	kernel /memdisk.bin
	initrd /sbootmgr.dsk
Notice particularly the Debian entry, which is set to boot from a USB drive. The three lines tell GRUB:
1) Use drive 8, partition 1
2) Load the kernel from the specified file on (hd7,0)
3) Load the initial ram disk from the specified file on (hd7,0)

Now, in your case, you need to identify the HD and partition containing your FC5. The easiest way is to do a fdisk -l (as root) after you start CentOS. (Remember, GRUB counts everting from 0, so, for example, /dev/hda3 would be (hd0,2) to GRUB.)

After you've found your various partitions, edit /boot/grub/grub.conf (or, perhaps CentOS uses /boot/menu.lst or even /etc/menu.lst) so it has an entry referencing the FC5 installation following the Debian model I showed you above.

If you have a floppy drive, consider creating a GRUB bootable floppy to experiment with. (Instruction can be found in info grub.)

Good luck.
 
  


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
CentOS 4.0 + Windows XP Dual Boot laserlight Linux - Enterprise 9 02-01-2010 12:51 PM
grub.conf dual boot xp centos xp does not load Envision5000 Linux - Newbie 8 03-06-2006 10:04 PM
Dual-boot with CentOS or Fedora and WinXP Dmjmusser Red Hat 1 02-17-2006 02:38 PM
CentOS / Slackware Dual boot Problem Dankles Slackware 2 11-01-2005 02:50 PM
Ext3 partion corrupts with RH8/CentOS 4 dual boot simonb Red Hat 1 05-31-2005 04:29 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration