after running the TrueCrypt 7.2 installation script and additionally installing gtk2 (wasn’t installed as dependency…) I can launch the app, but trying to mount a drive I am getting
socket not connected /tmp/.truecrypt_aux_mnt1/control
mount shows:
truecrypt on /tmp/.truecrypt_aux_mnt1 type fuse.truecrypt (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
truecrypt on /tmp/.truecrypt_aux_mnt2 type fuse.truecrypt (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
truecrypt on /tmp/.truecrypt_aux_mnt3 type fuse.truecrypt (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
After googling for a while, it seems that there is an incompatibility between (the old) TC and (the new) fuse version which could be solved either by
a) downgrading fuse or
b) rebuilding TC from source
I don’t want (a) and have failed with (b).
Unfortunately, veracrypt is no longer an alternative since it has stopped to support TC containers or drives.
Why not use luks encryption ? It is linux native and works very well .
I may be too suspicious but I don’t trust truecrypt/veracrypt/bitlocker/etc. that come from big corporation.
Could you help to understand why this problem occurs only in CachyOS and in none of my other distros (OpenSUSE, LMDE, LM, MX, Q4OS)? Has CachyOS applied any mods to fuse or ntfs that aren’t present in other distros?
I would be happy to provide more debugging info, as required.
Since I only need TC to mount (and unmount) already existing TC volumes or files, it seems I don’t need to install it at all.
Instead, I have found the following workaround:
Mount script:
#!/usr/bin/env bash
DIR="/media/truecrypt1"
MAP="truecrypt1"
DEV="sdc"
if mount | grep $DIR > /dev/null; then
echo "$DIR is already mounted; nothing to do."
else
sudo cryptsetup --type tcrypt open /dev/$DEV $MAP
if [ ! -d $DIR ]; then
sudo mkdir -p $DIR
fi
sudo mount -o uid=1000 /dev/mapper/$MAP $DIR/
echo "$DIR was mounted."
fi
Note: instead of –type tcrypt open you can also use tcryptOpen
Unmount script:
#!/usr/bin/env bash
DIR="/media/truecrypt1"
MAP="truecrypt1"
if mount | grep $DIR > /dev/null; then
sudo umount -l $DIR
sleep 0.5
sudo dmsetup remove $MAP
sleep 0.5
sudo cryptsetup close $MAP
else
echo "$DIR is not mounted; quitting."
fi
sudo rmdir $DIR >/dev/null
Using python’s pystray, these scripts can even be put “behind” an icon in the systray.