From owner-freebsd-questions@FreeBSD.ORG Wed Jan 5 01:44:13 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 5E9941065698 for ; Wed, 5 Jan 2011 01:44:13 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id B97898FC13 for ; Wed, 5 Jan 2011 01:44:12 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id p051i9QY014797; Tue, 4 Jan 2011 18:44:09 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id p051i9l5014794; Tue, 4 Jan 2011 18:44:09 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 4 Jan 2011 18:44:09 -0700 (MST) From: Warren Block To: Chris Brennan In-Reply-To: Message-ID: 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> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (wonkity.com [127.0.0.1]); Tue, 04 Jan 2011 18:44:10 -0700 (MST) 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 01:44:13 -0000 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.