centos7 开机提示:ENTERING EMERGENCY MODE. EXIT THE SHELL TO CONTINUE.

虚拟机强制开机后centos07容易出现以下问题

开机提示:ENTERING EMERGENCY MODE. EXIT THE SHELL TO CONTINUE.

 

解决办法:

1.根据提示,使用journalctl命令查看日志,找到报错日志信息,根据报错信息确认是哪个设备出错

Failed to open /sysroot/etc/fstab:Input/output error 

2.输入命令xfs_repair -v -L /dev/xxx来修复设备

我使用以下命令 出现下图则成功

umount /dev/dm-0 

xfs_repair -v -L /dev/dm-0 

3.reboot重启虚拟机

关于xfs_repair的知识

xfs_repair -h
xfs_repair: invalid option -- 'h'
Usage: xfs_repair [options] device

Options:
-f The device is a file
-L Force log zeroing. Do this as a last resort.
-l logdev Specifies the device where the external log resides.
-m maxmem Maximum amount of memory to be used in megabytes.
-n No modify mode, just checks the filesystem for damage.
-P Disables prefetching.
-r rtdev Specifies the device where the realtime section resides.
-v Verbose output.
-c subopts Change filesystem parameters - use xfs_admin.
-o subopts Override default behaviour, refer to man page.
-t interval Reporting interval in minutes.
-d Repair dangerously.
-V Reports version and exits.
 

  • 1
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值