Subject: Re: Unable to boot new kernels
To: Rob Quinn <rquinn@sec.sprint.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-sparc64
Date: 05/15/2003 21:48:44
On Thu, May 08, 2003 at 03:10:09PM -0400, Rob Quinn wrote:
> wd0: (uncorrectable data error)
> wd0c: error reading fsbn 6800066 of 6799968-6800093 (wd0 bn 6800066; cn 6746 tn 1 sn 35)wd0: (uncorrectable data error)
> 
>   How do I determine which file occupies "6799968; cn 6746"?  I know I need to
> ditch the drive, but first I want to find the piece that's most responsible for
> my aggravation and grind it under my heel a few times...

You can using fsdb on current. First you have to know in which partition this
lives, then substract the offset of that partition from 6799968, this gives
you the offset of the bad block in the partition.
Run fsdb -n -f /dev/rwd0? (? being the appropriate partition) and
use the findblk command with the offset of the bad block in the partition.

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