就我而言,启动消息如下所示。交换分区已删除。
Gave up waiting for suspend/resume device
/dev/sda4 ... ...
[***] A start job is running for dev-disk-by\...\...\...\.device
...
...
...
首先,查看您的fstab文件的内容,
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/sda4 during installation
UUID=8c1977eb-ac90-426b-bc9b-a7fb2ec8d760 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda3 during installation
UUID=00fd67-123DE-4b98-aa17-2d4025aed54 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
然后您会注意到“安装期间交换在/ dev / sdax上”。
重新创建已删除的分区(例如fdisk或Gparted),然后使用此命令查找该分区的新uuid。
ls -l /dev/disk/by-uuid/
输出:
total 0
lrwxrwxrwx 1 root root 10 févr. 19 07:18 00151dcd-2bf5-4b98-aa17-8f40ef4cfd86 -> ../../sda4
lrwxrwxrwx 1 root root 10 févr. 19 07:18 6C5A1AC45A1A8B4A -> ../../sda2
lrwxrwxrwx 1 root root 10 févr. 19 07:18 8c1977eb-ac90-426b-bc9b-a7fb2ec8d760 -> ../../sda3
lrwxrwxrwx 1 root root 10 févr. 19 07:18 C064106664106188 -> ../../sda1
通过在fstab文件中复制/粘贴足够的交换uuid,使用上一条命令显示的正确uuid更新fstab。然后重新启动,应该可以解决问题。
quiet
和splash
选项启动。临时编辑GRUB条目并在没有这些选项的情况下启动。特别要注意停顿的消息以及紧随其后的消息。