LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-09-2005, 12:36 PM   #1
corbinc1
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Rep: Reputation: 0
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
 
Old 03-09-2005, 12:40 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 60
/dev/hdc5 7 920 7341673+ 7 HPFS/NTFS

That is (hd0,4) in grub speak.

title Windows XP Pro
rootnoverify (hd0,4)
chainloader +1
 
Old 03-09-2005, 02:06 PM   #3
corbinc1
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Original Poster
Rep: Reputation: 0
----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
 
Old 03-09-2005, 02:46 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 60
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
 
Old 03-09-2005, 02:58 PM   #5
corbinc1
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 03-09-2005, 06:14 PM   #6
corbinc1
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Original Poster
Rep: Reputation: 0
help please
 
Old 03-09-2005, 07:28 PM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 60
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
 
Old 03-09-2005, 09:10 PM   #8
Valhalla
Member
 
Registered: Dec 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
/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.

Last edited by Valhalla; 03-09-2005 at 09:14 PM.
 
Old 03-09-2005, 11:03 PM   #9
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 60
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
 
Old 03-10-2005, 11:30 PM   #10
corbinc1
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Original Poster
Rep: Reputation: 0
----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
 
Old 03-11-2005, 12:20 AM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,213

Rep: Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 10:37 PM
booting from CD when using grub??? thanos155 Fedora 7 08-04-2005 07:08 PM
Booting from CD with Grub eqxro Linux - Software 2 10-04-2004 12:53 AM
GRUB Booting m4rine Linux - General 8 08-21-2004 03:46 PM
Booting from a CD using Grub? kaider Red Hat 3 08-02-2004 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration