lock/backup files

Peter Lebbing peter at digitalbrains.com
Wed Oct 17 11:48:34 CEST 2012


On 17/10/12 07:04, Doug Barton wrote:
> Thanks for the suggestion. The problem is that the truecrypt volume is
> not mounted at boot time, and it's unmounted before shutdown.

If you mount them with a shell command, you could write a wrapper shell script
that you invoke instead of that command, like such:

You previously did

$ truemount /dev/sda3 /encrypted

You write a shell script:

-----8<---cut here--->8-----
#!/bin/sh

truemount "$1" "$2"

find "$2"/'*.lock' -delete
-----8<---cut here--->8-----

Call this shell script mytrue, or such, and from now on use

$ mytrue /dev/sda3 /encrypted

Please don't use this actual script. It needs a whole bunch of extra safeguards
because the find/delete command is so destructive.

Just an idea. Good luck.

Peter.

PS: I haven't ever used truecrypt, I just invented a command name :).

-- 
I use the GNU Privacy Guard (GnuPG) in combination with Enigmail.
You can send me encrypted mail if you want some privacy.
My key is available at <http://digitalbrains.com/2012/openpgp-key-peter>



More information about the Gnupg-users mailing list