2021-05-25
系統(tǒng)啟動(dòng)報(bào)錯(cuò):
Error getting authority: Error initializing authority: could not connect: no such file or directory(g-io-error-quark,1)
原因:磁盤(pán)掛載錯(cuò)誤引起系統(tǒng)啟動(dòng)出錯(cuò)
解決:
journalctl -xb | grep mount #根據(jù)提示輸入命令查看啟動(dòng)錯(cuò)誤日志,定位到是home目錄掛載出錯(cuò)
lsblk #查看磁盤(pán)掛載情況,發(fā)現(xiàn)home目錄已經(jīng)取消掛在了(因?yàn)橹白龈夸洈U(kuò)容的時(shí)候把home卸載了)
vim /etc/fstab #查看掛載文件,發(fā)現(xiàn)里面還有關(guān)于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 # 重啟系統(tǒng)即可恢復(fù)正常使用,注意檢查其他服務(wù)是否恢復(fù)正常運(yùn)行