From owner-freebsd-questions@FreeBSD.ORG Thu Jan 6 09:06:55 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 0E9D91065673 for ; Thu, 6 Jan 2011 09:06:55 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 638738FC15 for ; Thu, 6 Jan 2011 09:06:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id p0696gnc011820; Thu, 6 Jan 2011 20:06:43 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 6 Jan 2011 20:06:42 +1100 (EST) From: Ian Smith To: Chris Brennan In-Reply-To: Message-ID: <20110106160720.B49334@sola.nimnet.asn.au> 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> <20110105152725.U49334@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Bruce Cran , 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: Thu, 06 Jan 2011 09:06:55 -0000 On Wed, 5 Jan 2011, Chris Brennan wrote: > On Wed, Jan 5, 2011 at 12:44 AM, Ian Smith wrote: > > > > Saw Chris' later message that -F isn't there for him, but here's what > > should be, on the data, the sure-fire way to clobber that last sector: > > > > dd if=/dev/zero of=/dev/ad4 oseek=1465149167 > > > > which command SHOULD report just 512 bytes written (we're sure it can't > > write past the end of the disk with no count specified), after which: > > > > dd if=/dev/ad4 iseek=1465149167 | hd > > > > SHOULD show zeroes from 00000000 to 000001ff (ie next block 00000200) > > If not, there really must be some hardware issue with writing? > > > > Hopefully getting there! > Fixit# sysctrl kern.geom.debugflags=16 > kern.geom.debugflags: 0 -> 16 > Fixit# dd if=/dev/zero of=/dev/ad4 oseek=1465149167 > dd: /dev/ad4: end of device > 2+0 records in > 1+0 records out > 512 bytes transferred in 0.0100001 secs (51195 bytes/sec) So that's right. > Fixit# dd if=/dev/ad4 iseek=1465149167 | hd > 1+0 records in > 1+0 records out > 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > |................| > 512 bytes transferred om 0.009863 secs (51912 bytes/sec) > * > 00000200 And that's right - the GPT secondary header is now gone. > restarting and back to sysinstall from BETA1 is nice dice ... same original > error ... can I just zero the whole drive? Sure you can - but I'd be (happy to be) surprised at this point if it's going to do much good. If nothing else it's a full surface write test, and you could check afterwards that it's all been zeroed, hd showing just a few lines (as above) over the whole disk (dd if=/dev/ad4 | hd) We seem to have ruled out the remnants of a GPT problem, having Bruce and Warren to thank for pointing it out; it's bound to catch others. Your dd of the first 71 sectors looked right, MBR looks ok, sectors 1-62 are zeroes, boot1 and boot2 from sector 63-70 seem normal, after you used 'W' to write anyway; can't say for sure that the bsdlabel is ok, but see no reason to suppose otherwise. What says 'bsdlabel ad4s1' while you've still got one? Just be sure NOT to use the 'A' option for auto-partitioning again; I'm sure I saw some problem with that on 8.1, not sure if it's fixed on 8.2 (Bruce?) so I suggest allocating the BSD partitioning you really want. Failing that, I can't see other than a hardware issue, unless somehow sysinstall is broken and you may do better manually running fdisk and bsdlabel and newfs per Handbook and manuals? If that worked you could still use sysinstall, skip fdisk and labelling steps and install the distributions, ports tree, doc packages and other sysinstall goodies. If it still persisted after that I'd subscribe and report the issue to freebsd-stable in as much detail as needed for some more fresh eyes. cheers, Ian