由于最近的一次更新,我被迫使用启动修复来修复我的引导扇区。
以前,当引导到Ubuntu时,我会在引导时得到密码提示,以解密我的根分区。现在,我用一个未挂载的根抛给BusyBox。在BusyBox上,我可以通过发出:cryptsetup open /dev/sda3 crypt和mount /dev/vgkubuntu /手动挂载根目录。在此之后退出BusyBox似乎是可行的,并恢复了常规的引导。
在每次不需要手动从BusyBox启动和挂载root时,我如何引导和挂载根呢?
Grub设置:
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
else
search --no-floppy --fs-uuid --set=root aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
fi
linux /vmlinuz-5.11.0-16-generic root=/dev/mapper/vgkubuntu-root ro quiet splash $vt_handoff
initrd /initrd.img-5.11.0-16-generic谢谢
发布于 2021-07-03 15:58:55
看起来是重新安装内核映像完成的。
https://askubuntu.com/questions/1349270
复制相似问题