From owner-freebsd-questions@FreeBSD.ORG Tue Feb 3 00:41:40 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 2A9C716A4CE for ; Tue, 3 Feb 2004 00:41:40 -0800 (PST) Received: from smtp.covadmail.net (mx08.covadmail.net [63.65.120.68]) by mx1.FreeBSD.org (Postfix) with SMTP id A254C43D1F for ; Tue, 3 Feb 2004 00:41:38 -0800 (PST) (envelope-from strick@covad.net) Received: (covad.net 10939 invoked from network); 3 Feb 2004 08:41:33 -0000 Received: from unknown (HELO mist.nodomain) (strick@covad.net@68.164.174.80) by sun-qmail09 with SMTP; 3 Feb 2004 08:41:32 -0000 Received: from mist.nodomain (localhost [127.0.0.1]) by mist.nodomain (8.12.9p2/8.12.9) with ESMTP id i138fZxr000622; Tue, 3 Feb 2004 00:41:36 -0800 (PST) (envelope-from dan@mist.nodomain) Received: (from dan@localhost) by mist.nodomain (8.12.9p2/8.12.9/Submit) id i138fZeR000621; Tue, 3 Feb 2004 00:41:35 -0800 (PST) (envelope-from dan) Date: Tue, 3 Feb 2004 00:41:35 -0800 (PST) From: Dan Strick Message-Id: <200402030841.i138fZeR000621@mist.nodomain> To: freebsd-questions@FreeBSD.ORG cc: dan@mist.nodomain 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, 03 Feb 2004 08:41:40 -0000 On Tue, 27 Jan 2004 16:49:02 +0100 (?), Namik Dala wrote: >> > 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 > > should to the trick. >> I suspect this would erase the MBR partition (aka "slice") table. Use the "fdisk" command "-B" option to install the bootstrap program from /boot/mbr. Be sure to set the desired "active" partition so that the bootstrap program knows which partition to boot. Dan Strick strick@covad.net