今天,我在从FreeBSD服务器获得的每日日志邮件中发现了以下消息:
ad2c: hard error reading fsbn 1081249272 of 540624636-540624639 (ad2 bn 1081249272; cn 1072667 tn 14 sn 54) status=59 error=40
find与上面的块号对应的文件的最好方法是什么?
您可以(也可能不得不)为此使用fsdb
(8) – findblk
命令应能够追踪inode,从中可以获取文件名。
OBLIGATORY WARNING fsdb is a pretty dangerous tool. You can do a lot of damage in a very short amount of time. It is a good idea to read the man page thoroughly, and perhaps peruse a few other sources of information before poking around in the dark sticky guts of your filesystem.
更多细节可以在这个邮件列表发布freebsd-questions