recovering mbr or reinstalling mbr

kd4d at comcast.net kd4d at comcast.net
Fri Nov 19 13:25:11 UTC 2004


There's a command line utility that will do this under Windows 
as well.  I've successfully used it.  http://www.nu2.nu/mkbt

This program also supports writing it to a partition, floppy, or
USB stick.  Also dangerous...

Usage:
   mkbt [switches] <source> <target>

   <source>  The source file/drive which contains the bootsector to install
   <target>  The target file/drive to install the bootsector on

   Switches: -v        Verbose mode
             -c        Copy mode (no install) used for copying the
                       bootsector(s)
             -x        Expert mode (do not check drive A or B only)
                       USE WITH CAUTION!
             -l=<xxx>  Set Volume Label to <xxx>

   Returns errorlevel 0 when OK, 1 when some error occurred.

For the original question, the GAG boot loader is much easier to
configure and use than GRUB or LILO:  http://gag.sourceforge.net/





> 
> I did some dual boot taggling yesterday, and used MBRUTIL.EXE (the dos 
> version) to save/restore MBR's.
> 
> 	http://thestarman.dan123.com/asm/mbr/BootToolsRefs.htm#PQMBR
> 
> It did it's work, but I would be careful. The program asks no 
> confirmations.
> 
> Also, in lack of a Ubuntu Live-CD, the System Rescue CD-ROM is well 
> worth more than a look:
> 
> 	http://www.sysresccd.org/index.en.php
> 
> -ak
> 
> 
> 19.11.2004 kello 12:28, Dennis Kaarsemaker kirjoitti:
> 
>   On Fri, 2004-11-19 at 03:44 -0500, Ben Kuang wrote:
> >> How do i reinstall the grub loader without reinstalling the whole
> >> system?
> >
> > Boot from an Ubuntu livecd and install grub on your master hard drive.
> > Make sure that it has a menu entry to boot your Windows system too :)
> > -- 
> > Dennis K.
> >   And that's the way the cookie crumbles!
> >
> >
> > -- 
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >
> 
> 
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users




More information about the ubuntu-users mailing list