今天忽然服务器连接的存储识别不到了,重启了机器,/etc/fstab里面的配置存储的项未改,系统重启后显示
Checking filesystems
.....................................................................
***An error occured during the file system check.
***Dropping you to a shell; the system will reboot
***when you leave shell. up to 100000000 @ 8000-d000
Give root password for maintenance
(or type Control-D to continue);
于是,输入root密码进入, vi 打开/etc/fstab之后, 删掉配置的存储挂载选项为原来的样子,但是保存时提示
:-- INSERT -- w10: Warning: Changing a readonly file
改完后保存的时候提示:
"fstab" E212: Can't open file for writing
:w! 也没有用
于是
#mount -o remount,rw /
或者
#mount -n -o remount,rw /
再试vi /etc/fstab, 就可以保存了。重启服务器即可,以后需要注意重启前先修改/etc/fstab文件!
文章评论