Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub : Dual boot Gentoo and XP Home Edition.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
vivek
n00b
n00b


Joined: 19 Jul 2002
Posts: 51
Location: In Your Nightmare

PostPosted: Thu Nov 21, 2002 3:51 am    Post subject: Grub : Dual boot Gentoo and XP Home Edition. Reply with quote

Hello Gentoo Friends

I have a problem dual booting Windows XP and Gentoo Linux.
I am using Gentoo 2.4.19-r9 and Windows XP Home Edition on two separate hard disks.
I have configured to boot using Grub.
Linux is on primary master and windows is on secondary master. (the slaves are unoccupied).
Grub informs me that the linux is installed on hd0 and windows is installed in hd1.

So, my grub settings are as follows

default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux
root (hd0,0)
kernel /boot/bzImage root=/dev/hda6 hdg=ide-scsi hdh=ide-scsi pci=biosirq

title=Windows XP
root (hd1,0)
chainloader +1

But, when I choose Windows XP from the boot menu, I get an error "Unrecognized file system" and the system does not proceed ahead.
Windows XP is configured to use NTFS.
Does any of you know a solution for this problem ?
Thank you
Regards.
Back to top
View user's profile Send private message
s003apr
Apprentice
Apprentice


Joined: 04 Oct 2002
Posts: 162

PostPosted: Thu Nov 21, 2002 1:33 pm    Post subject: Reply with quote

I think windows needs to be on the first harddrive (hd0). I don't think it matters if it's master or slave or not, at least that is according to the grub manual.

anyway, from the grub manual:
http://www.fsf.org/manual/grub-0.92

Quote:

DOS/Windows

GRUB cannot boot DOS or Windows directly, so you must chain-load them (see Chain-loading). However, their boot loaders have some critical deficiencies, so it may not work to just chain-load them. To overcome the problems, GRUB provides you with two helper functions.

If you have installed DOS (or Windows) on a non-first hard disk, you have to use the disk swapping technique, because that OS cannot boot from any disks but the first one. The workaround used in GRUB is the command map (see map), like this:

grub> map (hd0) (hd1)
grub> map (hd1) (hd0)

This performs a virtual swap between your first and second hard drive.

Caution: This is effective only if DOS (or Windows) uses BIOS to access the swapped disks. If that OS uses a special driver for the disks, this probably won't work.

Another problem arises if you installed more than one set of DOS/Windows onto one disk, because they could be confused if there are more than one primary partitions for DOS/Windows. Certainly you should avoid doing this, but there is a solution if you do want to do so. Use the partition hiding/unhiding technique.

If GRUB hides a DOS (or Windows) partition (see hide), DOS (or Windows) will ignore the partition. If GRUB unhides a DOS (or Windows) partition (see unhide), DOS (or Windows) will detect the partition. Thus, if you have installed DOS (or Windows) on the first and the second partition of the first hard disk, and you want to boot the copy on the first partition, do the following:

grub> unhide (hd0,0)
grub> hide (hd0,1)
grub> rootnoverify (hd0,0)
grub> chainloader +1
grub> makeactive
grub> boot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum