Installing LUKS on Slackware 11.0 in 3 steps

Last edited

LUKS (Linux Unified Key Setup) can be used to encrypt partitions. Below are a few steps to use LUKS on Slackware 11.0.

Step 1: Use a 2.6-kernel

LUKS requires a 2.6-kernel. By default, Slackware 11.0 installs a 2.4 kernel.

I installed the that comes in /extra.

I installed the following packages: kernel-generic-

Read the README.initrd in the slackware-11.0/extra/linux- directory and build that initrd.

Don't forget to add the new kernel to your grub- or lilo-configuration. Then reboot and watch your kernel messages. Check that your system boots fine with this kernel.

Step 2: Obtaining the software packages

A few packages are needed. Unfortunately, they are not all in the slackware-11.0 repository. So, I took them from slackware-current. Everything seems to work fine, so this is not a big issue.

I installed the following packages: cryptsetup-1.0.5-i486-2.tgz

Step 3: Loading the kernel modules

This is simple:

modprobe dm-mod
modprobe dm-crypt


Now you are ready to use LUKS on your Slackware 11.0 box!

You can use the cryptsetup commands like cryptsetup luksFormat (to create) and cryptsetup luksOpen (to read) your encrypted partitions.


Some online resources:

Happy encrypting!