Debian/Ubuntu Tips and Tricks

Debuntu

Debian/Ubuntu Tips and Tricks

How-To: encrypted partitions over LVM with LUKS

Posted by chantra on 12th July 2008

This entry is part 1 of 3 in the series How-To: encrypted partitions over LVM with LUKS

Even though new distros installers tend to support filesystem encryption out of the box, most of the time, it might be interesting to actually understand how it works, mainly when it happens that your system fails to boot :).

Most literature found on the Internet tend to cover how to set up LVM over a partition encrypted with LUKS, this tutorial takes another approach and will explain how to create LUKS encrypted partitions over LVM. The reason for this.... I wanted to have unencrypted partitions :D.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, System | No Comments »

How-To: encrypted partitions over LVM with LUKS — page 2 — encrypting the partitions

Posted by chantra on 12th July 2008

This entry is part 2 of 3 in the series How-To: encrypted partitions over LVM with LUKS

3. Encrypting the partitions

3.1. Filling the partition with random data

Now that we have our partition layout, we need to encrypt /home and /. The first thing we are going to do is to fill those partitions with random data. There is 2 ways of doing it. A fairly fast one or a really slow but efficient one.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, System | No Comments »

How-To: encrypted partitions over LVM with LUKS — page 3 — install and config

Posted by chantra on 12th July 2008

This entry is part 3 of 3 in the series How-To: encrypted partitions over LVM with LUKS

4. Installing the system

we are now going to install the distro over our layout. Start the installer and make sure you choose manual partitioning. Then set up your filesystem like the one on the screenshot.

luks encryption over-lvm ubuntu installer

luks encryption over-lvm ubuntu installer

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, System | 3 Comments »