I just started exploring this powerful tool to use virtual volumes to encrypt files within a TrueCrypt container but I'm having some issues using this tool.
Man pages might be clear for those with some knowledge already but not for me that is the very first time I'm using it and dealing with virtual volumes and mapping devices etc.
I followed an Arch Linux tutorial:
https://wiki.archlinux.org/index.php/Tc ... ual_volume
And for the first time I used the turotial, everthing went smooth but now I want to see the files I saved inside the virtual volume and I'm not being able to mount the device in the appropriate folder I created for this purpose.
These are the steps I followed the first time I tried the tool:
Code: Select all
# fallocate -l 20M encrypt.tc
# losetup /dev/loop0 encrypt.tc
# tcplay -c -d /dev/loop0 -a whirlpool -b AES-256-XTS
Code: Select all
# tcplay -m encrypt.tc -d /dev/loop0
# mkfs.ext4 /dev/mapper/encrypt.tc
# mount /dev/mapper/encript.tc /mnt/truecrypt/
Then I removed the virtual volume with:
Code: Select all
# umount /mnt/truecrypt
# dmsetup remove foo.tc
# losetup -d /dev/loop0
Now I want to see the file inside the container so I did the following steps:
Code: Select all
# losetup /dev/loop0 encrypt.tc
# tcplay -c -d /dev/loop0 -a whirlpool -b AES-256-XTS
Code: Select all
tcplay -m encrypt.tc -d /dev/loop0
# mount /dev/mapper/encript.tc /mnt/truecrypt/
I know this is because I haven't formatted the filesystem. But if I format it, I'll lose all container content, so where am I going wrong when I want to use again the previously created and encrypted virtual volume?mount: wrong fs type, bad option, bad superblock on /dev/mapper/encrypt.tc,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.