From owner-freebsd-questions@FreeBSD.ORG Sat Feb 10 07:00:24 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 C212216A412 for ; Sat, 10 Feb 2007 07:00:24 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 80E7713C4B9 for ; Sat, 10 Feb 2007 07:00:24 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan@localhost [127.0.0.1]) by dan.emsphone.com (8.14.0/8.13.8) with ESMTP id l1A70L6X079444 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 10 Feb 2007 01:00:21 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.0/8.14.0/Submit) id l1A70LlE079443; Sat, 10 Feb 2007 01:00:21 -0600 (CST) (envelope-from dan) Date: Sat, 10 Feb 2007 01:00:21 -0600 From: Dan Nelson To: "Marc G. Fournier" Message-ID: <20070210070020.GP37689@dan.emsphone.com> References: <5D4377994F77F6A6C215D198@ganymede.hub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5D4377994F77F6A6C215D198@ganymede.hub.org> X-OS: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-questions@freebsd.org 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 07:00:24 -0000 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). 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. -- Dan Nelson dnelson@allantgroup.com