From owner-freebsd-current@FreeBSD.ORG Wed Mar 17 10:58:30 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B49FF106566C for ; Wed, 17 Mar 2010 10:58:30 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 6D3398FC08 for ; Wed, 17 Mar 2010 10:58:30 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 4BA131FFC22; Wed, 17 Mar 2010 10:58:27 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 2D2118449F; Wed, 17 Mar 2010 11:58:27 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Miroslav Lachman <000.fbsd@quip.cz> References: <20100308102918.GA5485@localhost> <4B94DDC8.5080008@quip.cz> <20100308115052.GA31896@office.redwerk.com> <4B94FBA6.5090107@quip.cz> <861vfq995i.fsf@ds4.des.no> <4B9BF957.4060507@quip.cz> <86eijn3of2.fsf@ds4.des.no> <4B9CB287.9080205@quip.cz> Date: Wed, 17 Mar 2010 11:58:27 +0100 In-Reply-To: <4B9CB287.9080205@quip.cz> (Miroslav Lachman's message of "Sun, 14 Mar 2010 10:55:19 +0100") Message-ID: <86pr338bak.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: A tool for remapping bad sectors in CURRENT? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2010 10:58:30 -0000 Miroslav Lachman <000.fbsd@quip.cz> writes: > As I write in my first post to this thread, I already tried fsdb + > findblk, but without success. Findblk did not returned any inode. > Maybe the meaning of block is of different size or something else I > can't understand. AFAICT, "block" is a disk block (i.e. 512-byte sector in most cases) relative to the start of the partition. > The LBA of bad sector is *79725167* [...] s1 starts 63 sectors from > the beginning of the drive and /var/db has offset 39845888. So am I > right that I need to find block number *39879105* by findblk command? Uh, 79725167 - 63 =3D 79725104 and 79725104 - 39845888 =3D 39879216. How did you arrive at 39879105? DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no