Jump to content
fkarlsen

Grub problems

Recommended Posts

Hi, I'm having some problems loading Win XP from Grub...

 

My grub.conf states this:

title WinXP

rootnoverify (hd1,0)

chainloader +1

 

My winxp installation lies in the hdc1 drive and my fedora install in hdb(hdb1=/boot, hdb2=, hdb3=/swap)

 

Anyone know why my xp install wont boot from grub?

 

 

best regards

 

fkarlsen

Share this post


Link to post
Share on other sites

try

 

 rootnoverify (hd2,0)
 chainloader +1

 

if that doesnt work past the results of

 

fdisk -l

 

here

 

that's a small l as in lima

 

cheers

 

anyweb

Share this post


Link to post
Share on other sites

Disk /dev/hdc: 120.0 GB, 120034123776 bytes

255 heads, 63 sectors/track, 14593 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot Start End Blocks Id System

/dev/hdc1 * 1 5100 40965718+ 7 HPFS/NTFS

/dev/hdc2 5101 14593 76252522+ f Win95 Ext'd (LBA)

/dev/hdc5 5101 14593 76252491 7 HPFS/NTFS

 

Disk /dev/hdd: 10.2 GB, 10245537792 bytes

255 heads, 63 sectors/track, 1245 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot Start End Blocks Id System

/dev/hdd1 * 1 638 5124703+ 7 HPFS/NTFS

/dev/hdd2 639 1245 4875727+ f Win95 Ext'd (LBA)

/dev/hdd5 639 1245 4875696 b Win95 FAT32

 

Disk /dev/hdb: 6498 MB, 6498680832 bytes

255 heads, 63 sectors/track, 790 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot Start End Blocks Id System

/dev/hdb1 * 1 13 104391 83 Linux

/dev/hdb2 14 660 5197027+ 83 Linux

/dev/hdb3 661 790 1044225 82 Linux swap

 

This is what fdisk -l returns... Have tried rootnoverify (hd2,0)

 

Hope you can help me...

 

fkarlsen

Share this post


Link to post
Share on other sites

when you try to boot to xp via grub, what happens ? do you get an error, if so what is it ?

 

cheers

 

anyweb

Share this post


Link to post
Share on other sites

Afaik Windows got a problem booting from a bootloader when it's not the first primary master. There's a workaround with Grub that does a virtual swap. Maybe this helps you:

 

title=WinXP
map (hd0) (hd2)
map (hd2) (hd0)
rootnoverify (hd2,0)
# not sure, also try 'rootnoverify (hd0,0)' here if it doesn't work
chainloader +1
makeactive

 

z0ny

Share this post


Link to post
Share on other sites

Thanks zOny!

 

heres what i did:

 

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

 

Worked perfectly

 

fkarlsen

Share this post


Link to post
Share on other sites

superb !, well done Z0ny :)

Share this post


Link to post
Share on other sites

excellent z0ny thank you very much I was able to help my friend on irc with this and of course all your great! help on irc thank you again much appreciated...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...