tcplay-helper lets you easily manage truecrypt containers with tc-play. The script currently supports creating, mounting and unmounting tc-play containers. Usage is simple and the only requirement is that tcplay is installed on the system.
tcplay-helper is still a work in progress. Its been tested primarily with containers formatted as ext4.
$ tcplay-helper create/open/close <container-file> <OPTION>
- "create," "open" or "close" depending on whether you want to create a new container or mount/unmount an existing container
- The container file name
- The OPTION depends on what operation you are performing.
- create [container] [SIZE]
- open [container] [OPTIONAL: user to mount as]
- close [container]
So for example, if I wanted to create a new 1M sized container named container.tc I would do as follows.
$ tcplay-helper create container.tc 1M
Then if I wanted to open it as the user archie I would run execute the following.
$ tcplay-helper open container.tc archie
Alternatively, if I just wanted to open and mount the container as root I can exclude the username argument
And when I'm done playing around and I want to close the container, I simply run:
$ tcplay-helper close container.tc
Oh, and the script needs to be run as root. Don't worry though, the script will remind you if you run it as a regular user.
Just download the tcplay-helper script and place it wherever you want. For easy installation on Arch Linux, tcplay-helper can be installed from the AUR at https://aur4.archlinux.org/packages/tcplay-helper-git/ .
tcplay-helper does not yet handle mounting several containers at once and will always try to mount the container at /mnt/truecrypt regardless of whether another container is already mounted.