PDA

View Full Version : Grub wont load XP



djXternal
14th October 2007, 07:23 PM
Well I'm almost finaished getting everything up and running on this sytem, my last problem is now that I have Vista and Fedora 7 running and bootable, I installed XP, restored the MBR to grub and set the location to boot XP from as hd0,1 (Second partition on first drive) Vista is hd0,0 and F7 is hd2,0

My problem is that Grub wont load XP it just displays the commends....

Booting 'Windows XP'

rootnoverify (hd0,1)
chainloader +1

and just sits there

EDIT:
Just learned that now, when I select Vista in the bootloader it actually loads XP, not Vista

bob
14th October 2007, 08:03 PM
May we have a moment of silence for Vista, which may have been overwritten. How about posting the results (as root; su -) of 'fdisk -l'.

glennzo
14th October 2007, 08:03 PM
Post the output of the command /sbin/fdisk -l and the command cat /boot/grub/menu.lst. I'm sure we can set you straight.

djXternal
14th October 2007, 08:08 PM
[root@new-host-30 ~]# fdisk -l

Disk /dev/sda: 80.0 GB, 80054059008 bytes
255 heads, 63 sectors/track, 9732 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 6374 51199123+ 7 HPFS/NTFS
/dev/sda2 6375 9732 26973135 7 HPFS/NTFS

Disk /dev/sdb: 100.2 GB, 100256292864 bytes
255 heads, 63 sectors/track, 12188 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 12188 97900078+ b W95 FAT32

Disk /dev/sdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 13 104391 83 Linux
/dev/sdc2 14 9729 78043770 8e Linux LVM




[root@new-host-30 ~]# cat /boot/grub/menu.lst
# 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 (hd2,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd2,0)/grub/splash.xpm.gz
title Fedora (2.6.22.9-91.fc7)
root (hd2,0)
kernel /vmlinuz-2.6.22.9-91.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.22.9-91.fc7.img
title Vista
rootnoverify (hd0,0)
chainloader +1
title Windows XP
rootnoverify (hd0,1)
chainloader +1

glennzo
14th October 2007, 08:21 PM
I'm with Bob. Vista might just have been overwritten. Can you boot XP and have a look at the rest of the first drive, as in the partition that Vista 'might' be on? Are there any files there? Or if in Linux mount the partition and have a look see.

bob
14th October 2007, 08:21 PM
Here's what I think is the solution: http://apcmag.com/5485/dualbooting_vista_and_xp Check out the info under "restoring Vista and dual-booting". You need to get the Vista bootloader instead of the XP bootloader and then have grub pass the boot to Vista where you can make a choice of XP/Vista.

Glennzo, it's really just the case of XP's bootloader being dumb as a box of rocks and not recognizing Vista. Who'd a thunk you'd EVER dual-boot two versions of Windows? Certainly not the boys at MS!

djXternal
14th October 2007, 08:32 PM
mounted in linux and it appears everything is still intact