Ian,
I thank you for you patience. I have an aversion to making mistakes and
having to redo anything when the answers are there for the asking. Not
having worked with grub before just makes this more interesting. I will
read some more tonight at home since my day has come to an end.
I will sleep on what you have said and try to put it all in a procedure
that I can follow and understand.
Thank you and everyone who has helped.
Michael C. Rock
Systems Analyst
Registered Linux User # 287973
"The time has come the walrus said to speak of many things,,,"
"Christians give up what they cannot keep to gain what they cannot lose"
-----Original Message-----
From: slug@lists.nks.net [mailto:slug@lists.nks.net] On Behalf Of Ian C.
Blenke
Sent: Thursday, November 14, 2002 3:32 PM
To: slug@nks.net; Mikes work account
Subject: Re: [SLUG] W2K and RH 8.0 and NTFS
On Thursday 14 November 2002 14:54, Mikes work account wrote:
> I have Grub in my boot partition now, If is do a Grub-install /dev/hda
> and it writes to the MBR will that conflict with the one in the /boot
> partition??
The /boot partition holds your 1st stage and 2nd stage bootstraps. The
MBR
merely loads the 1st stage bootstrap and runs it, which in turn loads
the 2nd
stage bootstrap, which in turn presents you with a menu and lets you
select
your kernel to load (or other partition to boot to).
"grub-install /dev/hda" WILL OVERWRITE YOUR MBR.
When you install LILO, it makes a copy of your origional MBR in a file
in
/boot with the name "boot" plus the major and minor numbers. This
"boot.0300"
file is merely a backup of the origional MBR.
When you install GRUB, it does NOT make a copy of your origional MBR in
a file
in /boot.
To make a backup like LILO, you must do:
# dd if=/dev/hda of=/boot/boot.0300 bs=512 count=1
If you want to restore the origional MBR and remove GRUB, merely do it
in
reverse:
# dd if=/boot/boot.0300 of=/dev/hda bs=512 count=1
You don't need to call it "boot.0300", that's just a LILO naming
convention
that someone devised.
Alternatively, what I meant by using bootsect.dos in boot.ini with ntldr
was
this:
# dd if=/dev/hda of=/boot/boot.before-grub bs=512 count=1
# grub-install /dev/hda
# dd if=/dev/hda of=/boot/boot.after-grub bs=512 count=1
# dd if=/boot/boot.before-grub of=/dev/hda bs=512 count=1
# cp /boot/boot.after-grub /mnt/windows/bootsect.lnx
# echo 'c:\bootsect.lnx="Boot to Linux"' >>
/mnt/windows/boot.ini
Then you're using your ntldr to boot to grub.
- Ian C. Blenke <icblenke@nks.net> <ian@blenke.com>
(This message bound by the following:
http://www.nks.net/email_disclaimer.html)
> Michael C. Rock
> Systems Analyst
> Registered Linux User # 287973
>
> "The time has come the walrus said to speak of many things,,,"
> "Christians give up what they cannot keep to gain what they cannot
lose"
>
>
> -----Original Message-----
> From: slug@lists.nks.net [mailto:slug@lists.nks.net] On Behalf Of Matt
> Miller
> Sent: Thursday, November 14, 2002 1:47 PM
> To: SLUG List
> Subject: RE: [SLUG] W2K and RH 8.0 and NTFS
>
> On Thu, 2002-11-14 at 12:45, Mikes work account wrote:
> > I have both W2K and RH 8.0 running. W2K boots from the MBR and
Linux
> > boots from my boot disk. How in the world do I get it all booting
>
> from
>
> > Grub and eliminate the W2K booting from the MBR??
> >
> > How do I remove the MBR record and will that let Linux just boot
from
> > Grub?
>
> IIRC, "grub-install /dev/hda" should install grub into your MBR. I
would
> verify with the man pages first. Make sure your GRUB config is setup
> correctly to recognize the respective partitions/drives your OS' are
> installed on.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:55:07 EDT