What is EXT3 / truecrypt?
Truecrypt is a popular Encryption package available under Microsoft Windows and Linux, In this tutorial i shall be using Linux to setup a Truecrypt volume on a hard drive and format with Ext3 inside the Truecrypt volume.
Ext3 is probably the most used Filesystem under linux, However when attempting to encrypt a partition with Truecrypt it often only offers FAT Filesystem or NONE. this tutorial will show you how to create an Encrypted Ext3 partition using Truecrypt.
What are the Benefits
While it is easy to mount a FAT Filesystem under Linux, i prefer Ext2/Ext3 partitions under Linux, in my experience they are more stable than FAT, plus why not use a Filesystem under Linux which was specifically developed for the it.
Running TRUECRYPT
For this tutorial i will assume you already have Truecrypt installed, if you do no i suggest you visit www.truecrypt.org/ .
Creating a Truecrypt Volume
The first thing to do is create a volume with Truecrypt using:
Select 1: for a standard volume type
Here we have selected our Device "/dev/hda3" which we intend to encrypt, Select 2) None for the Filesystem because we eventually want to format the encrypted space with Ext3 instead of FAT.
Enter volume size (bytes - size/sizeK/sizeM/sizeG): 1M
Hash algorithm:
1) RIPEMD-160
2) SHA-1
3) Whirlpool
Select [1]:1
Encryption algorithm:
1) AES
2) Blowfish
3) CAST5
4) Serpent
5) Triple DES
6) Twofish
7) AES-Twofish
8) AES-Twofish-Serpent
9) Serpent-AES
10) Serpent-Twofish-AES
11) Twofish-Serpent
Select [1]:1
Above we have now selected our Hash and Encryption algorithms, and the volume size (you may want more than what ive chosen in example!....alot more!).
And finally we enter a volume password, and Truecrypt asks for some random data for generating keys etc.
formatting the new truecrypt volume
Now that the Device has been Encrypted with a Truecrypt volume, we now need to mount it and format the space inside as an Ext3 Partition so that it has a useable filesystem:
The above command will ask you for your Truecrypt password to mount the encrypted volume, and then format the partition for you.
Example:
Finally once you have finished partitioning, you can mount your Ext3 formatted Truecrypt volume with:
And enter your password. You can then use your mounted folder like a normal folder, if the system reboots you will need to re-mount the folder.
you can also choose to dismount the volume manually at any time using:
omit any device names to dismount all devices/volumes.