Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dual-boot / grub / confused
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
rlyacht
Apprentice
Apprentice


Joined: 17 Apr 2002
Posts: 170

PostPosted: Sun Oct 20, 2002 2:08 am    Post subject: dual-boot / grub / confused Reply with quote

I have a win2k system that I'd like to make dual-boot with gentoo. I basically know what to do, but there's something about grub installation in this case that I don't get.

I know that I have to leave win2k's boot loader intact on the MBR of the first partition, otherwise I won't be able to chain to it and load win2k. So clearly I cant install grub in the MBR of that partition using the usual
Quote:
setup (hd0)
. The documentation seems to say I should install into the boot sector instead using
Code:
setup (hd0.0)
.

What I don't get is how will my machine know not to boot win2k when it starts, and to start grub instead?

As you can see, I am a tad confused ... can anyone enlighten me?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Oct 20, 2002 2:19 am    Post subject: Reply with quote

I've not done it for many months, but I'm pretty sure I installed Grub on the MBR with setup(hd0). Grub boots and lets me choose from Linux or Win2k.

First partition is Win2k, second is /boot, third swap, fourth /
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
rlyacht
Apprentice
Apprentice


Joined: 17 Apr 2002
Posts: 170

PostPosted: Sun Oct 20, 2002 2:30 am    Post subject: Reply with quote

Thanks, that's good to know. Maybe I'll just give it a shot. I've been googling a bit, and I found stuff like this
Quote:

Short for Master Boot Record, a small program that is executed when a computer boots up. Typically, the MBR resides on the first sector of the hard disk. The program begins the boot process by looking up the partition table to determine which partition to use for booting. It then transfers program control to the boot sector of that partition, which continues the boot process. In DOS and Windows systems, you can create the MBR with the FDISK /MBR command.

(here BTW)

This would imply that win2k puts its MBR program on the first sector of (hd0,0), and that this program eventually runs the boot program in the "boot sector" of (hd0,0), which in turn boots win2k. If I install grub in the MBR, it won't wipe out the win2k boot program, but instead of just running it autmatically, it will do its grub thing according to menu.lst.

Anyway, maybe that's it :-)
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Oct 20, 2002 3:03 am    Post subject: Reply with quote

Doing it this way, I think, eliminates Win2K's boot loader from the picture. Grub just points to the right location for Win2K to boot. Here's how I setup my menu.lst
Code:
default 0
timeout 3
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

# Windows 2000 Professional
title=Windows 2000 Professional
root (hd0,0)
chainloader +1

# Multi boot options follow
# Gentoo Linux
title=Gentoo Linux
root (hd0,1)
kernel /boot/bzImage root=/dev/hda4

# Gentoo Linux (Emergency)
title=Gentoo Linux (Emergency)
root (hd0,1)
kernel /boot/bzImage.emergency root=/dev/hda4

_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Sun Oct 20, 2002 3:05 am    Post subject: Reply with quote

For people who tend to panic about this sort of thing (not you, obviously 8) ) and for others who need to reinstall Windows every two weeks but can't be bothered to set GRUB up all over again, I've humbly submitted a small guide for using the NT bootloader to fork to W2K/XP or Linux.
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