Chapter 32. Encrypted drive isn't mounted
-
Current approach
mkdir/mnt/drivenamecryptsetup luksOpen /dev/sda1drivenamemount /dev/mapper/drivename/mnt/drivename -
This worked
From the command line, mount an encrypted drive:
modprobe dm-cryptfdisk -lcryptsetup open /dev/nvme0n1p3filesysNote
This is (im)possible from grub but maybe with different incantations?
-
Even messier way
Some more wizardry from the internet …. Let's hope this is never needed again.
mkdir filesysvgscanecho 'vgdisplay | grep UUID | awk '{print $3}' > foo.txtvgrename $($lt; foo.txt) new_namevgdisplaymodprobe dm-modvgchange -ayvgdisplaylvscanmount /dev/new_name/root filesysNot sure how much, if any, of renaming part of the last part is necessary; maybe I just needed to include /root in the initial mount command? -
Create an encrypted USB drive
sudo cryptsetup luksFormat /dev/sdx