I am trying to code a bash script that will automate the several tasks related to truecrypt. Tasks are: Creating a truecrypt volume, mounting it, copying a file in filesystem, modifying the file, unmounting the volume.
I have a question regarding creating the truecrypt volume. mounting and unmounting will not be a problem for me.
The command for creating volume is according to manpages:
> truecrypt -c [volume path]
but after this command trucrypt will prompt user to enter several parameters like volume type, size, encryption, hash, password etc.
How can automate all these so that user doesn't need to enter any value? Ok I can use following command for this:
truecrypt –size 200M –type normal –encryption AES –hash SHA-512 –filesystem FAT -c myvolume.tc
But now it asks for password. How to automate that?