Today I found the following message in the daily log mail I get from a FreeBSD server:
ad2c: hard error reading fsbn 1081249272 of 540624636-540624639 (ad2 bn 1081249272; cn 1072667 tn 14 sn 54) status=59 error=40
What is the best way to find the file corresponding to above block number?
You can (and probably have to) resort to
fsdb
(8) for this -- thefindblk
command should be able to track down the inode, from which you can get the file name.More details can be found in this mailing list post to freebsd-questions