Skip to content

Instantly share code, notes, and snippets.

@andyrbell
Last active March 10, 2019 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyrbell/7b48a3290a20537ec6577cc843e03a7a to your computer and use it in GitHub Desktop.
Save andyrbell/7b48a3290a20537ec6577cc843e03a7a to your computer and use it in GitHub Desktop.
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
/dev/mapper/fedora-root
etc
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