系统启动报错: Error getting authority: Error initializing authority: could not connect: no such file or...

2021-05-25
系统启动报错:
Error getting authority: Error initializing authority: could not connect: no such file or directory(g-io-error-quark,1)
原因:磁盘挂载错误引起系统启动出错
解决:

journalctl -xb | grep mount      #根据提示输入命令查看启动错误日志,定位到是home目录挂载出错
lsblk     #查看磁盘挂载情况,发现home目录已经取消挂在了(因为之前做根目录扩容的时候把home卸载了)
vim /etc/fstab      #查看挂载文件,发现里面还有关于home的挂载配置,因此注释掉home目录的挂载配置即可
#
# /etc/fstab
# Created by anaconda on Wed Mar 24 10:50:52 2021
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/centos-root /                       xfs     defaults        0 0
UUID=43106cc7-7557-41ee-b45a-6e2a345bea19 /boot                   xfs     defaults        0 0
# /dev/mapper/centos-home /home                   xfs     defaults        0 0    **注释掉这一行**
/dev/mapper/centos-swap swap                    swap    defaults        0 0

reboot      # 重启系统即可恢复正常使用,注意检查其他服务是否恢复正常运行

你可能感兴趣的:(系统启动报错: Error getting authority: Error initializing authority: could not connect: no such file or...)