Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 7900  / 2 Years ago, mon, september 12, 2022, 6:40:03

Is it possible to decrypt TrueCrypt containers using dm-crypt?



I have some container files created with TrueCrypt and I just wanted to know if it's possible to decrypt them using dm-crypt so I can stop using TrueCrypt and use something more opensource like dm-crypt.


More From » 12.04

 Answers
6

Yes you can do that. I use an external harddrive and mount it on my Ubuntu installations with cryptsetup/dm-crypt. But you need to update your cryptsetup packages to version 1.6 to get this functionality. I used this PPA on older Ubuntu releases.



Mounting a container is no different from mounting an encrypted partition as one would expect:



$ sudo cryptsetup tcryptOpen testcontainer.tc testcontainer


Now a new disk shows up in Nautilus or the launcher and you can mount it via Nautilus or terminal if you like. I mounted the container via Nautilus.



$ mount | grep testcontainer
/dev/mapper/testcontainer on /media/livewire/F29F-27D2 type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)


Don't forget to unmount the filesystem and the container itself after unmounting the filesystem:



$ sudo cryptsetup tcryptClose /dev/mapper/testcontainer


While a GUI only solution to mount such containers and partitions the same way you can mount LUKS partitions would be more comfortable, it is currently not possible as it seems.






Automounting via pam_mount also seems to be not possible at the moment.


[#27017] Monday, September 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lintical

Total Points: 344
Total Questions: 122
Total Answers: 106

Location: Sint Maarten
Member since Mon, Oct 12, 2020
4 Years ago
;