Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Anyone successful gotten GRUB to dual boot with XP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Techie2000
Guru
Guru


Joined: 16 May 2002
Posts: 344

PostPosted: Sun May 19, 2002 10:23 pm    Post subject: Anyone successful gotten GRUB to dual boot with XP Reply with quote

I've been trying to get it to work but keep having problems. I'm debating whether to get rid of Gentoo and just install the latest Red Hat. So I just want to see if anyone was successful in this. I do not use a /boot partiton, just:

/dev/hda1 XP
/dev/hda2 FAT32 Shared Data
/dev/hda3 ext3
/dev/hda4 SWAP
Back to top
View user's profile Send private message
freefall
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2002
Posts: 89

PostPosted: Sun May 19, 2002 11:00 pm    Post subject: Re: Anyone successful gotten GRUB to dual boot with XP Reply with quote

Techie2000 wrote:
I've been trying to get it to work but keep having problems.


What kind of problems?

I'm dual booting Gentoo and XP. No problem here.
Back to top
View user's profile Send private message
Techie2000
Guru
Guru


Joined: 16 May 2002
Posts: 344

PostPosted: Sun May 19, 2002 11:29 pm    Post subject: Reply with quote

When it comes up it says GRUB is loading but then nothing happens. It just hangs.
Back to top
View user's profile Send private message
CalicoJck
Guest





PostPosted: Sun May 19, 2002 11:44 pm    Post subject: Reply with quote

Where is Grub installed? If it's on your hda3, it may be over the 1024 boundary. I would suggest making a separate /boot partition at the beginning of the drive. I don't know about free software, but I resized my partitions with Partition Magic, and it worked like a charm without any data loss. Hope that helps.
Back to top
Techie2000
Guru
Guru


Joined: 16 May 2002
Posts: 344

PostPosted: Sun May 19, 2002 11:53 pm    Post subject: Reply with quote

For more information on my problem I got a post in the installation help forum. GRUB is on hda3. When I had SuSE this setup worked fine.
Back to top
View user's profile Send private message
Guest






PostPosted: Mon May 20, 2002 2:33 am    Post subject: Reply with quote

CalicoJck wrote:
Where is Grub installed? If it's on your hda3, it may be over the 1024 boundary.


This boundary is no problem for newer Grub/Lilo versions.
Back to top
Guest






PostPosted: Mon May 20, 2002 2:48 am    Post subject: Reply with quote

I dual boot Gentoo/MS Windows XP via Grub. Here is my menu.lst. Use it as a skelleton for your config.
------------
timeout 7
#color yellow/red light-red/black
splashimage=(hd0,4)/grub/splash.xpm.gz
default 0

title Gentoo
kernel (hd0,4)/bzImage root=/dev/md0 hdd=ide-scsi hdb=ide-scsi

title Windows XP
root (hd0,1)
makeactive
chainloader +1

title Gentoo - old kernel
kernel (hd0,4)/bzImage.old root=/dev/md0 hdd=ide-scsi hdb=ide-scsi

title Floppy
root (fd0)
chainloader +1
-------------------
My setup is /dev/md0 for my linux root fs, /dev/hda5 for the boot partition, and Windows XP on /dev/hda2. You'll have to change those devices according to your set up.

I installed Grub on MBR on /dev/hda via an install.sh script I stole from Mandrake. Here it is:
------------
grub --device-map=/boot/grub/device.map --batch <<EOF
install (hd0,4)/grub/stage1 d (hd0) (hd0,4)/grub/stage2 p (hd0,4)/grub/menu.lst
quit
EOF
-----------
Here you must replace (hd0,4) with your boot partition and (hd0) with the hard disc were you want install grub.

Good luck. If it fails you can try Lilo ... or redhat, at least you'll have no problems installing the boot manager with redhat ;-)
Back to top
hudsonhauck
Apprentice
Apprentice


Joined: 16 May 2002
Posts: 182
Location: Albany, CA

PostPosted: Mon May 20, 2002 4:44 am    Post subject: Reply with quote

Yeah, works fine here too. Is there anyway to change that background where you pick which one you want to boot off? This is the image: "splashimage=(hd0,4)/grub/splash.xpm.gz " What is a .xpm file (I know that .gz is gzipped). Except a high-q image might not turn out too well. It looks like the pallette might not be too big. Thought it might be cool...
_________________
Matthew Hauck
http://matthauck.blogspot.com/
Back to top
View user's profile Send private message
FINITE
Guru
Guru


Joined: 10 May 2002
Posts: 449

PostPosted: Mon May 20, 2002 5:47 am    Post subject: Reply with quote

When you set up grub did you -install- to the mbr of the xp partition? Also did you set teh chainloader option in the grub config file?
Back to top
View user's profile Send private message
xpender
n00b
n00b


Joined: 18 May 2002
Posts: 17
Location: Bayern, Germany

PostPosted: Tue May 21, 2002 10:29 am    Post subject: Reply with quote

Here's the error:

Quote:

title Windows XP
root (hd0,1)
makeactive
chainloader +1


set root line to "root (hd0,0)", becouse /dev/hda1 is 0 and not 1 (/dev/hda2 is 1).
Back to top
View user's profile Send private message
Guest






PostPosted: Tue May 21, 2002 4:18 pm    Post subject: Reply with quote

xpender wrote:
Here's the error:

Quote:

title Windows XP
root (hd0,1)
makeactive
chainloader +1


set root line to "root (hd0,0)", becouse /dev/hda1 is 0 and not 1 (/dev/hda2 is 1).


LOL! I have Windows XP on /dev/hda2. I explicitly wrote: Insert your correct devices.

Andreas
Back to top
jay
l33t
l33t


Joined: 08 May 2002
Posts: 980

PostPosted: Tue May 21, 2002 6:28 pm    Post subject: Reply with quote

small tip: use rootnoverify (hdX,X) instead of root (hdX,X) this has helped in my case!
_________________
Do you want your posessions identified? [ynq] (n)
Back to top
View user's profile Send private message
Techie2k
Guest





PostPosted: Tue May 21, 2002 7:47 pm    Post subject: Reply with quote

Update: I somehow managed to nuke my XP partition so started a new Gentoo install from scratch. I used all the defaults. 2 times I forgot to compile keyboard support into the kernel. Anyways GRUB works fine now :).
Back to top
lasa
n00b
n00b


Joined: 17 May 2002
Posts: 63
Location: Stockholm, Sweden

PostPosted: Tue May 21, 2002 8:49 pm    Post subject: Reply with quote

This is how I configured GRUB with Windows XP:

title Windows XP
map (hd0,0) (hd2,0)
map (hd2,0) (hd0,0)
rootnoverify (hd2,0)
makeactive
chainloader +1

The mappings trick XP to think that it is on the first partition of the first disk, which is necessary for it to find the NTLDR. Switch for whatever partition or disk you have XP on.

-lasa-
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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