[nmglug] Restoring MBR

William D. Nystrom wdn at lanl.gov
Tue Sep 27 10:56:39 PDT 2005


On Tue, September 27, 2005 11:52 am, Ravi Kumar said:
> Hi William,
>    This is what you do to restore your MBR  when it  has been
> overwritten . I am assuming that you already  have fedora installed
> on your machine to dual boot with windows OS.
>
> 1) Take the fedora CD No1 and boot using this CD. You might have to
> set your computer to boot from CDROM. Change the relevant settings in
> the Bios setup.
> 2) Once you come to the installation 'boot : '  prompt, type 'linux
> rescue'
> 3) Your computer will boot from the CD and Fedora will automatically
> detect whether linux is installed on your machine and mount the root
> directory of your linux installation from your harddisk into the
> /mnt/sysimage (I think that is the location - I forget - anyway the
> installer will tell you where it is mounting  your root partition). I
> am assuming it is /mnt/sysimage.
> 4) Now chroot to this location.
>       # chroot /mnt/sysimage

Thanks.  This appears to be the step which I did not know about.  I tried
executing the command below but without doing the chroot command.  And it
did not work.

-- 
Dave Nystrom
LANL X-2
Phone: 505-667-7913
Fax:   505-665-2227
Email: wdn at lanl.gov
Smail: Mail Stop T085
       Group X-2
       Los Alamos National Laboratory
       Los Alamos, NM 87545

> 5) Lastly restore your grub boot loader to the MBR.
>
>       # grub-install /dev/hda
>
> 6) type 'exit' in the command prompt which will reboot your machine.
> Once your machine is rebooted, you remove the CD from the CD Drive.
> That is it. You have restored your boot loader.
>
> Regards
> Ravi
> http://linuxhelp.blogspot.com
> --------------------------------------------
>
> On 9/27/05, William D. Nystrom <wdn at lanl.gov> wrote:
>> I recently went through the following scenario.
>>
>> 1.  Formatted partitions on a new hard drive and installed Fedora Core
>> 3.
>>
>> 2.  Installed Windows XP on one of the partitions which clobbered my
>> MBR.
>>
>> 3.  Reinstalled Fedora Core 3 because I could not figure out another way
>>     to restore my MBR.  I tried the Rescue disk but perhaps I did not
>> know
>>     what I was doing.
>>
>> Is there an easy way to restore the MBR if it has been clobbered by a
>> Windows install?  I'm using grub as my boot loader.
>





More information about the nmglug mailing list