From owner-freebsd-questions@FreeBSD.ORG Wed Dec 10 05:06:26 2003 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 7D75716A4CE for ; Wed, 10 Dec 2003 05:06:26 -0800 (PST) Received: from mail.rz.uni-ulm.de (gemini.rz.uni-ulm.de [134.60.246.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id B048E43D21 for ; Wed, 10 Dec 2003 05:06:23 -0800 (PST) (envelope-from siegbert.baude@gmx.de) Received: from gmx.de (rabbit.physik.uni-ulm.de [134.60.10.149]) (authenticated bits=0) by mail.rz.uni-ulm.de (8.12.10/8.12.10) with ESMTP id hBAD6GVH023809 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 10 Dec 2003 14:06:21 +0100 (MET) Message-ID: <3FD71A48.2010105@gmx.de> Date: Wed, 10 Dec 2003 14:06:16 +0100 From: Siegbert Baude User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031015 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Frederick Bowes References: <370596D46C9BD711B61A00065BF365888A17BA@il06exm12> <.128.250.18.41.1071008632.squirrel@www.k1x.org> In-Reply-To: <.128.250.18.41.1071008632.squirrel@www.k1x.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-DCC-RollaNet-Metrics: gemini 1004; Body=2 Fuz1=2 Fuz2=2 cc: freebsd-questions@freebsd.org Subject: Re: Hard drive geometry headache (slightly off topic) 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: Wed, 10 Dec 2003 13:06:26 -0000 Frederick Bowes wrote: > I've solved the problem and repreat it here for future generations reference > (: It appears that the MBR was infact corrupt, causing fdisk to get > confused... > the following command made the hd appear blank and let it all work again: > > dd if=/dev/zero of=/dev/ad0 count=2000 > > (Yes i lost my data but the drive now works!) Thanks for ur help (: It would be more precise to use dd if=/dev/zero of=/dev/ad0 bs=512 count=1 as this will delete exactly the first block of the first IDE-disk, aka MBR. If your MBR is corrupt, but you still care for the data, you have better chances to recover this way. Ciao Siegbert