Create a mountable virtual encrypted hard drive in Windows Vista using TrueCrypt

Last Update: Sep 24, 2024 | Published: Jan 07, 2009

SHARE ARTICLE

TrueCrypt is a free, open-source application for Windows XP and Windows Vista that will create a mountable, virtual, encrypted, hard disk. The encrypted files can be easily transported to mobile media including thumb drives, CDs, external hard drives, etc. The entire process is graphical and can be completed by users of any experience level. TrueCrypt accepts command line parameters which allows you to create a batch file to automatically mount your encrypted virtual hard disk. TrueCrypt will dynamically increase the size of your partition if you run out of drive space.

Install TrueCrypt

The first step is to download and extract TrueCrypt from the project homepage. Double click TrueCrypt Setup to begin.
If you are prompted for an administrator password or confirmation, type the password or provide confirmation. Leave the default installation path and leave all five text boxes selected and click Install.
this image has been lost in time
TrueCrypt will create a system restore point and begin the installation process. It will take several minutes, click Ok.
this image has been lost in time
TrueCrypt Setup will prompt you to review the documentation. The documentation is very thorough and well worth the read, however, for the purposes of this tutorial click No.
this image has been lost in time
In the TrueCrypt Setup dialog, choose Exit.

Create A TrueCrypt Encrypted Volume

Launch TrueCrypt from the Start menu (Start >> All Programs >> TrueCrypt >> TrueCrypt)
this image has been lost in time
Click Create Volume.
this image has been lost in time
Leave the default selection as “Create a standard TrueCrypt Volume” and click Next.
this image has been lost in time
Click Select File…
this image has been lost in time
Create a file at C:’Users’USERNAME’Encryption and click Save.
this image has been lost in time
Click Next.
this image has been lost in time
Leave the default Encryption Algorithm as AES and the Hash Algorithm as RIPEMD-160 and click Next.
this image has been lost in time
Select a size for your volume. I will select 200 MB and click Next.
this image has been lost in time
Enter a password and click Next.
this image has been lost in time
If you do not enter a password 20 or more characters in length, TrueCrypt will suggest that you increase the strength of your password, click Yes.
this image has been lost in time
Leave the Filesystem as FAT, the Cluster as Default, leave the Random Pool check box selected and click Format.
this image has been lost in time
Congratulations, the TrueCrypt volume was successfully created. Click Ok.
this image has been lost in time
On the Volume Created prompt click Exit.
this image has been lost in time
Your volume is completely created. However, before you can begin creating encrypted files, you need to mount the encrypted volume.

Mount a TrueCrypt Encrypted Volume

Select any drive letter and click Select File… navigate to the C:’Users’USERNAME’Encryption file we created previously and click Mount.
this image has been lost in time
Enter your password and click Ok. Your new encrypted volume should be visible in your Computer.
this image has been lost in time
Anything you save to this newly mounted drive will be encrypted and stored in the C:’Users’USERNAME’Encryption file. If you would like to transport your encrypted files, just take the C:’Users’USERNAME’Encryption file with you. To unmount your encrypted drive click Unmount.
In order to automatically mount your hard drive with a script, copy the truecrypt.sys and truecrypt-x64.sys files into C:’Windows. Open Notepad (Start >> All Programs >> Accessories >> Notepad) and copy and paste the following into the file:

​@echo off
cls
Set /P pw=”Password: “
truecrypt /v C:'Users'USERNAME'Encryption /l i /m /a /p %pw% /q
cls

Remember to replace “USERNAME” with your username. Save the file as C:’Windows’System32’Encryption.bat and whenever you launch the batch file and enter your password, your encrypted volume will mount.
Note: Your password will be displayed briefly as you type it. The most secure way to mount your drive would be to manually do it through TrueCrypt.

Recent Security Forum threads

Got a question? Post it on our Security Forums!

SHARE ARTICLE