Truecrypt and EXT4 2009/06/02
With Ubuntu 9.04 (jaunty) the new filesystem ext4 is part of the platform. The Truecrypt GUI (6.1a) does not allow to select for ext4 as filesystem. The challenge was to create the ext4 filesystem using as much of the GUI and do not need to bother about command line options. I’m using a complete device for the Truecrypt container, but the solution should work on volumes and file containers as well.
To do so I’ve taken the following steps to create the Truecrypt container without a filesystem:
- Start the Truecrypt GUI
- Click on Create volume

Volume Creation Wizard
- Select Create a volume within a partition/drive
- On the next page select the Volume Type (I opt for the Standard volume)
- On the next page Select the Device
By doing so, Truecrypt shows the following message. - Click Yes on using a device
- Enter your password in the popup to allow root privileges for Truecrypt
- Select the Encryption Algorithm (I opt for the defaults)
- On the Volume Password set your password and/or keyfiles (I opt for a key file only at this point)
- On the next page (Large files) I selected larger then 4GB as I have several VMWare/VirtualBox images that are larger then 4GB.
- On the next page (Format Options) select None as ext4 is not in the list
- On the next page (Volume Format) move the mouse around before clicking Format
- Click Yes on the confirmation button to format the volume
- For my 320GB drive the format will take about 80 minutes
- So time for a break…
- On the Volume Created page click Exit

Truecrypt main panel

Confirm using volume
Now the ext4 filesystem can be added. I used the Truecrypt GUI for the first few steps:
- On the main panel of Truecrypt click Select Device and select the truecrypt drive
- Click Mount on the main panel
- Expand the section with options
- Check the Filesystem: “Do not mount” option as there is no filesystem yet

Truecrypt mount options
Enter the password and/or add the keyfiles and click OK
- Now the device is mounted so the filesystem can be created

Mounted Truecrypt device
From here it is the command line interface to get a filesystem installed, the steps:
- Goto to a terminal window
- Type ls /dev/mapper , the output should show truecrypt1
- Create the filesystem with sudo mkfs.ext4 /dev/mapper/truecrypt1 which should not take that long
Note that you must not make the filesystem on the underlaying device like /dev/sdb as it removes the Truecrypt container.
Go back to the Truecrypt GUI and perform the last steps to complete and verify are:
- Dismount the encrypted device
- Click Select Device and locate the device
- Click Mount and enter the password and/or key file locations, and don’t change the Options, and click OK
- The encrypted device will be mounted by default to /media/truecrypt1
Leave a Reply
You must be logged in to post a comment.