16.10 无法启动(紧急模式)‘交换失败’

16.10 无法启动(紧急模式)‘交换失败’

我的 Kubuntu 16.10 无法启动。它进入紧急模式,即使使用 Ctrl+D 继续,它也会在 90 秒后进入紧急模式(这也是分区的默认超时时间)。我唯一可能导致此问题的事情是更新了一些软件包。此外,我还使用 Windows 8.1 进行双启动。

此处的信息输出fdisk -l(别介意德语):

Medium /dev/sda: 465,8 GiB, 500107862016 Bytes, 976773168 Sektoren
Einheiten: sectors von 1 * 512 = 512 Bytes
Sektorengröße (logisch/physisch): 512 Bytes / 4096 Bytes
I/O Größe (minimal/optimal): 4096 Bytes / 4096 Bytes
Typ der Medienbezeichnung: gpt
Medienkennung: 1B206445-6D93-4B1F-B5EC-59D0109B40AC

Gerät          Start      Ende  Sektoren  Größe Typ
/dev/sda1       2048    821247    819200   400M Windows recovery environment
/dev/sda2     821248   1353727    532480   260M EFI System
/dev/sda3    1353728   1615871    262144   128M Microsoft reserved
/dev/sda4    1615872 477867489 476251618 227,1G Microsoft basic data
/dev/sda5  949127168 976762879  27635712  13,2G Microsoft basic data
/dev/sda7  940965888 949127167   8161280   3,9G Linux Swap
/dev/sda8  879525888 940965887  61440000  29,3G Linux filesystem
/dev/sda9  477868032 879525887 401657856 191,5G Linux filesystem

/dev/sda1: LABEL="WINRE" UUID="7E9CBDF59CBDA7D3" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="810a5b07-9711-4037-920e-4ac07f5cc3a3"
/dev/sda2: UUID="E646-E8C5" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="d055411e-8e52-4d44-a69b-64de9cdfb75e"
/dev/sda4: LABEL="Windows" UUID="3628BCF828BCB7E7" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="6aa9d2d7-df51-4df5-b94c-0ce2892cfe56"
/dev/sda5: LABEL="RECOVERY" UUID="3674B87774B83C05" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="76f9d43c-2cbd-4e2e-bfb7-7764ecde33fc"
/dev/sda7: UUID="7526761c-b5a4-4fde-a1d5-672ef7b83b0b" TYPE="swap" PARTLABEL="Swap" PARTUUID="8e24fc33-f43e-4fa8-a664-4b3bf5a376f7"
/dev/sda8: UUID="89aaacd1-1e02-4636-a601-08be42fd29f5" TYPE="ext4" PARTLABEL="System" PARTUUID="acdd51a1-aeb5-4051-90af-d436eea9b618"
/dev/sda9: UUID="4470c52f-b60e-4301-bd09-3eafb6de7d65" TYPE="ext4" PARTLABEL="Home" PARTUUID="6c777510-50f5-49bd-b27f-3ac6da4c2778"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="191bea73-7541-4428-8650-def9849b28ed"

journalctl -xb | grep swap

Apr 03 21:19:47 gabriel-kubuntu-16 kernel: zswap: loaded using pool lzo/zbud
-- Subject: Unit dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.swap has failed
-- Unit dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.swap has failed.
-- Subject: Unit swap.target has failed
-- Unit swap.target has failed.
Apr 03 21:19:47 gabriel-kubuntu-16 systemd[1]: swap.target: Job swap.target/start failed with result 'dependency'.
Apr 03 21:19:47 gabriel-kubuntu-16 systemd[1]: dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.swap: Job dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.swap/start failed with result 'dependency'.
-- Subject: Unit dev-sda7.swap has failed
-- Unit dev-sda7.swap has failed.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: dev-sda7.swap: Job dev-sda7.swap/start failed with result 'dependency'.

...因为 journalctl 中的所有错误都与交换有关。

编辑:journalctl 中有两个部分看起来有问题:

