|
有次由于停电, 服务器停了, 手动重启后, 进入系统自检,
检测失败, 报错如下:
Error reading block \"x\" (Attempt to read block from file system resulted in short read) white reading directory block.
A log is being saved in /var/log/fsck/cherks if that location is writable.Please repair the file will now be started.
A maintenace shell will now be started Control-D will terminate this shew and resume system boot.
Ctrl-D启动系统后去/var/log/fsck/cherks看,见如下信息:
。。。。。。。。。。。。。。。。。。
/dev/sda3 contains a file system with errors, check forced.
/dev/sda3: Inodes that were part of a corrupted orphan linked list found.
/dev/sda3: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
。。。。。。。。。。。。。。
fsck died with exit status 4
按照网上的其他方案均为解决, 后来参考fsck的用法时,发现了一篇文章,按照操作竟然成功了。
运行fsck.ext3 -p /dev/sda3 此为修复命令,结果未能修复。
运行fsck.ext3 -y /dev/sda3 (-y Assume \"yes\" to all questions ;所有的问题都回答yes)
就这样,一路yes,重启, 系统终于正常启动了。 |
|