几个月前,我的前雇主要求我为我的电脑安装全盘加密。我在这个任务上失败了。从那时起,它实际上就是一块砖。
我不需要恢复磁盘的任何内容。没有任何。我只需要我的电脑可以启动并再次用作日常的 Ubuntu 盒子。
我的机器基本信息:
- Ubuntu 22.10
- 内核:5.19.0-31-generic x86_64
- 英特尔 NUC 10i7FNH
- 处理器酷睿i7-10710U
- 内存:32GB
- BIOS FNCML357.0059.2022.1019.1055
- 硬盘:三星 SSD 970 EVO Plus 1TB
在我自己尝试了大约 2 周之后,我被卡住了。这个问题几乎肯定与失败的加密过程有关,但我不知道如何“撤消”它。我什至不需要加密新格式化的磁盘。我只需要它工作。
帮助将不胜感激。
以下是我尝试和学到的东西的重点:
- 直接从我尝试过的硬盘驱动器启动过程:
- 它要求我提供 hd0、gpt1 的密码
- 我输入它,按回车
- 大约 30 秒后,屏幕清屏
- 大约 10 秒后,出现 Ubuntu 启动画面
- 球在引导过程中旋转。
- 大约 2 分钟后,我按 Esc 键查看启动过程,它已进入“已启动网络管理器脚本调度程序服务”。
- 这是它停止的地方。
- 我按 Ctrl-Alt-F2
- 使用我的用户名/密码登录并获得提示。但是没有能力进入GDM。
- 使用 Ubuntu 22.10 直接从 USB 启动:
- 按住 F10 以显示启动菜单
- 选择“尝试/安装 Ubuntu”
- 消息出现:错误:内存不足按任意键继续...
- 请注意,我有 32GB 的 RAM,所以这条消息一定表明发生了其他事情……但我不知道是什么。
- 直接进入内核恐慌。最后一条消息包含:“不同步:VFS:无法在未知块 (0,0) 上挂载根文件系统”
- 使用 Ubuntu 22.10 直接从 USB 启动:
- 按住 F10 以显示启动菜单
- 选择“Ubuntu(安全图形)”
- 与#2 相同
当我出现提示时(#1 之后),我能够收集到以下信息。
命令:
df
输出:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 3259212 2100 3257112 1% /run
/dev/mapper/vgubuntu-root 740856488 32888204 670261328 5% /
tmpfs 16296048 0 16296048 0% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
/dev/mapper/LUKS_BOOT 754136 185736 513500 27% /boot
/dev/nvme0n1p3 130798 5346 125452 5% /boot/efi
tmpfs 3259208 68 3259140 1% /run/user/127
tmpfs 3259208 92 3259116 1% /run/user/1000
命令:
apt list --installed | grep linux-image
输出:
linux-image-5.15.0-56-generic/now 5.15.0-56.62 amd64 [installed,local]
linux-image-5.19.0-31-generic/kinetic-updates,kinetic-security,now 5.19.0-31.32 amd64 [installed,automatic]
linux-image-generic-hwe-22.04/kinetic-updates,kinetic-security,now 5.19.0.31.28 amd64 [installed,automatic]
linux-image-generic/kinetic-updates,kinetic-security,now 5.19.0.31.28 amd64 [installed,automatic]
命令:
iostat -p nvme0n1
输出:
Linux 5.19.0-31-generic (taylors-NUC) 02/26/2023 _x86_64_ (12 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
0.01 0.02 0.03 0.00 0.00 99.94
Device tps kB_read/s kB_wrtn/s kB_dscd/s kB_read kB_wrtn kB_dscd
nvme0n1 0.88 8.99 7.48 0.00 737281 613528 0
nvme0n1p1 0.00 0.09 0.00 0.00 7159 116 0
nvme0n1p2 0.00 0.00 0.00 0.00 264 0 0
nvme0n1p3 0.00 0.07 0.00 0.00 5832 0 0
nvme0n1p5 0.87 8.82 7.48 0.00 722662 613412 0
命令:
uname -a
输出:
Linux taylors-NUC 5.19.0-31-generic #32-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 20 15:20:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
命令:
lsblk
输出:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
[[[loop0 through loop41 for various /snap MOUNTPOINTS]]]
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 768M 0 part
│ └─LUKS_BOOT 253:3 0 766M 0 crypt /boot
├─nvme0n1p2 259:2 0 2M 0 part
├─nvme0n1p3 259:3 0 128M 0 part /boot/efi
└─nvme0n1p5 259:4 0 930.6G 0 part
└─nvme0n1p5_crypt 253:0 0 930.6G 0 crypt
├─vgubuntu-swap_1 253:1 0 32G 0 lvm [SWAP]
└─vgubuntu-root 253:2 0 718.9G 0 lvm /var/snap/firefox/common/host-hunspell
/
命令:
sudo cat /var/log/boot.log | grep failed
输出:
[DEPEND] Dependency failed for Cryptography Setup for 5_crypt.
[DEPEND] Dependency failed for Local Encrypted Volumes.
Starting GRUB failed boot detection...
[ OK ] Finished GRUB failed boot detection.
命令:
sudo cat /var/log/boot.log | grep rypt
输出:
[DEPEND] Dependency failed for Cryptography Setup for 5_crypt.
[DEPEND] Dependency failed for Local Encrypted Volumes.
[ OK ] Reached target Block Device Preparation for /dev/mapper/5_crypt.
[ OK ] Stopped target Block Device Preparation for /dev/mapper/5_crypt.