redhat6.8解决An error occured during the file system check.W10 Warning Changing a readonly file.

在Redhat6.8中,由于新挂载的存储设备断开,导致系统启动时出现文件系统检查错误。用户需通过Control+D进入维护模式,使用root权限编辑/etc/fstab文件。由于文件处于只读状态,修改时出现警告。解决方法是解除只读属性,然后成功编辑并保存/etc/fstab,从而恢复正常系统启动。
摘要由CSDN通过智能技术生成

服务器新挂载一个存储,开机自动挂载mount写在了/etc/fstab

存储断了之后服务器不能正常进入系统,报错如下,

***An error occured during the file system check.

***Dropping you to a shell; the system will reboot

***when you leave shell.

Give root password for maintenance

(or type Control-D to continue);

ctrl+d

这时候按 Control+D键,输入root的password进入,修改/etc/fstab修改mount存储的内存才能正常进入系统

vi 打开/etc/fstab之后, 修改了/dev mount信息保存时, 提示

-- INSERT -- w10: Warning: Changing a readonly file

w10

看来是mount成readonly 了. 于是

root#mount -o remount,rw /

 然后就可以编辑保存/etc/fstab了

root#vim /etc/fstab
修改或者注释掉mount存储的命令
:wq保存退出
root#reboot #重启开机

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值