Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dual-Boot with separate harddrives, is this correct?
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
adversity
n00b
n00b


Joined: 15 Aug 2011
Posts: 45
Location: Louisville, KY

PostPosted: Sat Sep 10, 2011 11:25 am    Post subject: Dual-Boot with separate harddrives, is this correct? Reply with quote

I want to make sure I'm doing this right, or if it's the best way to do it. I have my computer set up as follows:

1x 250GB HDD for Windows 7 (100GB C:\, 130GB "Home" for My Docs and Backups)

2x 320GB HDDs for Gentoo (/boot, / , swap, LVM2 for /home /opt /var etc. & RAID)

Now, when I installed Win7 it was the only drive in the computer as Windows kept giving me problems with it not being the first boot device or not being the first partition on a drive. So after Windows was installed I put the other two drives in but left the Windows drive as the first boot device. Got everything set up the way I wanted it and now I'm getting ready to setup Gentoo the way I want.

What I want to know is, do I HAVE to leave the Windows drive as the first boot device, then install GRUB to MBR of that disk? Or can I now move the Windows drive to the bottom of the boot list, install GRUB to the 2 Gentoo drives, and be on my way? I was planning on using GRUB2 since it handles auto-detection fairly well. But from what I've seen if I were to use legacy GRUB, it would require adding 1 or 2 lines that say:

mapdrive (hd0) (hd1)

or something along those lines? I wasn't sure if it was different since I'm using 3x HDDs, although the 2 Gentoo drives will be in a RAID array (RAID1 for boot and RAID0 for everything else).

Any help would be greatly appreciated.
Back to top
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 700

PostPosted: Sat Sep 10, 2011 12:45 pm    Post subject: Reply with quote

You can put Windows as the second drive and make it think it's primary by using these grub commands:
Code:
map (hd0) (hd1)
map (hd1) (hd0)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sat Sep 10, 2011 1:26 pm    Post subject: Reply with quote

adversity,

I would leave Windows alone where it it and set up your BIOS to load grub from one of your Gentoo drives, then have grub chainload Windows.
The means you leave the Windows bootloader and MBR intact, which is a verygoodthing.

As Aquous points out, you may need to fool windows into believing its on the first drive, even if it no longer appears to be.
Those two map commands actually swap hd0 and hd1 in the BIOS detection order before grub exits.
They do not affect any following grub commands.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mp342
Apprentice
Apprentice


Joined: 03 Aug 2010
Posts: 165
Location: France

PostPosted: Sat Sep 10, 2011 2:51 pm    Post subject: Re: Dual-Boot with separate harddrives, is this correct? Reply with quote

adversity wrote:
RAID1 for boot and RAID0 for everything else

If you still plan to use grub legacy, don't forget to set the raid version to 0.90 for /boot
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