Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1120473
  • 博文数量: 141
  • 博客积分: 2853
  • 博客等级: 少校
  • 技术积分: 2266
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-04 12:03
文章分类

全部博文(141)

文章存档

2014年(3)

2013年(12)

2012年(126)

分类: 嵌入式

2012-09-15 21:41:43

今天不小心把/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, 就可以保存了.
阅读(875) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~