Entering emergency mode. Exit the shell to continue.

When the CentOS virtual machine is powered off or forced to shut down, there is a problem when it is rebooted:

Find out where the problem is:
here, journalctl is to view the log information of the system; Enter this command to view the log directly. There may be a lot of log content. Quickly turn the page or directly locate the latest log information. If you find something marked in red, it means that there is an error here
error reason:
failed to mount/sysRoot.
dependency failed for initrd root file system.
dependency failed for reload configuration from the real root.
problem solving:
input command: XFS_ The repair – V – L/dev/dm-0
– L option specifies to force log zeroing and XFS_ Repair zeros the log even if it contains dirty data (metadata changes).

Read More: