Skip to content

Instantly share code, notes, and snippets.

Last active Mar 10, 2019
What would you like to do?
Mount LUKS encrypted LVM split across disks / partitions
luks encrypted lvm across two disks / partitions
/dev/sda3 and /dev/sdb1
1. open encrypted parts
cryptsetup luksOpen /dev/sda3 crypt1
(enter pass)
cryptsetup luksOpen /dev/sdb1 crypt2
(enter pass)
2. lvm should automatically appear in /dev/mapper
e.g. /dev/mapper/fedora-home
if not can try vgchange -ay
3. do stuff
4. when finished close the lv
lvchange -an fedora
5. close the luks
cryptsetup luksClose /dev/sda3
cryptsetup luksClose /dev/sdb1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment