From owner-freebsd-questions@FreeBSD.ORG Tue Jan 27 09:50:26 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A731216A4CE for ; Tue, 27 Jan 2004 09:50:26 -0800 (PST) Received: from priv-edtnes04.telusplanet.net (outbound02.telus.net [199.185.220.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1B9043D41 for ; Tue, 27 Jan 2004 09:49:48 -0800 (PST) (envelope-from cpressey@catseye.mine.nu) Received: from catseye.biscuit.boo ([207.81.17.215]) by priv-edtnes04.telusplanet.netSMTP <20040127174814.FIGB8807.priv-edtnes04.telusplanet.net@catseye.biscuit.boo>; Tue, 27 Jan 2004 10:48:14 -0700 Date: Tue, 27 Jan 2004 09:52:30 -0800 From: Chris Pressey To: Ruben de Groot , b1henning@hotmail.com Message-Id: <20040127095230.3d2c0d3d.cpressey@catseye.mine.nu> In-Reply-To: <20040127161035.GA64706@ei.bzerk.org> References: <20040127154902.GB63647@snickers.dahoam> <20040127161035.GA64706@ei.bzerk.org> Organization: Cat's Eye Technologies X-Mailer: Sylpheed version 0.9.8a (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@FreeBSD.ORG Subject: Re: MBR X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 17:50:26 -0000 On Tue, 27 Jan 2004 17:10:35 +0100 Ruben de Groot 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