Subject: Re: problem with wd error handling?
To: Matthias Drochner <M.Drochner@fz-juelich.de>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 08/15/2004 20:52:47
On Sun, Aug 15, 2004 at 05:26:17PM +0200, Matthias Drochner wrote:
> 
> abuse@spamalicious.com said:
> > Many modern drives still use the AMNF bit.
> 
> Thanks -- so this looks serious, and I should get a new disk...
> 
> > > Can I assume that
> > > the block is already remapped internally by the drive?
> > You can hope.
> 
> I'l try to write to that sector; if it succeeds i know it is.
> Have to find out which file is affected before so I know what
> gets corrupted. What is the easiest way for this?
> (find -exec cat {} and watching the error messages should work
> hopefully, as long as it isn't a directory)

fsdb has the findblk command to find the usage of a block number.
It wants the sector number relative to the start of the partition,
so you'll probably have to do the math.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--