atom feed30 messages in org.freebsd.freebsd-currentRe: A tool for remapping bad sectors ...
FromSent OnAttachments
Eugeny N DzhurinskyMar 8, 2010 2:26 am 
Alexander MotinMar 8, 2010 2:31 am 
Eugene DzhurinskyMar 8, 2010 2:52 am 
Eugene DzhurinskyMar 8, 2010 2:54 am 
Eugene DzhurinskyMar 8, 2010 3:08 am 
Miroslav LachmanMar 8, 2010 3:21 am 
Wes MorganMar 8, 2010 3:46 am 
Eugene DzhurinskyMar 8, 2010 3:50 am 
Miroslav LachmanMar 8, 2010 5:28 am 
Alex KedaMar 8, 2010 12:14 pm 
Ulrich SpörleinMar 11, 2010 5:47 am 
Dag-Erling SmørgravMar 11, 2010 7:20 am 
Svein Skogen (Listmail Account)Mar 11, 2010 7:23 am 
Miroslav LachmanMar 13, 2010 12:44 pm 
Dag-Erling SmørgravMar 13, 2010 1:24 pm 
Miroslav LachmanMar 14, 2010 1:54 am 
Gary JennejohnMar 14, 2010 4:38 am 
Miroslav LachmanMar 14, 2010 9:18 am 
Gary JennejohnMar 14, 2010 10:47 am 
Dag-Erling SmørgravMar 17, 2010 3:58 am 
Miroslav LachmanMar 17, 2010 4:35 am 
Miroslav LachmanMar 17, 2010 4:41 am 
Dag-Erling SmørgravMar 17, 2010 4:59 am 
Gary JennejohnMar 17, 2010 5:05 am 
Miroslav LachmanMar 18, 2010 3:29 am 
Miroslav LachmanMar 18, 2010 3:32 am 
Dag-Erling SmørgravMar 18, 2010 4:10 am 
Pieter de GoejeMar 18, 2010 4:33 am 
Miroslav LachmanMar 18, 2010 4:45 am 
Dag-Erling SmørgravMar 18, 2010 5:17 am 
Subject:Re: A tool for remapping bad sectors in CURRENT?
From:Dag-Erling Smørgrav (de@des.no)
Date:Mar 13, 2010 1:24:26 pm
List:org.freebsd.freebsd-current

Miroslav Lachman <000.@quip.cz> writes:

So... can somebody with enough knowledge write some docs / script how to find the affected file based on LBA read error from messages / SMART log?

ZFS will tell you straight away, but I guess if you used ZFS, you wouldn't be asking :)

For FFS, you can unmount the file system (boot from a CD or memory stick or whatever if that file system is / or /usr), run fsdb on the failing disk, use findblk to look up the inode number for the file that contains the bad sector. Note that you have to convert the LBA to an offset relative to the start of the partition.

Unfortunately, you can't easily go from inode to file name; you have to mount the file system and use something like find -inum.

DES