Apr 03 21:19:47 gabriel-kubuntu-16 systemd[1]: dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.device: Job dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.device/start timed out.
Apr 03 21:19:47 gabriel-kubuntu-16 systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.device.
-- Subject: Unit dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.device has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.device has failed.
-- 
-- The result is timeout.
Apr 03 21:19:47 gabriel-kubuntu-16 systemd[1]: Dependency failed for /dev/disk/by-uuid/7526761c-b5a4-4fde-a1d5-672ef7b83b0b.
-- Subject: Unit dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.swap has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.swap has failed.
-- 
-- The result is dependency.
Apr 03 21:19:47 gabriel-kubuntu-16 systemd[1]: Dependency failed for Swap.
-- Subject: Unit swap.target has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit swap.target has failed.
-- 
-- The result is dependency.
Apr 03 21:19:47 gabriel-kubuntu-16 systemd[1]: swap.target: Job swap.target/start failed with result 'dependency'.
Apr 03 21:19:47 gabriel-kubuntu-16 systemd[1]: dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.swap: Job dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.swap/start failed with result 'dependency'.
Apr 03 21:19:47 gabriel-kubuntu-16 systemd[1]: dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.device: Job dev-disk-by\x2duuid-7526761c\x2db5a4\x2d4fde\x2da1d5\x2d672ef7b83b0b.device/start failed with result 'timeout'.

Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: dev-disk-by\x2duuid-E646\x2dE8C5.device: Job dev-disk-by\x2duuid-E646\x2dE8C5.device/start timed out.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-E646\x2dE8C5.device.
-- Subject: Unit dev-disk-by\x2duuid-E646\x2dE8C5.device has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit dev-disk-by\x2duuid-E646\x2dE8C5.device has failed.
-- 
-- The result is timeout.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/E646-E8C5.
-- Subject: Unit systemd-fsck@dev-disk-by\x2duuid-E646\x2dE8C5.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit systemd-fsck@dev-disk-by\x2duuid-E646\x2dE8C5.service has failed.
-- 
-- The result is dependency.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: Dependency failed for /boot/efi.
-- Subject: Unit boot-efi.mount has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit boot-efi.mount has failed.
-- 
-- The result is dependency.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: Dependency failed for Local File Systems.
-- Subject: Unit local-fs.target has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit local-fs.target has failed.
-- 
-- The result is dependency.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: local-fs.target: Job local-fs.target/start failed with result 'dependency'.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: local-fs.target: Triggering OnFailure= dependencies.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: boot-efi.mount: Job boot-efi.mount/start failed with result 'dependency'.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: systemd-fsck@dev-disk-by\x2duuid-E646\x2dE8C5.service: Job systemd-fsck@dev-disk-by\x2duuid-E646\x2dE8C5.service/start failed with result 'dependency'.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: dev-disk-by\x2duuid-E646\x2dE8C5.device: Job dev-disk-by\x2duuid-E646\x2dE8C5.device/start failed with result 'timeout'.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: dev-sda7.device: Job dev-sda7.device/start timed out.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: Timed out waiting for device dev-sda7.device.
-- Subject: Unit dev-sda7.device has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit dev-sda7.device has failed.
-- 
-- The result is timeout.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: Dependency failed for Swap Partition.
-- Subject: Unit dev-sda7.swap has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit dev-sda7.swap has failed.
-- 
-- The result is dependency.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: dev-sda7.swap: Job dev-sda7.swap/start failed with result 'dependency'.
Apr 03 21:21:17 gabriel-kubuntu-16 systemd[1]: dev-sda7.device: Job dev-sda7.device/start failed with result 'timeout'.

这是我的/etc/fstab

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda8 during installation
UUID=89aaacd1-1e02-4636-a601-08be42fd29f5 /               ext4  defaults,noauto,nofail,errors=remount-ro   0       1
# /boot/efi was on /dev/sda2 during installation
UUID=E646-E8C5  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/sda9 during installation
UUID=4470c52f-b60e-4301-bd09-3eafb6de7d65 /home           ext4  defaults,noauto,nofail,errors=remount-ro   0       2
# swap was on /dev/sda7 during installation
UUID=7526761c-b5a4-4fde-a1d5-672ef7b83b0b none            swap  sw         0      0

我已经尝试更改 fstab 中的几个选项,并从实时 USB 对分区运行 fsck。查看 journalctl 后,错误可能位于交换分区 sda7,因此我格式化并重建了它。但什么也没改变。有人知道哪里出了问题以及我该如何修复这个问题吗?

答案1

我找不到可行的解决方案,所以现在我重新安装了 Kubuntu 并升级到 17.04,以使其值得。现在一切都恢复正常,我希望这个错误不会再出现 :D

相关内容