LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Booting xp with Grub (https://www.linuxquestions.org/questions/linux-software-2/booting-xp-with-grub-299662/)

corbinc1 03-09-2005 12:36 PM

Booting xp with Grub
 
-----I installed xp then fedora can get xp to load when i click on i tin the grub. I have config my grub.conf file to this and it should work.

#boot=/dev/hdc
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.9-1.667)
root (hd0,0)
kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-1.667.img
title Windows XP Pro
rootnoverify (hd0,2)
chainloader +1

----Here is my partitions i have grub on the first boot partition and i think windows xp on hdc2 and then there is some free space and linux is on hdc6

Disk /dev/hdc: 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/hdc1 * 1 6 48163+ 83 Linux
/dev/hdc2 7 9728 78091965 f W95 Ext'd (LBA)
/dev/hdc5 7 920 7341673+ 7 HPFS/NTFS
/dev/hdc6 921 4745 30724281 83 Linux

------I have tried editing the config file with all the paoosible combinations and i either get a print out of the stuff in the xp config file or i get the print out and an error 13 unsupported formatt or something like that.

Thanks for your halp i have read alot of the posts but they did not help me with my situation

homey 03-09-2005 12:40 PM

/dev/hdc5 7 920 7341673+ 7 HPFS/NTFS

That is (hd0,4) in grub speak.

title Windows XP Pro
rootnoverify (hd0,4)
chainloader +1

corbinc1 03-09-2005 02:06 PM

----Thanks i do understand that but when i try (hd0,4) it prints out rootverify (hd0,4)
chain loader +1

And then it just hangs and does nothing

homey 03-09-2005 02:46 PM

I wonder if the /dev/hdc indicates that you are using sata drives. At any rate, it may help to use the map statement in this case...
Code:

title Windows XP Pro
rootnoverify (hd0,4)
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1


corbinc1 03-09-2005 02:58 PM

i tried that an it said disk read error occuced i alos have a secon hd that im using just for files so i thought that was for when you had xp on second hd any other things i can try

corbinc1 03-09-2005 06:14 PM

help please

homey 03-09-2005 07:28 PM

Try other ideas with map. Other than that, I fresh out of ideas...
Code:

title Windows XP Pro
rootnoverify (hd0,4)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1


Valhalla 03-09-2005 09:10 PM

/dev/hdc5 7 920 7341673+ 7 HPFS/NTFS

I beleive hdc5 is actually seen by grub as (hd2,4) since it is the 3rd 0.. 1... 2... physical drive


Try this
Code:

title=Windows XP
rootnoverify (hd2,4)
makeactive
chainloader +1

If that doesn't work you can try it it (hd0,4) although either way I think the makeactive is what you were missing.

homey 03-09-2005 11:03 PM

Normally, looking at /dev/hdc# would make one believe that it is not the first drive. In fact that setup is abit odd as I have /dev/hda and /dev/hdb. I guess one way to explain that would be sata drives which I think startup where ide drives leave off. Another idea is that corbinc1 might just have ide drives which are jumper incorrectly.

However....

Fedora boots ok and the grub.conf shows fedora as being located on (hd0,0) . That is grub speak for the first drive, and first partition of that drive.
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.9-1.667)
root (hd0,0)
kernel /vmlinuz

The partition table which we see shows an ntfs partition on the same drive as Fedora .....
/dev/hdc1 * 1 6 48163+ 83 Linux
/dev/hdc2 7 9728 78091965 f W95 Ext'd (LBA)
/dev/hdc5 7 920 7341673+ 7 HPFS/NTFS
/dev/hdc6 921 4745 30724281 83 Linux

However, corbinc1 now states that there is another drive involved. Quoted with spell check....
Quote:

I also have a second hd that I'm using just for files so I thought that was for when you had xp on second hd any other things i can try
That leads me to believe that XP may not be on the same drive as Fedora and it sure would be nice to see the output of the command: fdisk -l

corbinc1 03-10-2005 11:30 PM

----Thanks for the help i have tried all of the things you have told me to do an none of them work. my second hd has nothing on it and i am certain that xp is on the first hd. This seems to be a big problem for alot of people with not alot of answers.

Disk /dev/hdc: 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/hdc1 * 1 6 48163+ 83 Linux
/dev/hdc2 7 9728 78091965 f W95 Ext'd (LBA)
/dev/hdc5 7 920 7341673+ 7 HPFS/NTFS
/dev/hdc6 921 4745 30724281 83 Linux

Disk /dev/hdd: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 9732 78172258+ 7 HPFS/NTFS

syg00 03-11-2005 12:20 AM

Sounds like my Dell laptop - the HD is on the second IDE controller, and hence is hdc. Maybe something else is on the first controller - on my laptop it is the CD drive.
Grub still sees it as hd0 - else the splash and linux boot would cause problems.

I want to know how you installed XP into an extended partition.
Only time I've heard that work is a network install.

And then of course it wouldn't boot, as it need to have the early code (ntldr and sundry bits) on a primary partition.
I don't believe this can be made to work, even if grub wasn't involved.

But, of course, I could be wrong.


All times are GMT -5. The time now is 05:54 PM.