Skip to content

Instantly share code, notes, and snippets.

@jlcanela
Last active October 20, 2022 09:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlcanela/19e6d3414e826661a003347c517c6f2c to your computer and use it in GitHub Desktop.
Save jlcanela/19e6d3414e826661a003347c517c6f2c to your computer and use it in GitHub Desktop.
How to mount QUBES LUKS Disks

How to mount QUBES LUKS Disks

Rebuild Kernel to enable dm_crypt module

How to rebuild kernel for WSL2 https://superuser.com/questions/1499008/load-dm-crypt-on-ubuntu-server-18-04-lts-in-windows-subsystem-for-linux-1-or-2

Update LVM config

modprobe dm_crypt
DEVICE=$(blkid | grep LUKS | cut -f 1 -d :)
cryptsetup luksOpen -v $DEVICE qubes_dom0
cd /dev/mapper/
ln -s qubes_dom0 qubes_dom0-pool00_tmeta
vgchange -ay qubes_dom0
vgscan --mknodes
mkdir -p /mnt/media

Mount / Unmount

mount /dev/mapper/qubes_dom0-vm--vault--private /mnt/media
umount /mnt/media

Clean

vgchange -an qubes_dom0
cryptsetup close qubes_dom0

Reference

Troubleshooting: missing module to mount LVM/LUKS disk

Mount luks encrypted partition manually

Other articles:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment