Bad block -> file mapping
John-Mark Gurney
gurney_j at resnet.uoregon.edu
Sat Feb 18 13:48:53 PST 2006
Warner Losh wrote this message on Sat, Feb 18, 2006 at 10:21 -0700:
> I have a hard disk that's been in service a long time. I recently
> installed the SMART monitoring tools. On occasion, I get reports of
> LBAs it can't read. I'd like to map the LBA to an actual file in the
> file system, if possible. Does anybody have any tools that can help
> me with this?
>
> I know I need to get a new disk. In the mean time, I need to cope
> with these errors in a sane manner...
ffsrecov will do this for UFS1... I did make ffsrecov compile on 5.x,
but w/ the complications of making it support UFS2, I abandoned it..
With a bit of work, ffsrecov.py can be taught this and handle both ufs1
and ufs2...
--
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."
More information about the freebsd-hackers
mailing list