Subject: Re: know bad sector => obtain bad file
To: Denis Lagno <email@example.com>
From: Manuel Bouyer <firstname.lastname@example.org>
Date: 03/07/2005 19:26:53
On Mon, Mar 07, 2005 at 03:55:43PM +0300, Denis Lagno wrote:
> I encountered bad sector on my disk during dump:
> wd0g: error reading fsbn 237235392 of 237235392-237235455 (wd0 bn 268435455; cn 266305 tn 0 sn 15)
> wd0: (id not found)
> First question: what kind of error is this (id not found)?
hardware error, most probably. Unfortunably there are way to few error codes
in the ATA interface to have the drive report interesting details.
You may get more infos from atactl smart, if the drive supports it.
> Second question: how can I determine the file occupying that sector?
> I know of a method using bad144 and badsector. Is there a more
> straightforward method?
fsdb should be able to tell you.
Manuel Bouyer <email@example.com>
NetBSD: 26 ans d'experience feront toujours la difference