Essentially the goal for this article is to setup a partition under Linux under which all data that is stored will be encrypted and ‘inaccessible’ to those without the correct key (course with all the password-cracking software out there today, who knows what really is secure). This is actually a very simple task, with instructions scattered over the Internet, so I just simply consolidated the most useful directions I found into the guide below:
Partition Device to encrypt /dev/sda1 Encrypted-Partition Device /dev/mapper/enc Enrypted-filesystem Mount Point /mnt/enc
From now out, /mnt/enc will be automounted and any subsequent read / writes to the filesystem will be automatically encrypted / decrypted so long as /etc/enc-key exists and is registered w/ the partition in /etc/crypttab. I’m sure there are a million other ways to do this (it is Linux afterall), some of which are probably more secure, but this is a simply, quick, setup that should get you started in no time.