启动时间长,未找到 /etc/initramfs-tools/conf.d/resume

启动时间长,未找到 /etc/initramfs-tools/conf.d/resume

安装硬盘后,我发现 ubuntu 20.04 的启动时间相对较长。在我的 PCI gen4 nvme 上,systemd-analyze

Startup finished in 10.499s (firmware) + 3.259s (loader) + 4.428s (kernel) + 8.384s (userspace) = 26.572s 
graphical.target reached after 8.379s in userspace

有时会超过 31 秒!

我的/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/nvme0n1p2 during installation
UUID=db3bac2a-f735-4b0d-a6b4-dc99fdf1a60b /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=F40C-278D  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

###/dev/sda1    /work    ext4    defaults    0    1
UUID=531b1b74-891f-4f18-a288-cba9990bd31d /work ext4    defaults    0    0

然而由于错误的恢复设备,启动速度慢,内核加载时间长 我尝试编辑 /etc/initramfs-tools/conf.d/resume,但找不到。当我创建文件并遵循其余建议时,没有任何改善。

看到各个论坛上相互矛盾的信息,我完全糊涂了。有人能帮忙吗?

编辑1:随机信息:sudo blkid | grep swap没有给我任何输出!

sudo blkid0输出如下

/dev/nvme0n1p2: UUID="db3bac2a-f735-4b0d-a6b4-dc99fdf1a60b" TYPE="ext4" PARTUUID="2aaf1779-74a9-4b17-adb2-e212f3627f66"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/nvme0n1p1: UUID="F40C-278D" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="9008c0d4-bf69-46d7-8343-1f9429767ca2"
/dev/sda1: UUID="531b1b74-891f-4f18-a288-cba9990bd31d" TYPE="ext4" PARTUUID="80fb880a-b674-43ed-af6e-c77bd1447040"
/dev/loop8: TYPE="squashfs"
/dev/loop9: TYPE="squashfs"
/dev/loop10: TYPE="squashfs"
/dev/loop11: TYPE="squashfs"
/dev/loop12: TYPE="squashfs"
/dev/loop13: TYPE="squashfs"

相关内容