From owner-freebsd-questions@FreeBSD.ORG Mon Mar 13 21:19:51 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C287116A420 for ; Mon, 13 Mar 2006 21:19:51 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from zoot.lafn.org (zoot.lafn.ORG [206.117.18.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6836943D70 for ; Mon, 13 Mar 2006 21:19:51 +0000 (GMT) (envelope-from bc979@lafn.org) Received: from [10.0.1.2] (pool-71-109-244-179.lsanca.dsl-w.verizon.net [71.109.244.179]) (authenticated bits=0) by zoot.lafn.org (8.13.4/8.13.1) with ESMTP id k2DLJmhp067622 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Mon, 13 Mar 2006 13:19:50 -0800 (PST) (envelope-from bc979@lafn.org) Mime-Version: 1.0 (Apple Message framework v746.2) Content-Transfer-Encoding: 7bit Message-Id: <8E6AB14C-5A81-4CC2-B44C-6763EFA3E8FE@lafn.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-questions From: Doug Hardie Date: Mon, 13 Mar 2006 13:19:47 -0800 X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: ClamAV 0.88/1328/Mon Mar 13 09:13:39 2006 on zoot.lafn.org X-Virus-Status: Clean Subject: Finding an LBA after a disk error 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: Mon, 13 Mar 2006 21:19:51 -0000 After much revision I finally have a tool that does a pretty good job of identifying the usage of an LBA. Its not perfect, but its normally only used with a disk with a bad sector. It no longer needs the complete source distribution but can be built from the normal libraries. It has been tested on FreeBSD 5.3 and 6.0. One of the libraries it uses was introduced in 5.1 so its not likely to work on anything earlier. It works on ufs1 and ufs2 formats and there is even a man page now. It could be mnade into a port, but I am out of time right now. A quick look at the documents for creating ports shows that it will take quite a bit of time to figure out that part. Contact me off-list if you would like to get it.