栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

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

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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

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

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

 

解决办法:

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

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

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

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.
 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/312881.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号