just a logo :)



Installing Mint into an encrypted partition
Entry Nr. 2739, by user 1
Debian supports the very handy option to install into an encrypted partition. Unfortunately, as of Mint 13, it doesnt include that functionality. This tutorial shows how to do it manually:


Short summary:

* Boot into the Mint CD

* Create a boot and a system partition. I use gparted for that
The tutorial assumes that boot is on /dev/sda1 and system is on /dev/sda2
I use a 256mb ext2 partition for /boot.

* apt-get install -y cryptsetup lvm2
* modprobe dm-crypt

* dd if=/dev/urandom of=/dev/sda2 bs=1M
* cryptsetup luksFormat --cipher aes-xts-plain64 --key-size 512 --verify-passphrase /dev/sda2
* cryptsetup luksOpen /dev/sda2 system
* mkfs.ext2 /dev/sda1
* mkfs.ext4 /dev/mapper/system

* Install Mint.

* mount /dev/mapper/system /mnt
* mount /dev/sda1 /mnt/boot
* mount -o bind /dev /mnt/dev
* mount -t proc proc /mnt/proc
* mount -t sysfs sys /mnt/sys

* chroot /mnt /bin/bash
* apt-get update
* apt-get -y dist-upgrade
* apt-get -y autoremove
* apt-get clean
* apt-get install -y cryptsetup lvm2

* put an entry in /etc/crypttab. Use "ls -l /dev/disk/by-uuid to find the uuid of system. Then make an entry like this:
* system UUID=... none luks

* update-initramfs -u -k all

reboot :)