Linux启动检测磁盘失败
来源:岁月联盟
时间:2011-11-23
在重启公司一台测试环境的red as5的机器之后,过了很长一段时间都无法ssh上去,
跑到机器前面看了下,出现了磁盘检测错误:
checking filesystems /dev/volgroup00/logvo100:unexpected inconsistency;run fsck manually. (i.e.,without -a or -p options) *** an error occureed during the file system check. .....
啪啦啪啦,晕倒,我说怎么这么久都没起来,
唉,按照提示来操作把。(repair filesystem)1#fsck -a fsck 1.39(29-may-2006) /dev/volgroup00/logvo100 contains a file system with errors,check forced. 。。。。
出现提示说在读取某个block的时候出现错误,用fsck进行修复:(repair filesystem)1#fsck
过了一段时间之后完成了修复,reboot机器即可。
ps,在修复过程中会让你输入y进行确认修复,其实可以使用fsck -y自动回答。
-The End-
作者 Gtlions