Skip to content

Instantly share code, notes, and snippets.

@gustavohenrique
Created May 24, 2017 17:44
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 gustavohenrique/4d17dcdf18564133d4493c5ccabcff98 to your computer and use it in GitHub Desktop.
Save gustavohenrique/4d17dcdf18564133d4493c5ccabcff98 to your computer and use it in GitHub Desktop.
GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=UUID=SDB2_UUID_GOES_HERE:cryptVG root=/dev/mapper/cryptVG-root"
cryptsetup -y -v luksFormat /dev/sda6
cryptsetup open /dev/sda6 cryptroot
mkfs.ext4 /dev/mapper/cryptroot
mkdir /itau
mount /dev/mapper/cryptroot /itau
# Check the mapping works as intended:
umount /itau
cryptsetup close cryptroot
cryptsetup open /dev/sda6 cryptroot
mount /dev/mapper/cryptroot /itau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment