From owner-freebsd-questions@FreeBSD.ORG Wed Jan 5 02:16:01 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6525B106564A for ; Wed, 5 Jan 2011 02:16:01 +0000 (UTC) (envelope-from xaero@xaerolimit.net) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id E51258FC08 for ; Wed, 5 Jan 2011 02:16:00 +0000 (UTC) Received: by eyf6 with SMTP id 6so6709728eyf.13 for ; Tue, 04 Jan 2011 18:15:59 -0800 (PST) Received: by 10.213.25.140 with SMTP id z12mr347923ebb.12.1294193759473; Tue, 04 Jan 2011 18:15:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.28.148 with HTTP; Tue, 4 Jan 2011 18:15:39 -0800 (PST) In-Reply-To: References: <20101229120038.3DFB0106591A@hub.freebsd.org> <20101230133126.O36121@sola.nimnet.asn.au> <20101231105353.S36121@sola.nimnet.asn.au> <20110102102255.00004f57@unknown> <20110102230702.N49334@sola.nimnet.asn.au> <20110103022619.O49334@sola.nimnet.asn.au> <20110104143245.P49334@sola.nimnet.asn.au> From: Chris Brennan Date: Tue, 4 Jan 2011 21:15:39 -0500 Message-ID: To: Warren Block Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Bruce Cran , Ian Smith , FreeBSD Questions Subject: Re: a new hard-drive in a 2y/o laptop X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2011 02:16:01 -0000 On Tue, Jan 4, 2011 at 8:44 PM, Warren Block wrote: > On Tue, 4 Jan 2011, Chris Brennan wrote: > > On Tue, Jan 4, 2011 at 3:56 AM, Ian Smith wrote: >> >> On Mon, 3 Jan 2011 16:31:17 -0500, Chris Brennan wrote: >>> [.. trimming ccs, selectively quoting and de-gmailing a bit ..] >>> >>> >> Trimmings! Oh nevermind. I don't know what possessed me to go and look >> at the debug window. But I do and I see the following. >> >> GEOM: ad4: the primary GPT table is corrupt or invalid. >> GEOM: ad4: using the secondary instead -- recovery strongly advised. >> >> This is even after zero the beginning and the end of the drive .... >> Something is hinky! >> > > Today I also found that zeroing the beginning and end of the drive didn't > seem to be enough. I had the start of a huffy email about how hard it was > to calculate the end of a drive in blocks, and how dd didn't have a negative > oseek to seek backwards from the end. But then I checked gpart(8)... and it > turns out that > > # gpart destroy -F da0 > > works. Be very careful that you've got the right drive there, of course. > Fixit# gpart destroy -F /dev/node# says gpart: illegal option -- F it would appear that the gpart on the 8.1-RELEASE and 8.2BETA1 images do not contain this switch and I get pattern not found when I search 'man 8 gpart' ... there is a '-f flags' but no mention of '-F' C-