分页: 1 / 1

ubuntu系统进入图形界面失败

发表于 : 2016-04-07 23:05
widon1104
/dev/sda7应该是/home分区,有200个g
奇怪的是用recover mode能够进图形界面,,现在暂时只能这样,请问到底如何才能修复这个问题呢?
报类似的错误:
error getting authority: Error initializing authority...(g-io-error-quark, 1)

Re: 系统进入图形界面失败

发表于 : 2016-04-07 23:09
widon1104
widon@widon-X401A:~$ df -h
文件系统 容量 已用 可用 已用% 挂载点
udev 1.9G 0 1.9G 0% /dev
tmpfs 384M 6.3M 378M 2% /run
/dev/sda5 24G 4.7G 19G 21% /
tmpfs 1.9G 412K 1.9G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/sda7 230G 150G 68G 69% /home
/dev/sda1 40G 48M 38G 1% /opt
tmpfs 384M 16K 384M 1% /run/user/121
tmpfs 384M 28K 384M 1% /run/user/1000
我用recover 模式登陆进去,明明一切都是正常的啊

Re: ubuntu系统进入图形界面失败

发表于 : 2016-04-07 23:24
vickycq
检查 fstab 看是否有无法挂载的错误项。

代码: 全选

journalctl -xb | grep mount
参考 https://bugs.launchpad.net/lightdm/+bug/1463116

Re: ubuntu系统进入图形界面失败

发表于 : 2016-04-07 23:31
widon1104
vickycq 写了:检查 fstab 看是否有无法挂载的错误项。

代码: 全选

journalctl -xb | grep mount
参考 https://bugs.launchpad.net/lightdm/+bug/1463116
widon@widon-X401A:~$ sudo blkid
/dev/sda7: UUID="4e532d4a-692b-4836-8c7b-3d2e371480c5" TYPE="ext4" PARTUUID="821a821a-07"
/dev/sda1: UUID="343d755f-3659-4df4-b716-2656f97550c1" TYPE="ext4" PARTUUID="821a821a-01"
/dev/sda5: UUID="d481f5d2-5566-4396-a7fd-2e3d3469adaa" TYPE="ext4" PARTUUID="821a821a-05"
/dev/sda6: UUID="febeac31-da8d-42c0-bc07-6d944505ebe4" TYPE="swap" PARTUUID="821a821a-06"
widon@widon-X401A:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=d481f5d2-5566-4396-a7fd-2e3d3469adaa / ext4 errors=remount-ro 0 1
# /home was on /dev/sda7 during installation
UUID=4e532d4a-692b-4836-8c7b-3d2e371480c5 /home ext4 defaults 0 2
# /opt was on /dev/sda1 during installation
UUID=343d755f-3659-4df4-b716-2656f97550c1 /opt ext4 defaults 0 2
# swap was on /dev/sda6 during installation
UUID=febeac31-da8d-42c0-bc07-6d944505ebe4 none swap sw 0 0

看起来没有错啊

Re: ubuntu系统进入图形界面失败

发表于 : 2016-04-08 7:52
widon1104
/home自动mount 不上,但是在/etc/fstabl的option里面加上nofail让系统起来,手动mount /home却能mount上,,

Re: ubuntu系统进入图形界面失败

发表于 : 2016-04-08 8:19
widon1104
widon@widon-X401A:~$ dmesg | grep mount
[ 2.587038] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
[ 5.010011] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 8.307233] EXT4-fs (sda5): re-mounted. Opts: errors=remount-ro
[ 14.255011] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 20.326617] cgroup: new mount options do not match the existing superblock, will be ignored
[ 91.964539] EXT4-fs (sda7): warning: mounting fs with errors, running e2fsck is recommended
[ 91.986549] EXT4-fs (sda7): mounted filesystem with ordered data mode. Opts: (null)

看来是挂载分区失败了

Re: ubuntu系统进入图形界面失败

发表于 : 2016-04-08 8:41
widon1104
使用 sudo fsck -y /dev/sda7修复了一下这个文件系统就好了。。

Re: ubuntu系统进入图形界面失败

发表于 : 2016-04-08 8:52
poloshiao
看来是挂载分区失败了
使用 sudo fsck -y /dev/sda7修复了一下这个文件系统就好了。。
下次 如果還有這個情形
1. 動手修復前 先立即
sudo ls -al /dev/disk/by-uuid/*
把結果複製貼上來或留下記錄
2. 修復後 再次
sudo ls -al /dev/disk/by-uuid/*
3. 看看 有何不同

Re: ubuntu系统进入图形界面失败

发表于 : 2016-11-08 16:49
vpnsubmit
检查 fstab 看是否有无法挂载的错误项。
วิธีแทงบอล