ITPub博客

首页 > 数据库 > Oracle > /etc/fstab改错后的处理

/etc/fstab改错后的处理

原创 Oracle 作者:xulongxc 时间:2014-09-23 11:06:53 0 删除 编辑
今天不小心把/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, 就可以保存了.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29440247/viewspace-1277931/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-01-13

  • 博文量
    58
  • 访问量
    237555