免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 760 | 回复: 0
打印 上一主题 下一主题

/etc/fstab改错后的处理 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-28 08:26 |只看该作者 |倒序浏览
今天不小心把/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, 就可以保存了.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/7893/showart_391557.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP