Virtual machine CentOS7 startup error: Entering emergency mode

Phenomenon

After starting CentOS7 in VMWare15.5 on win10, the following error was reported:
insert image description here
Entering emergency mode. Exit the shell to continue

Cause Analysis

After investigation, the CentOS file system is faulty, and the root cause of the fault is:

  • Forcibly shut down the virtual machine (skip the system and shut down VMWare directly)
  • Irregular execution of on-hook operations
  • Irregular execution of restart operation

Repair method

Please enter the following command to fix it:

xfs_repair -v -L /dev/sda3

Parameter description:
-L: Use the xfs_repair command to force the log to be cleared (even if it contains dirty data, this will change the metadata information)

After the modification is completed, print the log as follows:
insert image description here
Then execute reboot, restart CentOS7, and observe whether it can start normally.

Guess you like

Origin blog.csdn.net/liuwei0376/article/details/126445627