Created
May 24, 2017 17:44
-
-
Save gustavohenrique/4d17dcdf18564133d4493c5ccabcff98 to your computer and use it in GitHub Desktop.
This file contains 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
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