cryptsetup 密码提示之前的延迟

cryptsetup 密码提示之前的延迟

我的系统有一个加密分区。

在启动过程中,屏幕显示消息和 cryptsetup 要求我输入密码之间有相当长的延迟(大约 10 秒)

我可以确认dmesg

[    2.739272] hid-generic 0003:1532:025C.0012: input,hiddev6,hidraw17: USB HID v1.11 Device [Razer Razer BlackWidow V3 Pro] on usb-0000:06:00.3-6.2/input3
[   16.521082] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.

等待密码提示十秒钟,然后输入密码,然后加密,最后安装。

看看这个问题和答案https://askubuntu.com/questions/1029598/xubuntu-18-04-kernel-takes-long-to-boot让我认为它正在尝试查找 SWAP,但我已禁用它sudo swapoff -a,并在 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>
PARTUUID=bce9e3f6-a069-4280-b7fd-901aba6fdd08  /boot/efi  vfat  umask=0077  0  0
UUID=f68b8c29-141b-4bec-8812-c5203be4f684  /boot  ext4  noatime,errors=remount-ro  0  0
UUID=cd4a0015-3306-4c64-988c-83235baca874  /  ext4  noatime,errors=remount-ro  0  0
#/dev/mapper/data-swap  none  swap  defaults  0  0

并确保无法恢复:

cat /etc/initramfs-tools/conf.d/resume
RESUME=none
sudo update-initramfs -uk all

这是我的 blkid 输出:

blkid | grep -v squashfs
/dev/mapper/cryptdata: UUID="UFo5le-jPA4-5k4d-fpV3-7eGx-fTGR-6mU5Bo" TYPE="LVM2_member"
/dev/mapper/data-root: UUID="cd4a0015-3306-4c64-988c-83235baca874" TYPE="ext4"
/dev/nvme0n1p1: UUID="F37A-4778" TYPE="vfat" PARTUUID="bce9e3f6-a069-4280-b7fd-901aba6fdd08"
/dev/nvme0n1p2: UUID="f68b8c29-141b-4bec-8812-c5203be4f684" TYPE="ext4" PARTUUID="8716c6f1-d778-468c-bbb6-9343bd0709ac"
/dev/nvme0n1p3: UUID="715ee16e-ba60-487a-8944-23b3b561b2bb" TYPE="crypto_LUKS" PARTUUID="6e9352f7-350a-4dd8-80bf-c32df82e4842"
/dev/sda1: UUID="74B2149FB214683E" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="22c4e3c1-9133-475b-9717-05ba10c6c1bb"
/dev/sda2: UUID="5410729E10728730" TYPE="ntfs" PARTUUID="494fe213-2eec-4d83-b4c1-c3c5d8d2a6d4"
/dev/sdb1: LABEL_FATBOOT="EFI" LABEL="EFI" UUID="67E3-17ED" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="70928597-313b-4948-a815-bcacaf51a68b"
/dev/sdb2: LABEL="Backup" UUID="62CC1A35CC1A03C7" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="a42a242b-bf47-4c0c-a889-c4f7bccb2caf"
/dev/mapper/data-swap: UUID="65e49edd-8a15-4d30-b966-4df0bcdce12f" TYPE="swap"

在要求我输入密码之前系统正在等待什么?这次可以减少吗?

相关内容