View previous topic :: View next topic |
Author |
Message |
rlyacht Apprentice
Joined: 17 Apr 2002 Posts: 170
|
Posted: Sun Oct 20, 2002 2:08 am Post subject: dual-boot / grub / confused |
|
|
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
. The documentation seems to say I should install into the boot sector instead using .
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Oct 20, 2002 2:19 am Post subject: |
|
|
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 |
|
|
rlyacht Apprentice
Joined: 17 Apr 2002 Posts: 170
|
Posted: Sun Oct 20, 2002 2:30 am Post subject: |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Oct 20, 2002 3:03 am Post subject: |
|
|
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 |
|
|
plate Bodhisattva
Joined: 25 Jul 2002 Posts: 1663 Location: Berlin
|
Posted: Sun Oct 20, 2002 3:05 am Post subject: |
|
|
For people who tend to panic about this sort of thing (not you, obviously ) 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 |
|
|
|
|
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
|
|