System files are damaged and go into Emergency Repair mode, unable to perform maintenance work
Welcome to Emergency mode! After logging in, type ' JOURNALCTL-XB ' to view system logs, ' systemctl reboot ' to reboot, ' systemctl default ' to try again To boot into default mode.
Give root password for maintenance
Any command executed will have the following (or similar) error
Error getting Authority:error initializing authority:could not connect:no such file or directory (G-io-error-quark, 1)
1, check the running log, found that is the/home directory mount problem
1 #journalctl-XB
2. Exit Log Mode
#q
3. View the information under the LVM partition
#LS -l/dev/mapper
4. View Mount Information
#Cat /etc/fstab
5. Repair Mount Directory
#xfs_repair/dev/mapper/centos-home
6, if the repair failed, please add-l parameter, drink saliva Mo Fang
#xfs_repair-L/dev/mapper/centos-home
7, repair completed, restart the system.
6
The solution is good, can play happily!
Forgive the author, the server network has collapsed, remote not only slag mobile phone photos.
Reference documents
http://chjbg35.blog.163.com/blog/static/130094302018284463941/
Repair method for mount and XFS file corruption caused by power outage of Linux server