From owner-freebsd-questions Wed Aug 7 13:32:00 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA06134 for questions-outgoing; Wed, 7 Aug 1996 13:32:00 -0700 (PDT) Received: from homer27.u.washington.edu (durang@homer27.u.washington.edu [140.142.77.7]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id NAA06122 for ; Wed, 7 Aug 1996 13:31:58 -0700 (PDT) Received: from localhost by homer27.u.washington.edu (5.65+UW96.06/UW-NDC Revision: 2.33 ) id AA138742; Wed, 7 Aug 96 13:31:50 -0700 Date: Wed, 7 Aug 1996 13:31:50 -0700 (PDT) From: Ken Marsh To: "Jeffrey M. Metcalf" Cc: questions@freebsd.org, metcalf@imagine.com, joseph_m._o'connor@ccgate1.bms.com Subject: Re: Repair boot sector of IDE hard drive In-Reply-To: <9607078394.AA839454178@ccgate0.bms.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Well, I'm not sure, but for the benefit of speedy response, I'll guess: use the undocumented fdisk /MBR on the drive. Ken On Wed, 7 Aug 1996, Jeffrey M. Metcalf wrote: > Hello, > > In preparing an installation of FreeBSD 2.1, a collegue of mine and I > used DOS fdisk to partition an IDE hard drive and through one process > or another, managed to corrupt the boot sector. We do not have a > backup of the boot sector and would like to know if there is a way > to repair it. We know the geometry of the hard drive. It is a > 1272MB hard drive with a geometry of 2466 cyls, 16 heads, and > 63 sectors. Currently, DOS fdisk reports that the maximum size > of the hard drive available for a primary DOS partition is > 504MB, when this is clearly not the case. We want to correct the > boot sector so that DOS fdisk will recognize the 1272MB as the > maximum available size for a primary DOS partition. > > Thanks, > > J. Metcalf > >