Note: I was interrupted while editing this, so there have been a whole bunch of posts since I started....
darksarin:
I am assuming you would want GRUB as your primary bootloader. If you have something in the BIOS to specifiy which drive to boot from, I recommend not using it as it will cause some goofiness later, though people certainly have done it successfully. My recommended approach for installing GRUB in the configuration you described would be
First, backup the MBR for the Windows drive:
Code: Select all
dd if=/dev/hda of=mbr bs=512 count=1
This will give you a file called "mbr" which you should copy to a floppy or somewhere safe (cdrom?).
Now you can install grub with the commands:
Code: Select all
# grub
grub> root (hd1,0)
grub> install (hd0)
Your Grub.conf would look something like:
Code: Select all
timeout 5
default 0
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
title Gentoo
root (hd1,0)
kernel (hd1,0)/boot/kernel-2.4.22-gentoo-r5 root=/dev/hdb2
title Stinking Lousy Unreliable Crash-o-matic Windows
chainloader (hd0,0)+1
You can use /dev/hda4 if you want. You can use any of the primary partitions as an extended partition, though I think you can only have one). If you use all the primary partitions as real data partitions, it simply means you will not be able to have more than 4. If at some point in the future you decide to do something else with your partitions, you can repartition /dev/hda4 as extended and add /dev/hda5 with the same partition boundaries as /dev/hda4 and you won't affect the data at all. Of course there would be no point to this, because you will have taken up all your space with the existing partitions. So you'll have to resize those partitions, which is waaay out of scope for this discussion. Anyway, you can use partitions 1-4 without any problems. And it's simpler to set up, so you might as well.