Entering emergency mode. Exit the shell to continue

本文介绍了一种解决虚拟机启动时出现Entering emergency mode错误的方法。通过使用journalctl命令查找失败挂载点,利用xfs_repair命令进行修复,并最终重启解决问题。

启动虚拟机时出现如下现象

“Entering emergency mode. Exit the shell to continue”
“Type ‘journalctl’ to view system log.”
You might want to save “/run/initramfs/rdsosreport.txt” to a USB stick or /boot after mounting them and attach it to a bug report.

解决办法:

输入 journalctl 回车

向下翻阅内容直到找到failed to mount /sysroot. Dependency failed for Initrd root File System. Dependency failed for Reload configuration from the Real Root.),查看红色地方XFS()是什么

这里我的是XFS(dm-0)

按q退出,然后输入:xfs_repair -v -L /dev/dm-0

然后执行reboot,问题解决

参考:https://blog.csdn.net/qq_41610418/article/details/81704362

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值