Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 2003 14:06:16 +0100
From:      Siegbert Baude <siegbert.baude@gmx.de>
To:        Frederick Bowes <fred@k1x.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Hard drive geometry headache (slightly off topic)
Message-ID:  <3FD71A48.2010105@gmx.de>
In-Reply-To: <.128.250.18.41.1071008632.squirrel@www.k1x.org>
References:  <370596D46C9BD711B61A00065BF365888A17BA@il06exm12> <.128.250.18.41.1071008632.squirrel@www.k1x.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?3FD71A48.2010105>