LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   xp not booting in grub (https://www.linuxquestions.org/questions/fedora-35/xp-not-booting-in-grub-587832/)

yianni 09-27-2007 04:59 PM

xp not booting in grub
 
i had windows xp installed then i installed fedora when i select windows to boot it just restarts and goes back to grub it will not let me get back into windows this is my fdisk

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 11473 92156841 7 HPFS/NTFS
/dev/sda2 11474 18732 58307917+ 7 HPFS/NTFS
/dev/sda3 18733 27851 73248367+ 7 HPFS/NTFS
/dev/sda4 27852 30401 20482875 f W95 Ext'd (LBA)
/dev/sda5 27852 30273 19454683+ 83 Linux
/dev/sda6 30274 30401 1028128+ 82 Linux swap / Solaris

Disk /dev/sdb: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 14595 117234306 7 HPFS/NTFS

Disk /dev/sdc: 507 MB, 507379712 bytes
16 heads, 63 sectors/track, 983 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 983 495313+ 6 FAT16

gfem 09-27-2007 05:59 PM

Check your grub.conf file and make sure it points to the correct disk and partition for windows.

yianni 09-27-2007 06:48 PM

this is my grub config

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,4)
# kernel /boot/vmlinuz-version ro root=/dev/sda5
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.21-1.3194.fc7)
root (hd0,4)
kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.21-1.3194.fc7.img
title windows
rootnoverify (hd0,0)
chainloader +1

kojot 09-27-2007 11:23 PM

Try this:

Code:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,4)
#          kernel /boot/vmlinuz-version ro root=/dev/sda5
#          initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.21-1.3194.fc7)
        root (hd0,4)
        kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/1 rhgb quiet
        initrd /boot/initrd-2.6.21-1.3194.fc7.img
title windows
        rootnoverify (hd0,0)
        map (hd0) (hd1)
        map (hd1) (hd0)

        chainloader +1


ArchAngeL13 09-28-2007 02:48 AM

If you install Fedora, Grub automatically appoints the Fedora partition but you have to manually appoint other ones like XP. If I am not mistaken :)

DOTT.EVARISTI 09-28-2007 04:35 AM

uhm..
 
Then You could try:

1)run gparted to see if partttion numbers are correct

2)do a mbr backup

3)re-install win bootloader by fixmbr

4)re-install mbr and grub

if the partitions are correct now it should work

P.s::i think win partition should be set to actve and bootable in gparted

Good luck !

yianni 09-28-2007 12:44 PM

i tried what kojot said but that didnt work :(

i installed gparted all the partitions are right

how can i do these


2)do a mbr backup

3)re-install win bootloader by fixmbr

4)re-install mbr and grub

jay73 09-28-2007 12:50 PM

Can you insert

makeactive

just underneath the hd line for xp?

DOTT.EVARISTI 09-29-2007 03:52 AM

Here it comes the possible solution...
 
Take a look at aus9's grub troubleshooter and grub tutorial

http://www.linuxquestions.org/questi...hreadid=237511

http://www.linuxquestions.org/questi...postid=1413211

they're more complete than i could explain and let me know how it goes

Good luck

DOTT.EVARISTI 09-29-2007 04:04 AM

How to re-install win xp bootloader
 

Anyway to re-install win bootloader you have to insert win installation cd,as it loads push R to access the recovery console and identify your win root and then tyoe fixmbr and press enter.

That's all !

DOTT.EVARISTI 10-01-2007 04:26 AM

How it's gone ?

Can you boot Win now ?


All times are GMT -5. The time now is 03:34 AM.