Jump to content
Read the Funtoo Newsletter: Summer 2023 ×
  • 0

better-initramfs can't find encrypted partition




I wanted to give funtoo a try. However after installing the system as discribed in the wiki using the better-initramfs and an encrypted root partition, I cannot boot the system properly.

After GRUB2 better-initramfs is giving me following message

Mounting /proc...
Mounting /sys...
Create all the symlinks to /bin/busybox
Mounting /dev (devtmpfs)...
Scaning all disks for volume groups.
No volume groups found
Opening encrypted partition 'sdb4' and mapping to '/dev/mapper/enc_root'.
Device /dev/sdb4 doesn't exist or access denied.
'cryptsetup luksOpen --tries 25 --allow-discards /dev/sdb4 enc_root' failed

and the system is dropping to a rescue shell.

GRUB2 menu entry:

insmod part_msdos
insmod ext2
set root=(hostdisk//dev/sdb,msdos3)
search --no-floppy --fs-uuid --set 7b0e976c-833f-4bbc-a71e-51afdf705e77
linux /kernel-genkernel-x86_64-3.18.11-gentoo enc_root=/dev/sdb4 lvm luks root=/dev/mapper/vg-root rootfstype=auto
initrd /initramfs.cpio.gz
set gfxpayload=keep

Via using the rescue shell, I cannot find any devices in /dev/sdX. I am using a M.2 SSD as sdb, do I need any special configuration for that? However, sda is a classical sata hdd which should be found by the system without causing problems.

The boot partition is on sdb3 (ext2) while the rest (root,swap) is on encrypted sdb4 using luks and lvm.

Using the live "cd" and encrypting the device by hand works, however I have to set the logical volumes to "active" by hand - don't know why this is necessary :huh:


Any help appreciated :)

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...