Help!

grb -> MBR question

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussions (archive 2) RSS
Next:  Lexmark P6250  
Author Message
Beowulf
External


Since: Jan 15, 2006
Posts: 258



PostPosted: Mon Nov 06, 2006 8:47 am    Post subject: grb -> MBR question
Archived from groups: alt>os>linux (more info?)

If I understand grub correctly (I may not, just learning it now), grub
bootloader can be installed to an MBR on either hda or hdb, even if
MS-Windows is on hda and Linux is on hdb. Is this correct? And if grub
puts bootloader on hdb, (1)would I need to tell the BIOS to use hdb then
as the first drive to check for booting? (2)if Windows is reinstalled to
hda and of course writes it chainloader/bootloader/whatever to hda, would
that then have no effect on the grub bootloader on hdb, meaning that
Windows would NOT overwrite the grub bootloader on hdb, meaning that the
grub bootloader would still be intact after a Windows reinstall? (this
seems like a good strategy if it would work).
Back to top
imotgm
External


Since: Nov 04, 2006
Posts: 275



PostPosted: Mon Jan 01, 2007 5:36 pm    Post subject: Re: grb -> MBR question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 01 Jan 2007 19:18:29 +0100, J.O. Aho wrote:


> Then you need to modify your /boot/grub/grub.conf, so that you have
> a boot line
>
> --- grub.conf ---
> title=Windows
> root (hd1,0)
> chainloader +1
> map (hd1) (hd0)
> map (hd0) (hd1)
> --- eof ---

Better;

--- menu.lst --- # OP did not say what distro Smile
title=Windows
rootnoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
makeactive
chainloader +1

For the most part, your way works, but some machines need the
"rootnoverify", and "makeactive" assures that the partition is seen as the
active partition that Windows needs. My Award BIOS has a nasty habit of
changing the active partition to various different partitions, at random.
I have no Windows on this machine, so it makes no difference to me, but it
could on the OP's machine. It may help, it can't hurt, it only needs
to be written once, so why not? Smile

--
imotgm
"Lost? Lost? I've never been lost... Been a tad confused for a
month or two, but never lost."
Back to top
J.O. Aho
External


Since: Mar 26, 2004
Posts: 2216



PostPosted: Mon Jan 01, 2007 7:18 pm    Post subject: Re: grb -> MBR question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dean Browning wrote:
> I have Linux on Drive 1 and XP Media Center on drive 2, how do I tell grub
> where to find windows and load it. Right now, when I try to load XP, grub
> executes the default lines, but stops.

You need to see to that your /boot/grub/device.map has both hard drives

--- device.map ---
(fd0) /dev/floppy/0
(hd0) /dev/hda
(hd1) /dev/hdb
--- eof ---

Then you need to modify your /boot/grub/grub.conf, so that you have a boot line

--- grub.conf ---
title=Windows
root (hd1,0)
chainloader +1
map (hd1) (hd0)
map (hd0) (hd1)
--- eof ---

I think this should fix it for you, not sure, as I don't want to infect my
computers. For more information you can check Gentoo wiki on this matter, as
it works the same way in all distros that uses Grub.
http://gentoo-wiki.com/HOWTO_Dual_Boot_from_Windows_Bootloader_(NTLDR)_and_why

--

//Aho
Back to top
Dean Browning
External


Since: Jan 01, 2007
Posts: 3



PostPosted: Mon Jan 01, 2007 11:24 pm    Post subject: Re: grb -> MBR question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It worked! Thank you very much.

Dean

J.O. Aho wrote:
> Dean Browning wrote:
>> I have Linux on Drive 1 and XP Media Center on drive 2, how do I tell
>> grub where to find windows and load it. Right now, when I try to load
>> XP, grub executes the default lines, but stops.
>
> You need to see to that your /boot/grub/device.map has both hard drives
>
> --- device.map ---
> (fd0) /dev/floppy/0
> (hd0) /dev/hda
> (hd1) /dev/hdb
> --- eof ---
>
> Then you need to modify your /boot/grub/grub.conf, so that you have a
> boot line
>
> --- grub.conf ---
> title=Windows
> root (hd1,0)
> chainloader +1
> map (hd1) (hd0)
> map (hd0) (hd1)
> --- eof ---
>
> I think this should fix it for you, not sure, as I don't want to infect
> my computers. For more information you can check Gentoo wiki on this
> matter, as it works the same way in all distros that uses Grub.
> http://gentoo-wiki.com/HOWTO_Dual_Boot_from_Windows_Bootloader_(NTLDR)_and_why
>
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussions (archive 2) All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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