From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 18 18:01:17 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A96A916A420 for ; Sat, 18 Feb 2006 18:01:17 +0000 (GMT) (envelope-from markus@trippelsdorf.de) Received: from blue-ld-032.synserver.de (blue-ld-032.synserver.de [217.119.50.235]) by mx1.FreeBSD.org (Postfix) with SMTP id D4D7C43D45 for ; Sat, 18 Feb 2006 18:01:16 +0000 (GMT) (envelope-from markus@trippelsdorf.de) Received: (qmail 21166 invoked by uid 0); 18 Feb 2006 18:01:07 -0000 X-SynServer-RemoteDnsName: port-212-202-36-170.dynamic.qsc.de X-SynServer-AuthUser: markus@trippelsdorf.de Received: from port-212-202-36-170.dynamic.qsc.de (HELO bsd.trippelsdorf.de) (212.202.36.170) by mx-04.synserver.de with SMTP; 18 Feb 2006 18:01:06 -0000 Date: Sat, 18 Feb 2006 19:01:12 +0100 From: Markus Trippelsdorf To: "M. Warner Losh" Message-ID: <20060218180112.GA765@bsd.trippelsdorf.de> References: <20060218.102145.26324437.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060218.102145.26324437.imp@bsdimp.com> Cc: hackers@freebsd.org Subject: Re: Bad block -> file mapping X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2006 18:01:17 -0000 On Sat, Feb 18, 2006 at 10:21:45AM -0700, M. Warner Losh wrote: > I have a hard disk that's been in service a long time. I recently > installed the SMART monitoring tools. On occasion, I get reports of > LBAs it can't read. I'd like to map the LBA to an actual file in the > file system, if possible. Does anybody have any tools that can help > me with this? http://smartmontools.sourceforge.net/BadBlockHowTo.txt might be helpful. (of course you have to adapt the (Linux-)instructions to FreeBSD) -- Markus