Mount an encrypted partition on boot
Hint: Always replace "< .... >" with the actual value
- Find out which name the partition has
$ lsblk
- Receive UUID of device
$ sudo cryptsetup luksUUID /dev/<result-of-lsblk-command> (e.g. sdb, sda etc.)
- Add new line to crypttab
$ sudo nano /etc/crypttab
=> New line: "<result-of-lsblk-command> /dev/disk/by-uuid/<result-of-uuid-coomand> none luks"
- Create directory where partition should get mounted
$ sudo mkdir /mnt/my_encrypted_partition
- Add new line to fstab
$ sudo nano /etc/fstab
=> New line: "/dev/mapper/<result-of-lsblk-command> /mnt/my_encrypted_partition ext4"
- Reboot