Score:0

dual boot with encripted partitions, grub does not show the second system

ad flag

I have two ubuntu system installed. Parititioned my disk into 4 partitions

- nvme0n1p1 /boot
- nvme0n1p2 / (encrypted)
- nvme0n1p3 /boot
- nvme0n1p4 / (encrypted)

But I am able to boot only into one system, the second does not show in the grub menu.

I tried restore-grub

and boot using

linux (hd0,gpt1)/vmlinuz-xxx root=/dev/nvme0n1p2
initrd initrd.imb-xxx 
boot

but with no luck.

I get into initramfs and kernel panic

mount: mounting /sys on /root/sys failed: No sch file or director
mount: mounting /proc on /root/proc filled: no such file or directory
Kernel panic - ....
...

Any idea, what can i do? thanks

oldfred avatar
cn flag
I see gpt, but no ESP - efi system partition? Are you booting in old BIOS boot mode from early 1980's? If using gpt with BIOS, you also need a tiny 1 or 2MB unformatted partition with bios_grub flag. Do both /boot partitions have grub.cfg files? If second does, then you can copy boot stanza into working install's 40_custom. Or add a configfile entry to load other install's grub.cfg https://askubuntu.com/questions/344125/how-to-add-a-grub2-menu-entry-for-booting-installed-ubuntu-on-a-usb-drive
I sit in a Tesla and translated this thread with Ai:

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.