Ubuntu 20.04.2 LTS-升级后联想 X390 上没有 luks 密码提示

Ubuntu 20.04.2 LTS-升级后联想 X390 上没有 luks 密码提示

我认为,在对装有 Ubuntu 20 的 Lenovo X390 使用 apt-get upgrade 进行一些升级后,我不再收到任何用于解密磁盘的密码提示。我只看到 Lenovo 徽标,无法按任何键,输入密码并按回车键也不起作用。启动过程卡在 Lenovo 徽标上,而密码提示通常在徽标下方。

如果我从 USB 启动 Ubuntu,我就能成功解密分区,并且能够备份数据。

我尝试 chroot 该分区并执行了https://feeding.cloud.geek.nz/posts/recovering-from-unbootable-ubuntu-encrypted-lvm-root-partition/

“update-initramfs -c -k all” 执行无任何故障,未加密启动分区上的一些文件也得到更新。但重启后,我仍然看不到解密驱动器的密码提示。

您还有其他想法(除了重新安装 Ubuntu)来解决此问题吗?

我也不知道如何打开 grub 菜单来修改启动参数。在第一个联想徽标后,我尝试按 shift 和 esc,然后按 Enter 来选择例如另一个启动设备或进入 bios。

我甚至可以在不解密磁盘的情况下打开 grub 菜单吗?这对我有帮助吗?

以下是此行为发生之前我更新的软件包列表:https://pastebin.com/PuK7GYcf

/media/root/a5a282c7-9739-4c8e-9c46-cdde340c7f98/etc/crypttab
nvme0n1p3_crypt UUID=9d00eee1-b7dc-4262-bb65-cfbaeea9ce87 none luks,discard

/media/root/a5a282c7-9739-4c8e-9c46-cdde340c7f98/etc/cryptsetup-initramfs/conf-hook
#
# Configuration file for the cryptroot initramfs hook.
#

#
# KEYFILE_PATTERN: ...
#
# The value of this variable is interpreted as a shell pattern.
# Matching key files from the crypttab(5) are included in the initramfs
# image.  The associated devices can then be unlocked without manual
# intervention.  (For instance if /etc/crypttab lists two key files
# /etc/keys/{root,swap}.key, you can set KEYFILE_PATTERN="/etc/keys/*.key"
# to add them to the initrd.)
#
# If KEYFILE_PATTERN if null or unset (default) then no key file is
# copied to the initramfs image.
#
# Note that the glob(7) is not expanded for crypttab(5) entries with a
# 'keyscript=' option.  In that case, the field is not treated as a file
# name but given as argument to the keyscript.
#
# WARNING: If the initramfs image is to include private key material,
# you'll want to create it with a restrictive umask in order to keep
# non-privileged users at bay.  For instance, set UMASK=0077 in
# /etc/initramfs-tools/initramfs.conf
#

#KEYFILE_PATTERN=

/media/root/a5a282c7-9739-4c8e-9c46-cdde340c7f98/etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

相关内容