Last active
March 10, 2019 14:32
-
-
Save andyrbell/7b48a3290a20537ec6577cc843e03a7a to your computer and use it in GitHub Desktop.
Mount LUKS encrypted LVM split across disks / partitions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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