/etc/fstab改错后的处理

just posted @ 2008年12月20日 20:25 in linux , 1099 阅读

今天不小心把/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的password进入, vi 打开/etc/fstab之后, 恢复为原来的样子但是保存时提示
-- INSERT -- w10: Warning: Changing a readonly file
改完後保存的时候提示
"fstab" E212: Can't open file for writing
:w! 也没有用

看来是mount成readonly 了.
于是
root# mount -o remount,rw /

再试vi /etc/fstab, 就可以保存了.

  • 无匹配
  • 无匹配

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter