昨天搬机器,估计非正常关机,今天启动服务器后,显示如下错误:
*** Anerroroccurredduringthefilesystem check
***Dropping you to a shell;thesystem will reboot
***when you leave the shell.
Give root password for mainteance
(or type Control -D for normal startup)
按照网上的方法:fsck -y的方式并未解决问题。
于是想到,之前在未关机的情况下调换了几块硬盘, 是不是重启后引起问题。
想到去修改/etc/fstab ,把后来挂载的硬盘删掉,但此时提示:此文件只能写,不能读。
于是执行:
mount -n -o remount,rw /
(上面的命令意思是: 重新以可读的形式挂载根分区 )
之后修改/etc/fstab重启后,问题得到解决。