Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Luks encrypted hard drive mounted oddly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
keen4e
n00b
n00b


Joined: 20 Nov 2021
Posts: 19

PostPosted: Wed Jan 17, 2024 6:32 pm    Post subject: Luks encrypted hard drive mounted oddly Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum