LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora - Installation (https://www.linuxquestions.org/questions/fedora-installation-39/)
-   -   GRUB Entry (https://www.linuxquestions.org/questions/fedora-installation-39/grub-entry-584327/)

halfbrazilian 09-13-2007 12:13 AM

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?

mdg 09-13-2007 12:21 AM

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


halfbrazilian 09-13-2007 11:53 AM

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.

ps_sabu 11-09-2007 07:15 AM

Quote:

Originally Posted by halfbrazilian (Post 2890805)
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


All times are GMT -5. The time now is 11:14 AM.