linux 故障修复

debian机器,开机遇到类似下面的错误

checking drive/dev/sda3: 92%(stage 4/5,25/85) fail
Flie system check falid
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.

----

fsck died with exit status 4 

这里描述的是磁盘检测错误,网上说是异常关机导致的。

然后尝试用下面命令执行,重启后系统正常了

先mount -no remount,ro / 

再fsck.ext3 -y /dev/sda3

然后重启ok!

注意:网上说,不要直接执行fsck,这样会有危险,要在把设备unmount后执行。

参考:http://space.itpub.net/7351078/viewspace-697520

猜你喜欢

转载自liang29731611.iteye.com/blog/1601960