From owner-freebsd-questions@FreeBSD.ORG Sat Feb 10 16:05:57 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A22F016A40F for ; Sat, 10 Feb 2007 16:05:57 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 8300613C4BE for ; Sat, 10 Feb 2007 16:05:57 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from insp.local (jn@c-76-23-109-98.hsd1.sc.comcast.net [76.23.109.98]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id l1AG5rAE035329; Sat, 10 Feb 2007 11:05:54 -0500 (EST) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Sat, 10 Feb 2007 11:05:35 -0500 User-Agent: KMail/1.9.5 References: <5D4377994F77F6A6C215D198@ganymede.hub.org> <20070210070020.GP37689@dan.emsphone.com> <0121884CDA5AC278CD6A7D52@ganymede.hub.org> In-Reply-To: <0121884CDA5AC278CD6A7D52@ganymede.hub.org> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702101105.36039.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Dan Nelson , "Marc G. Fournier" Subject: Re: Bad sector on drive ... 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: Sat, 10 Feb 2007 16:05:57 -0000 On Saturday 10 February 2007 09:47, Marc G. Fournier wrote: > --On Saturday, February 10, 2007 01:00:21 -0600 Dan Nelson > > wrote: > > In the last episode (Feb 10), Marc G. Fournier said: > >> Short of a reformat, any way of marking the following as bad? :( > >> > >> Feb 10 02:27:20 ganymede kernel: ad4: FAILURE - READ_DMA > >> status=51 error=40 LBA=176887263 Feb > >> 10 02:27:25 ganymede kernel: ad4: TIMEOUT - READ_DMA retrying (1 retry > >> left) LBA=176887324 Feb 10 02:27:30 ganymede kernel: ad4: TIMEOUT - > >> READ_DMA retrying (0 retries left) LBA=176887324 Feb 10 02:27:35 > >> ganymede kernel: ad4: FAILURE - READ_DMA timed out LBA=176887324 > > > > Try writing to the block causing the error, using dd and the seek= > > option; if the write succeeds, you're done (and the drive will have > > either reused the block or reassigned it to a spare). 176887324 If it > > doesn't succeed, copy what you can off the drive and toss it, since all > > its spares are used up. > > > > I think LBA numbers map directly to seek= values assuming you keep > > bs=512 and access /dev/ad4 . I'd try reading the bad block with dd to > > verify it's the right one before doing a write, though. > > 'k, how do you use dd to write to a specific sector? > > dd of=/dev/ad4 seek=176887324 bs=512 if=/dev/null dd of=/dev/ad4 seek=176887324 bs=512 count=1 if=/dev/zero JN