Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dual boot windows 2k/gentoo
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
therobot
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 256
Location: Canada

PostPosted: Sun Feb 23, 2003 1:20 am    Post subject: Dual boot windows 2k/gentoo Reply with quote

alright, I know there are plenty of threads floating around about this, but I just wanted to get a central definative answer going here. What is the best way to install both of these and have it work smoothly. Right now, I have win2k on hda, and gentoo on hdb, to boot, I have to go through the bios menu, which is really annoying, I would preferably like to have it boot up into grub, and then choose either windows or gentoo. I am just about to reinstall both operating systems, one on hda, one on hdb, and was wondering if anybody could give me any advice on how I should go about this.
thank you very much.
Back to top
View user's profile Send private message
BillyD
Guru
Guru


Joined: 05 May 2002
Posts: 323
Location: Australia

PostPosted: Sun Feb 23, 2003 1:44 am    Post subject: Reply with quote

It seems that Windows sometimes gets upset if it is not on the first hard disk, but this can be countered in grub using the map command. Apart from that, there is really not too much to it - just add a line to your grub.conf pointing to your Win2k partition and you should be able to boot into it from grub.

You need to install grub after you have installed Windows, otherwise your boot sector will be overwritten by Windows.
_________________
We used to have hominid cousins that were vegetarian. The palæontological record suggests that our ancestors killed them and ate them.
Back to top
View user's profile Send private message
therobot
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 256
Location: Canada

PostPosted: Sun Feb 23, 2003 1:53 am    Post subject: Reply with quote

the problem I've had in the past with this, is when I try to point grub at windows, I never fail to get an error message about NTLoader not existing.
Back to top
View user's profile Send private message
BillyD
Guru
Guru


Joined: 05 May 2002
Posts: 323
Location: Australia

PostPosted: Sun Feb 23, 2003 2:00 am    Post subject: Reply with quote

What does your grub.conf look like?
_________________
We used to have hominid cousins that were vegetarian. The palæontological record suggests that our ancestors killed them and ate them.
Back to top
View user's profile Send private message
gilesjuk
Guru
Guru


Joined: 11 Feb 2003
Posts: 412
Location: Staffordshire, UK

PostPosted: Sun Feb 23, 2003 2:16 am    Post subject: Re: Dual boot windows 2k/gentoo Reply with quote

Most painless way is not to move the drives around, Windows 2000 can get upset if you move the drive from master to slave. Reinstalling Windows is boring :)

add:

title=Windows
root (hd0,1)
chainloader +1

to grub.conf and see if that boots it. if not then you can always do

dd if=/dev/hdb of=/root/boot.lnx bs=512 count=1

then add this to your windows boot.ini as follows:

c:\boot.lnx="Gentoo"

copy the boot.lnx file across to the Windows 2000 partition of course.

Ideally Grub should work :)
Back to top
View user's profile Send private message
therobot
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 256
Location: Canada

PostPosted: Sun Feb 23, 2003 2:19 am    Post subject: Reply with quote

It currently looks something like this, which isn't working at all.

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

title=gentoo
root (hd1,0)
kernel (hd1,0)/boot/bzImage root=/dev/hdb3

title=Win2k
root (hd0,0)
chainloader +1
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sun Feb 23, 2003 2:57 am    Post subject: win2k blues Reply with quote

I just went thru this myself a week or 2 ago.

I have a similar setup as you

Threre are several methods that work for some not for others.

This is what I ended up with and works good for me. I have winXP on hda1, hda2; Gentoo on hdb & hdc. It seems the best way is if your motherboard bios will let you, change the boot drive to hdb, leave win2k's bootloader on hda intact as if it were the boot drive. Install grub to hdb use a grub.conf file like mine below.

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

# bios is set to boot from hd1 after windows is installed (on hd0)
# grub (booted from hd1) thinks it is hd0 so remap the drives back to normal

title=Windows XP Professional
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0) # set so grub wont squak
makeactive (hd1,0)   # make windows think it's drive is the active boot drive
chainloader +1  # boot Windows bootloader


title=Gentoo Linux 2.4.20.b
root (hd0,0)  # grub thinks hd1 is hd0, but gentoo knows it as hd1
# I name my kernels with version info instead of just bzImage, easier to know which is which
kernel /kernel-2.4.20.b root=/dev/hdb3 pci=biosirq

title=Gentoo Linux 2.4.19_r10.d
root (hd0,0)
kernel /kernel-2.4.19_r10.d root=/dev/hdb3 pci=biosirq



Just modify to suit your install. If your bios wont let you boot from hdb then swap the drives as directed in the FAQ forum.

Using win2k's boot menu is only good if you installed linux on the same drive as windows.


Brian
Back to top
View user's profile Send private message
therobot
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 256
Location: Canada

PostPosted: Sun Feb 23, 2003 3:26 am    Post subject: Reply with quote

thanks, I'll give it a try
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