【CentOS7.9】虚拟机断电或强制关机,再开机出现问题:Entering emergency mode. Exit the shell to continue.


CentOS虚拟机断电或强制关机,再开机出现问题:Entering emergency mode. Exit the shell to continue.

 

 

查看日志
journalctl -n 50

错误原因:

failed to mount /sysroot.
Dependency failed for Initrd root File System.
Dependency failed for Reload configuration from the Real Root.

解决问题: 

输入命令:xfs_repair -v -L /dev/dm-0

 -L 选项指定强制日志清零,强制xfs_repair将日志归零,即使它包含脏数据(元数据更改)。

重启 reboot

 

 

不行也可以试试

xfs_repair /dev/mapper/centos-root -L
reboot


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM