我的笔记本电脑上有双启动,安装了 Windows 10 和 Ubuntu。
/home
我使用 Gparted(带实时 USB)缩小了 Ubuntu分区。该/home
分区是磁盘上的最后一个分区(/dev/sda8
),然后我从 Windows 10(现在/dev/sda9
)中的可用空间创建了一个新分区。
我可以成功启动 Windows 10,但只能启动一次 Ubuntu。现在我遇到了挂载/boot/efi
问题。但奇怪的是,如果我启动恢复并在其中执行任何操作(例如删除损坏的软件包),我可以从那里正常启动 Ubuntu,但不启用图形驱动程序(如果我理解正确的话)。
这是输出blkid
:
/dev/sda1: LABEL="Recovery" UUID="B6A4BF3CA4BEFDC5" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="ffdc36db-cfb8-4fd1-9332-3ed503822b68"
/dev/sda2: UUID="2AC0-616C" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="51f3571e-2f45-4341-956d-dce2730a1cb3"
/dev/sda4: UUID="542CEA772CEA5390" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="326c35cf-e400-4a9e-9cb5-037d095693c8"
/dev/sda5: UUID="708E254E8E250DE2" TYPE="ntfs" PARTUUID="c9b8ef8c-404d-4fa3-a042-9546a666cb1e"
/dev/sda6: UUID="c86e443e-6f16-41ed-ab74-269861d79e05" TYPE="ext4" PARTUUID="e3987e40-45a9-4b87-ba24-4fd1ba35048c"
/dev/sda7: UUID="985ef0a6-6275-4423-ba18-c8919463410c" TYPE="swap" PARTUUID="d1994c9e-7bec-4db6-a6c2-5023ba0ce54a"
/dev/sda8: UUID="5860e919-7209-4cd2-8576-619df3114ab2" TYPE="ext4" PARTUUID="65549518-7248-4804-aea8-f6325c4a8845"
/dev/sda9: LABEL="Data" UUID="262E15C32E158D45" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="a984dc95-27c9-4378-91dc-ef364a887afd"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="6002219b-bfcc-48d7-ad9e-8b241fc43bab"
并输出/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=c86e443e-6f16-41ed-ab74-269861d79e05 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
UUID=2AC0-616C /boot/efi vfat umask=0077 0 1
# /home was on /dev/sda7 during installation
UUID=5860e919-7209-4cd2-8576-619df3114ab2 /home ext4 defaults 0 2
# swap was on /dev/sda6 during installation
UUID=985ef0a6-6275-4423-ba18-c8919463410c none swap sw 0 0
如果我理解正确,UUID 是否匹配?只是 sda 数字发生了变化?
这也是一个可能有用的日志,来自/var/log/boot.log
:
[FAILED] Failed to start File System Check on /dev/disk/by-uuid/5860e919-7209-4cd2-8576-619df3114ab2.
See 'systemctl status "systemd-fsck@dev-disk-by\\x2duuid-5860e919\\x2d7209\\x2d4cd2\\x2d8576\\x2d619df3114ab2.service"' for details.
[DEPEND] Dependency failed for /home.
[DEPEND] Dependency failed for Local File Systems.
[DEPEND] Dependency failed for Clean up any mess left by 0dns-up.
我现在已经启动到 Ubuntu,但使用的是上面提到的方法(从恢复)。如果有任何其他日志可能有助于您了解情况,请告诉我,我会编辑它们。
编辑1:
如果我运行以下命令:systemctl status -l "systemd-fsck@dev-disk-by\\x2duuid-5860e919\\x2d7209\\x2d4cd2\\x2d8576\\x2d619df3114ab2.service"
它说服务已加载但不活动(已停止)。当我尝试重新启动它时,我得到以下输出:
A dependency job for systemd-fsck@dev-disk-by\x2duuid-5860e919\x2d7209\x2d4cd\xe2\x80\x8c\xe2\x80\x8b2\x2d8576\x2d619df\xe2\x80\x8c\xe2\x80\x8b3114ab2.service failed. See 'journalctl -xe' for details.
如果我检查日志,则journalctl -xe
返回以下内容:
okt 24 23:25:05 cybermyth kernel: EXT4-fs (sda8): error count since last fsck: 1864
okt 24 23:25:05 cybermyth kernel: EXT4-fs (sda8): initial error at time 1508441061: ext4_find_extent:915:
okt 24 23:25:05 cybermyth kernel: EXT4-fs (sda8): last error at time 1508444203: ext4_find_extent:915: in
okt 24 23:27:26 cybermyth sudo[5452]: pam_unix(sudo:session): session opened for user root by (uid=0)
okt 24 23:27:26 cybermyth systemd[1]: Unnecessary job for dev-disk-by\x2duuid-5860e919\x2d7209\x2d4cd\xe2
此外,这是来自journalctl -u "systemd-fsck@dev-disk-by\\x2duuid-5860e919\\x2d7209\\x2d4cd2\\x2d8576\\x2d619df3114ab2.service"
okt 24 23:27:26 cybermyth systemd[1]: systemd-fsck@dev-disk-by\x2duuid-5860e919\x2d7209\x2d4cd\xe2\x80\x8
okt 24 23:27:26 cybermyth systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/5860e9
okt 24 23:27:26 cybermyth systemd[1]: systemd-fsck@dev-disk-by\x2duuid-5860e919\x2d7209\x2d4cd\xe2\x80\x8