LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices

Reply
 
Search this Thread
Old 09-13-2007, 12:13 AM   #1
halfbrazilian
LQ Newbie
 
Registered: Sep 2007
Distribution: Ubuntu 8.04
Posts: 14

Rep: Reputation: 0
GRUB Entry


I already had Windows and Ubuntu on a duel boot using GRUB as my boot loader. Because of this, when I installed Fedora 7 on a separate hard drive, I chose not to install a GRUB on Fedora. I tried adding a GRUB entry for Fedora but when I booted from the entry I got a kernel panic.

Here are the files that were in hdb1 (Fedora Hard Drive):

Quote:
config-2.6.21-1.3194.fc7
lost+found
grub
System.map-2.6.21-1.3194.fc7
initrd-2.6.21-1.3194.fc7.img
vmlinuz-2.6.21-1.3194.fc7
Here was the file that was in the fedora grub directory:

Quote:
splash.xpm.gz
And here was my entry in menu.lst in GRUB on Ubuntu with my Fedora entry in red:

Quote:
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=3adabece-a770-49a0-bf76-766193ae1204 ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=3adabece-a770-49a0-bf76-766193ae1204 ro single
initrd /boot/initrd.img-2.6.20-16-generic

title Ubuntu, kernel 2.6.20-15-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=3adabece-a770-49a0-bf76-766193ae1204 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=3adabece-a770-49a0-bf76-766193ae1204 ro single
initrd /boot/initrd.img-2.6.20-15-generic

title Ubuntu, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1

title Fedora 7
root (hd1,0)
kernel /vmlinuz-2.6.21-1.3194.fc7 ro
initrd /initrd-2.6.21-1.3194.fc7.img
Did I do the GRUB entry wrong or was the install bad?
 
Old 09-13-2007, 12:21 AM   #2
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 37
The initrd and vmlinuz files are usually in the /boot partition. If this is true in your case also, the grub entry should be:
Code:
title Fedora 7
root (hd1,0)
kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro
initrd /boot/initrd-2.6.21-1.3194.fc7.img
 
Old 09-13-2007, 11:53 AM   #3
halfbrazilian
LQ Newbie
 
Registered: Sep 2007
Distribution: Ubuntu 8.04
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks. I think my problem was that I didn't boot up fedora after I installed it so it didn't finish the setup. My problem now is that I didn't wait for a reply to my previous question and unplugged my master hard drive and left the slave in. I had planned to install GRUB on the slave along with fedora and then put the master back in and add an entry to Ubuntu's GRUB (on the master hard drive) using the Fedora's entry in its own GRUB file as a guide. Unfortunately, when I put the master back in, It boots up Fedora's GRUB rather than Ubuntu's. I want it to do the opposite. For now, I have figured out how to get Fedora's GRUB to boot Ubuntu. Unfortunately, I haven't figured out how to get windows to boot from it. Eventually, I want to go back to Ubuntu's GRUB as my boot loader.
 
Old 11-09-2007, 07:15 AM   #4
ps_sabu
Member
 
Registered: Nov 2006
Location: Kerala, South India
Distribution: Ubuntu 12.10, Ultimate Edition 3.5, OZ Unity 3.0 Black Opal
Posts: 117

Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by halfbrazilian View Post
Thanks. I think my problem was that I didn't boot up fedora after I installed it so it didn't finish the setup. My problem now is that I didn't wait for a reply to my previous question and unplugged my master hard drive and left the slave in. I had planned to install GRUB on the slave along with fedora and then put the master back in and add an entry to Ubuntu's GRUB (on the master hard drive) using the Fedora's entry in its own GRUB file as a guide. Unfortunately, when I put the master back in, It boots up Fedora's GRUB rather than Ubuntu's. I want it to do the opposite. For now, I have figured out how to get Fedora's GRUB to boot Ubuntu. Unfortunately, I haven't figured out how to get windows to boot from it. Eventually, I want to go back to Ubuntu's GRUB as my boot loader.
I think your grub.conf in Ubuntu you should add,


title Fedora 7 (2.6.21-1.3194.fc7)
root (hd1,0)
kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/sdb1
initrd /boot/initrd-2.6.21-1.3194.fc7.img


title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1


Where sdb1 is the partition where your Fedora7 is. This should solve the problem.




Linux user #458208

Last edited by ps_sabu; 11-10-2007 at 06:02 AM.
 
  


Reply

Tags
fc7, fedora, grub, install


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
GRUB and SATA Entry PipeDreams Linux - Newbie 16 01-03-2007 12:48 PM
grub entry? quaylet Linux - Newbie 2 06-14-2005 01:30 PM
adding a new entry to grub? dr_zayus69 Linux - Software 8 12-30-2004 02:51 PM
GRUB Entry for 2.6.8 Codegen Linux - Distributions 1 08-14-2004 08:54 PM
adding entry to grub questionasker Linux - General 4 03-18-2004 09:21 AM


All times are GMT -5. The time now is 07:55 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