LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-23-2015, 11:22 PM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
How to "tune2fs" encrypted TrueCrypt volume


Hi LQ.org! I have external HDD that is encrypted with TrueCrypt. It doesn't even have a partition, it's just /dev/sdd which you have to mount with TrueCrypt. And the filesystem on it is ext4 (it's asked when you create such volume in TrueCrypt). But ext4 can be managed with "tune2fs". Can I do it with encrypted volume? 'Cause when it's mounted, you can't apply tune2fs to it and when it's not it's invisible.
 
Old 03-24-2015, 12:06 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Do you enable the Truecrypt block device with Cryptsetup? If so first load manually it with cryptsetup and then run tune2fs with luks block device having ext4 filesystem.
 
1 members found this post helpful.
Old 03-24-2015, 02:04 PM   #3
mhogomchungu
LQ Newbie
 
Registered: Mar 2014
Posts: 20

Rep: Reputation: Disabled
Quote:
Originally Posted by Mr. Alex View Post
Hi LQ.org! I have external HDD that is encrypted with TrueCrypt. It doesn't even have a partition, it's just /dev/sdd which you have to mount with TrueCrypt. And the filesystem on it is ext4 (it's asked when you create such volume in TrueCrypt). But ext4 can be managed with "tune2fs". Can I do it with encrypted volume? 'Cause when it's mounted, you can't apply tune2fs to it and when it's not it's invisible.
yes you can.

unlock your truecrypt volume normally and then run "mount" command on the termninal to get a list of mounted volumes and you will see an entry like:

/dev/mapper/truecrypt3 on /media/truecrypt3 type vfat (rw,uid=0,gid=0,umask=077)

"/dev/mapper/truecrypt3" path will point to a cleartext version of your truecrypt volume.

run "umount /dev/mapper/truecrypt3" to unmount the volume and then run tune2fs on that path.

when done,mount the path again to "/media/truecrypt3" and that should be it.
 
1 members found this post helpful.
  


Reply


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
[SOLVED] "unmount volume" or "eject volume" to safely remove a flash drive? Gregg Bell Linux - Newbie 15 04-30-2014 03:02 PM
[SOLVED] zuluCrypt,a TRUECRYPT and LUKS based encrypted volume manager mhogomchungu Linux - General 1 03-04-2014 02:18 PM
changing "mute" from 0-volume to "tiny" volume SaintDanBert Linux - Software 3 03-15-2013 05:20 AM
[SOLVED] Help needed to enable "large_file" using tune2fs ZAMO Linux - Server 11 12-07-2010 12:10 AM
BASH:find out if volume "foo"/folder "goo" can be written to SilversleevesX Programming 2 08-28-2010 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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