Ubuntu 20.04 在联想 Thinkpad t14 上死机

Ubuntu 20.04 在联想 Thinkpad t14 上死机

我查看了日志并看到了以下内容: 在此处输入图片描述

如果我理解这一点,系统是否会尝试交换到加密交换文件?我的硬盘已加密,并且我设置了一个常规交换文件...

# /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>
/dev/mapper/vgubuntu-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/nvme0n1p2 during installation
UUID=ebdb51fe-2271-4425-951a-825066ef4e7b /boot           ext4    defaults        0       2
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=0441-297F  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/vgubuntu-swap_1 none            swap    sw              0       0
/swapfile swap swap defaults 0 0

我刚刚又遇到了一次随机冻结(第一次冻结后 7 天),因此我不得不重置我的笔记本电脑,并出现以下日志:

18:52:30 kernel: sof-audio-pci 0000:00:1f.3: error: no reply expected, received 0x0
18:52:30 gdm-session-wor: gkr-pam: unable to locate daemon control file
18:52:20 wpa_supplicant: nl80211: Failed to create a P2P Device interface p2p-dev-wlp0s20f3
18:52:20 kernel: iwlwifi 0000:00:14.3: BIOS contains WGDS but no WRDS
18:52:19 systemd: Failed to start Cryptography Setup for cryptswap.
18:52:19 systemd-cryptse: crypt_init() failed: Block device required
18:52:19 kernel: sof-audio-pci 0000:00:1f.3: error: no reply expected, received 0x0
18:52:19 systemd: Failed to start Cryptography Setup for cryptswap.
18:52:19 systemd-cryptse: crypt_init() failed: Block device required
18:52:18 systemd: Failed to start Cryptography Setup for cryptswap.
18:52:18 systemd-cryptse: crypt_init() failed: Block device required
18:52:18 kernel: ACPI Error: Aborting method \_SB.HIDD._DSM due to previous error (AE_AML_OPERAND_TYPE) (20190816/psparse-529)
18:52:18 kernel: crypt_init() failed: Block device required
18:52:18 kernel: Device /cryptswap doesn't exist or access denied.
18:52:18 kernel: Failed to start Cryptography Setup for cryptswap.
18:52:18 kernel: Initramfs unpacking failed: Decoding failed

# /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>
/dev/mapper/vgubuntu-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/nvme0n1p2 during installation
UUID=ebdb51fe-2271-4425-951a-825066ef4e7b /boot           ext4    defaults        0       2
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=0441-297F  /boot/efi       vfat    umask=0077      0       1
/swapfile swap swap defaults 0 0

添加 /etc/crypttab:

nvme0n1p3_crypt UUID=bca86e55-cc12-4b54-ba1e-61856cc8db55 none luks,discard
cryptswap /cryptswap /dev/urandom swap

答案1

去除

/dev/mapper/vgubuntu-swap_1 none            swap    sw              0       0

行来自/etc/fstab。它设置了一个可能不存在的加密交换。

答案2

由于我的交换未加密,因此我删除了以下行:

cryptswap /cryptswap /dev/urandom 从 /etc/crypttab 文件中交换。

相关内容