Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub Theory Question (Dual Boot Windows 7)
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
divisionbyzero
n00b
n00b


Joined: 27 Apr 2010
Posts: 11

PostPosted: Tue Sep 25, 2012 2:48 am    Post subject: Grub Theory Question (Dual Boot Windows 7) Reply with quote

Hey guys, I have a theorycraft type question.

Say I have this partition layout:

sda1 = windows 7 boot partition (that 100mb partition)
sda2 = windows 7 root partition
sda3 = linux /boot (bootable partition containing grub)
sda4 = linux root
(forget about swap)

Assuming /dev/sda3 is setup as the Bootable partition, when you're setting up grub.conf to dual boot, should you reference /dev/sda1 OR /dev/sda2?
In other words, should grub.conf contain this:

Code:
title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1


OR

Code:
title Windows XP
rootnoverify (hd0,1)
makeactive
chainloader +1


As I understand it, you should reference /dev/sda1 (hd0,0) in grub, because that partition contains the code necessary to boot into the Windows root partition on /dev/sda2.
Is this understanding correct?
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 866

PostPosted: Tue Sep 25, 2012 8:33 am    Post subject: Reply with quote

Quote:
As I understand it, you should reference /dev/sda1 (hd0,0) in grub, because that partition contains the code necessary to boot into the Windows root partition on /dev/sda2.
Is this understanding correct?

i think this is correct.

for testing you could write two different grub menu-entries with (hd0,0) and (hd0,1) and see what happens.
GOOD LUCK!
_________________
DUMM KLICKT GUT.
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