CentOS7 virtual machine power, appears: ".. Entering emergency mode Exit the shell to continue"

Solved as follows.

 

There are prompted for a log journalctl: view the system log information;

Direct Input this command to view the log content may be a lot, quickly flip or directly targeted to the most recent log information, found marked red, indicating an error here.

wrong reason:

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

Solve the problem:
Enter the command

xfs_repair -v -L /dev/dm-0

-L option specifies the mandatory log cleared, forcing xfs_repair log to zero, even if it contains dirty data (metadata changes).

PS: XFS a high performance journaling file system

Published 574 original articles · won praise 279 · views 490 000 +

Guess you like

Origin blog.csdn.net/Rong_Toa/article/details/104267750