Ubuntu 启动错误:如何从 Ubuntu USB 启动修复加密的 SSD?

Ubuntu 启动错误:如何从 Ubuntu USB 启动修复加密的 SSD?

当我启动仅安装了 Ubuntu 18.04 操作系统的 Dell Xps 13 9350 时,输入 SSD 的加密/解密密码后出现以下错误。

Error: failed to connect to lvmetad. Falling back to device scanning.
Volume group "ubuntu-vg" not found
Cannot process volume group ubuntu-vg.
Warning: failed to connect to lvmetad.Falling back to device scanning.
Reading all physical volumes. This may take a while...
Found volume ubuntu-vg using metadata type lvm2
Warning: failed to connect to lvmetad. Falling back to device scanning.
2 logical volume(s) in volume-group "ubuntu-vg" now active
Gave up waiting
touch: /dev/.initramfs/jasper.log: no such file or directory
/dev/mapper/ubuntu--vg--root: clean 1469151/30154752 files, 119168259/120604672 blocks

我在 USB 记忆棒上刷入了 Ubuntu,并认为可以用它fsck来修复加密磁盘。

由于磁盘已加密,我执行了以下操作:

cryptsetup luksOpen /dev/nvme0n1p3 someName

并输入密码。

现在我尝试运行:

sudo e2fsck /deve/mapper/someName

但我收到了错误:

/dev/mapper/someName is in use:
e2fsck cannot continue, aborting.

我尝试umount安装someName和加密磁盘分区/dev/nvme0n1p3,但它们都没有安装。

我怎样才能用e2fsck或其他方式修复我的磁盘(不丢失我的文件)?

相关内容