initramfs 中缺少 Cryptmount / setup

initramfs 中缺少 Cryptmount / setup

所以愚蠢的我决定执行“apt autoremove”,它决定删除 cryptmount,如果我更加警惕的话,就会从卸载过程中出现的错误消息中意识到我应该不管它...但是看到根据 apt 它“不再需要”,我以为它是在我刚刚执行的上一个 apt dist-upgrade 期间安装的新版本。

无论如何,再次重新启动后...我收到类似的错误......

warning failed to connect to lvmetad. falling back to device scanning. alert /dev/mapper/ubuntu--vg-root does not exist 


After showing the boot screen for about 30 seconds, a busybox shell pops up:

BusyBox v.1.21.1 (Ubuntu 1:1.21.1-1ubuntu1) built-in shell (ash) Enter 'help' for list of built-in commands.

(initramfs)

Typing exit will display more information about the failure before bringing us back to the same busybox shell:

Gave up waiting for root device. Common problems:
  - Boot args (cat /proc/cmdline)
    - Check rootdelay= (did the system wait long enough?)
    - Check root= (did the system wait for the right device?)
  - Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/mapper/ubuntu--vg-root does not exist. Dropping to a shell! 

BusyBox v.1.21.1 (Ubuntu 1:1.21.1-1ubuntu1) built-in shell (ash)    Enter 'help' for list of built-in commands.  

(initramfs)

which now complains that the /dev/mapper/ubuntu--vg-root root partition (which uses LUKS and LVM) cannot be found.

无论如何,我可以从 Grub 进入高级模式...然后加载到以前的内核版本?...并且它仍然有 cryptmount 文件,我可以正常启动我的系统。

如果我 apt update | upgrade | dist-upgrade,它会说我的系统已完全更新...即使我加载了一个较旧的内核。

现在,在花了几个小时用 Google 搜索并试图纠正该问题但没有成功之后......突然,Grub 中的高级功能来加载早期的内核......(几天前我不得不这样做才能进入恢复模式来重置我的密码,因为我已经有一段时间没有使用这台笔记本电脑了)。

无论如何,我确实遇到了一些需要执行的操作,update-initramfs -u 这些操作通过一个大脚本运行……它似乎做了一些事情。重新启动后,它仍然无法加载 LVM 文件,因为它找不到……就像它仍然缺少那些文件一样。

有人有解决上述问题的解决方案吗?

如果以上内容造成混淆,我深感抱歉。

我可以通过在启动时通过早期内核加载来访问我的文件和内容,所以我不是太担心,而且下次发布另一个发行版时它可能就会自行修复......

也许有人甚至建议更新 grub2 以加载早期内核而不是较新的内核。

提前致谢!

相关内容