I installed Fedora Core 6 on a second HD in my PC. The first drive it Windows XP. I setup the Windows boot loader to boot XP or Linux. When I boot linux I get to a "grub" prompt, then I have to manually point it to my grub.conf file.
Quote:
grub> configfile /grub/grub.conf
|
Then it boots to Linux and seems to work fine; although, I get a few errors on boot that refer to mounting files systems that don't exist. My question what am I missing to get grub to work correctly?
My file system is setup as follows.
hda -> Windows (NTFS) (Default boot disk)
hdb -> Linux
There are 5 paritions on hdb
hdb1 - Filesystem type is ext2fs, partition type 0x83
hdb2 - Filesystem type is fat, partition type 0xb
hdb3 - Filesystem type unknown, partition type 0x82
hdb4 - Filesystem type unknown, partition type 0x5
hdb5 - Filesystem type unknown, partition type 0x8e
I have tried to reinstall grub.
Code:
# grub-install /dev/hdb
It tells me it worked, however it still doesn't get past the prompt.
The Clues: grub.conf is in a different location
1) The boot grub util finds it in /grub/grub.conf, my shell says /boot/grub/grub.conf
2) Also I have a /boot/boot/grub directory with no grub.conf or device.map file.
3) When I execute grub from the Linux shell it thinks the root is (fd0)
4) When I boot grub thinks the root is (hd1,0) <- Correct!
Grub Files below:
----------------------------------------
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hdb
default=0
timeout=5
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6)
root (hd1,0)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img
title Windows
rootnoverify (hd0,0)
chainloader +1
----------------------------------------
Code:
# this device map was generated by anaconda
(hd1) /dev/hdb
(hd0) /dev/hda
Any advise would be helpful.