Published on

TrueCrypt 4.3 on FC6 : Build from Zero


This was modified for the instructions given for 4.2 from the (German) blog at

Set up yum

# yum install yum-utils
# yum install rpm-build redhat-rpm-config unifdef

Install Kernel Sources

This install the sources from the rpm downloaded into the current directory. The rpm can be discarded afterwards.

# yumdownloader --source kernel --enablerepo core-source --enablerepo updates-source
# mkdir /usr/src/redhat # due to packaging problem, I guess
# rpm -ivh kernel-$(uname -r).src.rpm


cd /usr/src/redhat/SPECS

rpmbuild -bp --target $(uname -m) kernel-2.6.spec

## Copy dm.h into the right place

cp /usr/src/redhat/BUILD/kernel-2.6.19/linux-2.6.19.(unamep)/drivers/md/dm.h/usr/src/kernels/(uname -p)/drivers/md/dm.h /usr/src/kernels/(uname -r)-$(uname -m)/drivers/md/

## Get and unpack truecrypt sources

Get [truecrypt source](

tar -xfz truecrypt-4.3-source-code.tar.gz -C /tmp

Now, the kernel version is taken care of automatically - no need for a patch file.

## Build truecrypt for real

(this is now painless)

cd Linux


## Install truecrypt module

su - # to get /sbin/modprobe into path


(just accept the defaults - but consider allowing regular users to use truecrypt)

## Load truecrypt module

/sbin/modprobe truecrypt

/sbin/lsmod |grep truecrypt

truecrypt 163588 0 dm_mod 63449 3 truecrypt,dm_mirror,dm_multipath