On Sat, Aug 20, 2005 at 11:33:41AM +0200, Markus Meyer wrote:
> My Smartmontools reported a defect block on one of my disks with an
> XFS on them. So I wanted to follow the Badblocks-Howto  to find the
> corresponding Inode and the file that I can "repair" the block and
> restore the file. But I have no idea how to accomplish this on XFS.
> Is there anyone around who can help me? Well there aren't that many
> docs around and the man pages are not a big help (or maybe I'm just
> I'm running Debian Linux under 2.6.12.
AFAIK you can't do this with XFS. The best thing to do will be to
replace your hard drive. If you can't do that, try running badblocks(8)
in non-destructive read-write mode. This will attempt to read and then
write on every block of your drive. The write, in particular, should
trigger a remap using your drive's spare blocks, and may "fix" things.
Federico Sevilla III : jijo.free.net.ph : When we speak of free software
GNU/Linux Specialist : GnuPG 0x93B746BE : we refer to freedom, not price.