View previous topic :: View next topic |
Author |
Message |
ckwall Apprentice
Joined: 31 May 2002 Posts: 163
|
Posted: Wed Jul 03, 2002 4:42 am Post subject: installing windows on a second hard drive. |
|
|
Ihave Gentoo on my 40 gig HD. I have added a 4 gig HD to meet my needs for one program that Ineed for work. How do Iset Grub up to boot also to windows?
Here is my current menu.lst including what I have added for Win. Please advise.
default 0
timeout 5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,0)
kernel /boot/bzImage root=/dev/hda3
hdd=scsi
title=Windows
root (hd1,0)
chainloader +1 |
|
Back to top |
|
|
fghellar Bodhisattva
Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
Posted: Wed Jul 03, 2002 5:10 am Post subject: Re: installing windows on a second hard drive. |
|
|
First, I'd seriously recommend that you swap those disks, leaving windows as hd0.
Then, put this in your menu.lst:
Code: | default 0
timeout 5
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux
root (hd1,0)
kernel /boot/bzImage root=/dev/hd(b,c)3 hdd=scsi <-- pick up the right one here!
title=Windows
root (hd0,0) <-- use rootnoverify (hd0,0) if it's ntfs
chainloader +1 |
_________________ | www.gentoo.org | www.tldp.org | www.google.com | |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Jul 03, 2002 5:18 am Post subject: Re: installing windows on a second hard drive. |
|
|
fghellar wrote: | First, I'd seriously recommend that you swap those disks, leaving windows as hd0. |
I second that motion. Windows doesn't like to (and often refuses to) boot off of non-first disks, so it's not only strongly recommended it may even be required.
Beyond that, well, you should be all set. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
ckwall Apprentice
Joined: 31 May 2002 Posts: 163
|
Posted: Wed Jul 03, 2002 5:22 am Post subject: |
|
|
How would I go about changing the drives arround. Are you talking about making the windows drive master, and linux slave? I am a newbie, so talk to me like i'm three. |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Jul 03, 2002 5:25 am Post subject: |
|
|
Yes, switching jumpers ought to work for you, though the Windows install will wipe out Grub. You also have the option of using the map keyword, where you could leave the disks as-is and let Grub swap them in software; all told, Windows can't tell the difference.
So, you could either switch the drives around or add the following to the Windows block:
Code: | map (hd0) (hd1)
map (hd1) (hd0) |
_________________ I don't believe in witty sigs. |
|
Back to top |
|
|
ckwall Apprentice
Joined: 31 May 2002 Posts: 163
|
Posted: Wed Jul 03, 2002 5:28 am Post subject: |
|
|
So if i go the rout of mapping the drives, rather than swapping jumpers, will that leave grub alone?
Where do i put the mapping? |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Jul 03, 2002 5:34 am Post subject: |
|
|
Adding those two lines under the "chainloader" command ought to do the trick, no jumper or cable swapping. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
ckwall Apprentice
Joined: 31 May 2002 Posts: 163
|
Posted: Wed Jul 03, 2002 5:46 am Post subject: |
|
|
Thank you. That worked out very nicely. I appreciate your help and timely replies. |
|
Back to top |
|
|
|