I had to go through this after a Linux live USB failed to auto-detect one of my drives. I was surprised by how hard it is to actually find the definite procedures for this. Hopefully this post saves someone some time.

This is for an LVM volume encrypted all inside a LUKS volume, but I imagine you can just flip the order of the commands for a LVM volume with discrete LUKS volume inside it.

Decrypting and mounting the LUKS volume:

sudo cryptsetup luksOpen /dev/your_luks_volume decrypted_lvm_volume

Displaying the LVM volumes:

sudo lvdisplay # Pick the ones you want to mount, note its LV path

Mount the LVM subvolume:

sudo mkdir /mnt/final_mountpoint
sudo mount [lv_path] /mnt/final_mountpoint
  • Helix 🧬@feddit.de
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    This is for an LVM volume encrypted all inside a LUKS volume, but I imagine you can just flip the order of the commands for a LVM volume with discrete LUKS volume inside it.

    Since you can only mount after opening, the order would still be the same, you’d just have to lsblk first to see which device your crypt partition is on. So lsblkcryptsetup luksOpenmkdirmount.