PDA

View Full Version : grup boot error | fedora + win2k


nadi
20th March 2004, 01:40 AM
I have fedora on a WD HD as /dev/hda and grub was setup w/ MBR on. I have Win2k on a Maxtor /dev/hdb as slave. Both options show up when I boot grub but, when I try to chose the Win2k option it says:
booting "Win2k
rootnoverify (hd1,0)
chainloader +1
and won't boot Win2k

I realize this may sound redundant but, I have tried everything and searched numerous forums with no luck. I've tried initially installing Win2k as the Master and Fedora as the slave but, this was unfruitfull as well.
I understand HDD jumper settings and bios configurations but, every conceivable combination just fails at this point any help would be highly appriciated.

NOTE: Fedora does boot and I can read from my Win2k drive w/ NTFS kernel module loaded but, when it comes to using the Win2k drive I must shut down the box and attach the IDE cable as single drive and this is just unacceptable. I know it must be something to do with grub and that my reason for this post.


THIS IS MY MOUNTED DEVICES
**************************************************

Filesystem Size Used Avail Use% Mounted on
/dev/hda3 36G 3.4G 31G 10% /
/dev/hda1 99M 6.2M 88M 7% /boot
none 109M 0 109M 0% /dev/shm
/dev/hda2 1012M 132M 829M 14% /var
/dev/hdb5 57G 21G 37G 37% /mnt/windows

THIS IS MY GRUB CONFIG FILE
**************************************************
# 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/hda3
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
password --md5 $1$YSlfKNGL$B9ZRgFxAwtPo6.YjIqCVt1
title Fedora Core (2.4.22-1.2174.nptl)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2174.nptl ro root=LABEL=/ hdc=ide-scsi rhgb
initrd /initrd-2.4.22-1.2174.nptl.img
title Win2k
rootnoverify (hd1,0)
chainloader +1



:confused:

mhelios
20th March 2004, 05:40 AM
Try this in a "linux rescue" environment on hda:

grub-install --recheck /dev/hda


After that you will want to change this your /boot/grub/grub.conf to this:

title Win2k
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1


Or this if above still don't do it:


title Win2k
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)
rootnoverify (hd1,0)
chainloader +1

nadi
20th March 2004, 03:54 PM

Gooday mate
You live on the Gold Coast (of OZ)
And I live on the Sun Coast ( of FL)
Just a bunch of Coasties man.

Quick question?
When I enter (linux rescue) on reboot what options do choose. I initially chose option skip and at the command prompt did the grub-install command and got an error message. Then the same thing when I chose the continue option. Need a little more detail please.
And, do I change the grub.conf file while in (linux rescue) mode.

Again thanks for your help mate.

Jman
21st March 2004, 02:07 AM
I notice that your Windows partition is hdb5. I think this means you have to change (hd1,0) to (hd1,4) in mhelio's example, as grub partitions start at 0. For example, hda1 is (hd0,0).

nadi
21st March 2004, 03:46 AM
Thanks mhelio
I just got off my lazy butt and read through some other posts about grub errors and found out how to do it. Your example was dead on. The only thing I had trouble w/ was the start.
At least I know how to configure my grub boot loader now.
For future reference:

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I had to boot from CD 1 press F5 then type: $ linux rescue After respond through the keybrd & language questions, rejecting netwk setup and then select Continue of the 3 choices. At the boot prompt type # chroot /mnt/sysimage then type # /sbin/grub-install --recheck /dev/hda which did take forever as indicated. I was displayed the HDD layout of my system then I just edited the /boot/grub/grub.conf file w/ vim as explained in your SECOND example of Win2k title and ctrl+d ctrl+d twice and loaded Win2k without a hitch.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I'll shut up now
See ya! And thanks a bunch.

mhelios
21st March 2004, 04:06 AM
I had to boot from CD 1 press F5 then type: $ linux rescue After respond through the keybrd & language questions, rejecting netwk setup and then select Continue of the 3 choices. At the boot prompt type # chroot /mnt/sysimage then type # /sbin/grub-install --recheck /dev/hda which did take forever as indicated. I was displayed the HDD layout of my system then I just edited the /boot/grub/grub.conf file w/ vim as explained in your SECOND example of Win2k title and ctrl+d ctrl+d twice and loaded Win2k without a hitch.

Np mate. :) Yea, sorry about the lack of detail. Glad you figured it out before I could reply. Good to see that it's working now.

Jman: Thanks for that.:) You're right; hdb would be (1,4). :)
Usually the first format I posted is all that's needed as the software can auto detect the partitioning format anyway. And in nadi's case this turned out true. :)