从 17.10 更新至 18.04 后 Luks 出现故障

从 17.10 更新至 18.04 后 Luks 出现故障

我有一台装有 17.10 的笔记本电脑,已更新所有版本。它正在使用全盘加密

我今天刚刚更新到 18.04。一切顺利,最后它要求我重新启动,所以我就照做了。

启动时,系统提示我输入 luks 密码,无法成功。控制台告诉我

No key available with this passphrase.

我觉得一定是内核版本的问题。用以前的内核测试过,没有帮助。

我也对 18.04 和 17.10 live usb 进行了测试,但是没有成功:

cryptsetup luksOpen --test-passphrase /dev/sda5 --verbose --debug
# cryptsetup 1.7.3 processing "cryptsetup luksOpen --test-passphrase /dev/sda5 --verbose --debug"
# Running command open.
# Locking memory.
# Installing SIGINT/SIGTERM handler.
# Unblocking interruption on signal.
# Allocating crypt device /dev/sda5 context.
# Trying to open and read device /dev/sda5 with direct-io.
# Initialising device-mapper backend library.
# Trying to load LUKS1 crypt type from device /dev/sda5.
# Crypto backend (gcrypt 1.7.8) initialized in cryptsetup library version 1.7.3.
# Detected kernel Linux 4.13.0-21-generic x86_64.
# Reading LUKS header of size 1024 from device /dev/sda5
# Key length 64, device size 498616320 sectors, header size 4036 sectors.
# Timeout set to 0 miliseconds.
# Password retry count set to 3.
# Password verification disabled.
# Iteration time set to 2000 milliseconds.
# Checking volume  [keyslot -1] using [none] passphrase.
# Interactive passphrase entry requested.
Enter passphrase for /dev/sda5: 
# Trying to open key slot 0 [ACTIVE_LAST].
# Reading key slot 0 area.
# Using userspace crypto wrapper to access keyslot area.
# Trying to open key slot 1 [INACTIVE].
# Trying to open key slot 2 [INACTIVE].
# Trying to open key slot 3 [INACTIVE].
# Trying to open key slot 4 [INACTIVE].
# Trying to open key slot 5 [INACTIVE].
# Trying to open key slot 6 [INACTIVE].
# Trying to open key slot 7 [INACTIVE].
No key available with this passphrase.

关注此话题https://www.saout.de/pipermail/dm-crypt/2012-September/002735.html检查我的 luks 标头是否健康。没有发现任何可疑的东西。

我当然对密码很有信心。

关于如何进行有什么提示吗?

答案1

你应该尝试回答这个问题:Ubuntu 全盘加密 - 升级至 18.04 后密码错误

它对我有用。

相关内容