Score:2

System not mounting encrypted device on boot, can manually use BusyBox

cn flag

With a recent update I was forced to use boot-repair to fix my boot sector.

Previously, when booting to Ubuntu I'd get a prompt for password at boot to decrypt my root partition. Now I get thrown to BusyBox with an unmounted root. On BusyBox I can manually mount the root by issuing: cryptsetup open /dev/sda3 crypt and then mount /dev/vgkubuntu /. Exiting BusyBox after that seems to work and resume the regular boot.

How can I boot and mount root without having to do that manually from BusyBox every time?

Grub setting:

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

Thanks

Score:0
cn flag

Looks like reinstalling the kernel image did it.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.