You are not logged in.

#1 2010-04-30 16:31:08

c008
Member
Registered: 2010-04-17
Posts: 20

Need help Grub2 and dualbooting

Hi,
I have my system up and running bur I am facing a problem which I haven't been able to resolve.
When I install grub2 I get an example file, /boot/grub/grub.cfg which I cannot use even if I change it to my prefences.
However, when I use the grub-mkconfig -o /boot/grub/grub.cfg and it creates the config file with a lot of other options then it works but I am not able to boot Windows.
I liked the first config file since it wasn't much in it compared to this one and Windows is not even listed in this one.
Any directions? What to do?
Many thanks!

Offline

#2 2010-04-30 16:43:53

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: Need help Grub2 and dualbooting

Offline

#3 2010-04-30 21:22:17

c008
Member
Registered: 2010-04-17
Posts: 20

Re: Need help Grub2 and dualbooting

Thanks, that was exactly what I was searching for!

Offline

#4 2010-05-01 17:25:57

c008
Member
Registered: 2010-04-17
Posts: 20

Re: Need help Grub2 and dualbooting

OK, I am still having issues.
My Windows installation is on sdb, (hd1) and I have done the following under the /etc/grub.d/40custom file:
menuentry "Windows XP" {
set root=(hd1,1)
chainloader +1
}
Any ideas?

Offline

#5 2010-05-02 00:43:17

skeeter
Member
From: Morristown TN
Registered: 2003-02-01
Posts: 77

Re: Need help Grub2 and dualbooting

Is Windows the only OS on sdb1?  If so, I believe "set root=(hd1,0)" would apply? I've been up quite awhile so I might be missing something.:P


Skeeter

Rule #1:  There are NO RULES!

Offline

#6 2010-05-02 01:40:53

venky80
Member
Registered: 2007-05-13
Posts: 1,002

Re: Need help Grub2 and dualbooting

grub2 seems to be very confusing to me. my '/' (linux root) is in /dev/sda5 but grub2 root device shows it as (hd0,7) which is my /boot


Acer Aspire V5-573P Antergos KDE

Offline

#7 2010-05-02 03:10:39

c008
Member
Registered: 2010-04-17
Posts: 20

Re: Need help Grub2 and dualbooting

Well, I have finally got it working after some googling and here is what I had to put into my 40custom file with Windows on my second harddrive:
menuentry "Windows XP" {
#insmod chain
set root=(hd1)
devicemap -s hd0 hd1
chainloader +1
}

I am not sure if insmod should be included since if I include it or not it doesn't make any difference. Windows boots anyway.
So now I am finally up and running with dual boot but it took some time!

Offline

Board footer

Powered by FluxBB