From owner-freebsd-scsi Tue Oct 30 5:43: 4 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from mout1.freenet.de (mout1.freenet.de [194.97.50.132]) by hub.freebsd.org (Postfix) with ESMTP id 7960637B406 for ; Tue, 30 Oct 2001 05:43:00 -0800 (PST) Received: from [194.97.50.136] (helo=mx3.freenet.de) by mout1.freenet.de with esmtp (Exim 3.33 #1) id 15yZAR-0002bY-00; Tue, 30 Oct 2001 14:42:59 +0100 Received: from b821c.pppool.de ([213.7.130.28] helo=Magelan.Leidinger.net) by mx3.freenet.de with esmtp (Exim 3.33 #3) id 15yZAQ-0001ic-00; Tue, 30 Oct 2001 14:42:58 +0100 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.11.6/8.11.6) with ESMTP id f9UD9bD05779; Tue, 30 Oct 2001 14:09:38 +0100 (CET) (envelope-from netchild@Leidinger.net) Message-Id: <200110301309.f9UD9bD05779@Magelan.Leidinger.net> Date: Tue, 30 Oct 2001 14:09:36 +0100 (CET) From: Alexander Leidinger Subject: Re: repeating medium errors and error from "camcontrol defects" To: ken@kdm.org Cc: scsi@FreeBSD.ORG In-Reply-To: <20011027160051.A66375@panzer.kdm.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 27 Okt, Kenneth D. Merry wrote: >> > Then, write zeroes to the bad block to force the drive to remap it. >> >> Is there a way to determine the file which is affected? I didn't want >> just wrote zeros to it if I didn't know which file this affects. Maybe >> I'm able to replace the file from a backup after or before overwritting >> the block . > > I don't know how you'd do that. It's probably possible to dissect the > filesystem information to figure it out, but I don't know how to do that. I'm at least able to determine the partition which contains the bad block: http://www.leidinger.net/FreeBSD/b2i.c "b2i" means "block to inode", but this is misleading at the moment, "b2p" (block to partition) or "bip" (block in partition) is the actual semantic of b2i.c. At the moment I try to squeeze some information (or pointers to docs) about the on disk layout of FFS out of fs@freebsd.org. bde suggested to just compare the files on the partition with the backup or just to read every file on it and see which one produces errors (I'm going to do this now), but I think a dedicated program which does the phys block -> filename mapping needs less resources on a possible heavy loaded system. Bye, Alexander. -- It's not a bug, it's tradition! http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message