keen4e n00b
Joined: 20 Nov 2021 Posts: 19
|
Posted: Wed Jan 17, 2024 6:32 pm Post subject: Luks encrypted hard drive mounted oddly |
|
|
I have a very peculiar situation, where my genkernel generated initramfs doesn't seem to mount correctly my encrypted hard drive.
I am using a binary distribution kernel, so I should probably switch to dracut as it seems to be the default, but I would still like to understand what could be happening in this situation.
I generate my initramfs with the command
Code: | genkernel --luks initramfs |
When I specify the root parameter in grub to be /dev/mapper/root, I will get an error that the device is not found. Oddly enough if I do not specify it, I end up with my system booting properly after supplying the correct passphrase, except /dev/mapper/root is nowhere to be found. Instead I see /dev/mapper/control.
When I run the command
Code: |
sudo cryptsetup status root
|
I get that the root was opened (which it would have to be otherwise I don't know how the kernel would see what's on the hard drive)
I get the output
Code: |
dev/mapper/root is active and is in use.
type: LUKS2
cipher: aes-xts-plain64
keysize: 512 bits
key location: keyring
device: /dev/sdb3
sector size: 512
offset: 32768 sectors
size: 325445632 sectors
mode: read/write
|
But then again: ls /dev/mapper doesn't see the /dev/mapper/root and only sees /dev/mapper/control, so I am very confused what's going on. |
|