Re: GRUB issue
From: R. G. Newbury (newburynospam_at_mandamus.org)
Date: Fri, 18 Mar 2005 20:25:10 GMT
> read the output of /sbin/fdisk -l again:
> /dev/hda1 * 1 5099 40957686 7 HPFS/NTFS
> /dev/hda2 5100 7295 17639370 f W95 Ext'd (LBA)
> /dev/hda5 5100 7295 17639338+ 83 Linux
> hda2 is an extended partition with hda5 defined on it.
> hda2 is not mountable, per se.
Sounds like you do not have an entry in grub.conf to actually pass
control to the Windows partition.
If you have an entry is probably is wrong..
Boot into Linux.
Go to /boot/grub and edit the grub.conf (or menu.lst) file.
Grub is already installed in the MBR and can remain there.
Remember that Grub numbers things from zero, so hda is hd0 and hda1
is (hd0,0). (This is where you could *very easliy*, have gone wrong),
(If you ever need to install grub to the mbr from scratch, then from a
grub command prompt (ie after a linux install):
GRUB> root (hdo,5) # this tells it where /boot is
GRUB> setup (hd0) # this writes to the MBR )
Add a Title line to grub.conf:
title Windows XP
rootnoverify (hd0,0) #in your case, since your Windows partition is
hda1 = (hd0,0)
makeactive # should not be necessary but does not harm: you can also
hide or unhide other partitions: RTFM
chainloader +1 # this tells grub to just grab the first
block and run it