Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jan 2004 09:52:30 -0800
From:      Chris Pressey <cpressey@catseye.mine.nu>
To:        Ruben de Groot <mail25@bzerk.org>, b1henning@hotmail.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: MBR
Message-ID:  <20040127095230.3d2c0d3d.cpressey@catseye.mine.nu>
In-Reply-To: <20040127161035.GA64706@ei.bzerk.org>
References:  <Law12-F69ayRv7O55mL00023096@hotmail.com> <20040127154902.GB63647@snickers.dahoam> <20040127161035.GA64706@ei.bzerk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 27 Jan 2004 17:10:35 +0100
Ruben de Groot <mail25@bzerk.org> wrote:

> On Tue, Jan 27, 2004 at 04:49:02PM +0100, Namik Dala typed:
> > On Tue, Jan 27, 2004 at 09:10:51AM -0600, Brian H wrote:
> > > Currently I have the BSD boot loader running in my MBR, but since I only 
> > > have BSD on my system I would like to replace it with the standard MBR. Is 
> > > there a way with unix to safely reset the MBR?
> > 
> > This
> > 
> >   dev=/dev/ad0 # change this
> >   dd if=$dev of=/boot/mbr.backup bs=512 count=1
> >   dd if=/boot/mbr of=$dev bs=512 count=1
>  
> Don't do this. It'll overwrite your partition table. Use:
> 
> fdisk -B [-b /boot/mbr] /dev/ad0
> 
> instead.
> 
> Ruben

Can't you accomplish the same thing (more modestly) with

  boot0cfg -b /boot/mbr /dev/ad0

?

-Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040127095230.3d2c0d3d.cpressey>