Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-04-2007, 06:26 PM   #1
Senior Member
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,452

Rep: Reputation: 85
putting ext2 or ext3 on a truecrypt volume

How can I change the filesystem of a truecrypt volume to ext3 or ext2? I tried it, but after that, it would not mount anymore. I also tried not giving the truecrypt volume a filesystem, but I still could not get put ext2 or ext3 on a truecrypt volume. Most of the instructions I found for doing formatting with another filesystem were for windows, not linux.

Last edited by fakie_flip; 03-04-2007 at 06:27 PM.
Old 03-05-2007, 07:45 PM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
This is how you create a True Crypt volume on /dev/hda3.
truecrypt -c /dev/hda3
Answer the questions. Once all of the questions have been answered it will create the True Crypt volume on /dev/hda3.

This is how you map the True Crypt volume whether it has a file system or not.
truecrypt -N 3 /dev/hda3
It will prompt you for the password. When you enter the password it will map /dev/hda3 to a virtual device named /dev/mapper/truecrypt3.

Once the partition is mapped to a True Crypt virtual device you can format it.
mkfs -t ext3 /dev/mapper/truecrypt3
If the partition has already been formatted via a True Crypt virtual device then in the future you just map the partition and mount it.
truecrypt -N 3 /dev/hda3
mount /dev/mapper/truecrypt3 /home
The man page for True Crypt is helpful. I mainly used the examples at the end of the man page to figure out how to work with True Crypt.
Old 03-21-2007, 02:50 PM   #3
Senior Member
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,452

Original Poster
Rep: Reputation: 85
Thanks for the info, but I want to know how to put ext2 (not ext3 because of security problems with journaled filesystems) on a virtual encrypted disk within a file, not a real partition.

I did

mk2fs /dev/mapper/truecrypt0

but after that, the file would not mount.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with running a Truecrypt volume as user, not root please eric11210 Linux - Software 4 01-09-2007 09:23 PM
can't mount truecrypt volume on FC4 obmuc Linux - Software 0 11-25-2006 04:03 PM
EXT2 -fs warning (device sda1): ext2_fill_super:mounting ext3 filesystem as ext2 snakeo2 Linux - Newbie 6 11-19-2006 07:35 PM
Is a Truecrypt volume limited by filesize limits? jgombos Linux - Software 0 11-12-2006 09:39 AM
Problems mounting Truecrypt volume in Suse 10 Leslie Mackeen Linux - Security 2 06-16-2006 01:23 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration