fstab文件错误导致系统无法启动


fstab文件错误导致系统无法启动
如由于分区表/etc/fstab中的磁盘不存在,导致系统无法启动,可如下处理
正常启动系统,在系统提示输入root密码后,进入修复模式,此时fstab文件为只读模式;
先退出vi,直接在命令行输入下面命令就可顺利编辑保存vi操作了.
#mount -o remount,rw /      注意逗号之间没有空格
如此就可修改fstab文件了。
可将需要修改的磁盘分区那一行删除或者将最后一列值修改为0;

错误原图如下,由于设置/dev/sdb1自动挂载,且检查,后操作将该分区删掉,导致启动失败;



附: $mount -o remount  解释
    Note  that the filesystem mount options will remain the same as those on the original
              mount  point,  and  cannot  be  changed  by  passing  the  -o   option   along   with
              --bind/--rbind.  The  mount options can be changed by a separate remount command, for
              example:

                     mount --bind olddir newdir
                     mount -o remount,ro newdir

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

转载于:http://blog.itpub.net/29519108/viewspace-1768490/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值