Undo MBR

Joshua Oreman oremanj at get-linux.org
Thu Sep 4 17:16:57 PDT 2003


On Thu, Sep 04, 2003 at 05:58:38PM -0400 or thereabouts, Paul Murphy wrote:
> On Thu, 4 Sep 2003 17:38:04 -0400
> > Matthew Seaman <m.seaman at infracaninophile.co.uk> wrote:
> > > Errr... That's a little excessive.  The quick way to remove the
> > > FreeBSd boot manager and restore a standard MBR is:
> > > 
> > >     # boot0cfg -B -b /boot/mbr ad0
> > > 
> > > (The OP might want to do that on his data disk ad2 as well).  No
> > > changes to the filesystems on those disks should be necessary.
> > > 
> > 
> >  THAT'S what I was looking for! I knew it should have something to do
> > with boot0cfg, just didn't read the man page closely enough I guess.
> > 
> 
>  Hmm, problems...
> 
> # boot0cfg -B -b /boot/mbr ad0
> # boot0cfg: /boot/mbr: unknown or incompatible boot code

You need
# fdisk -B -b /boot/mbr ad0

-- Josh


More information about the freebsd-questions mailing list