Script to mount and umount truecrypt volumes

Nils Kassube kassube at gmx.net
Wed Dec 5 10:39:55 UTC 2007


OOzy Pal wrote:
> what is wrong with my script. I want to use to mount my truecrypt
> volume then unmount
>
> ./mtc i --> for install
> ./mtc r --> for removal
>
> #!/bin/bash
>
> if ["$1"=='i']

Make that:

if [ "$1" = "i" ]

> then
> 	sudo truecrypt --mount-options 'rw,umask=000,uid=1000,gid=1000'
> --user-mount -p ddddddd /media/HABLG/temporary /media/LGCrypt

I didn't check that command.

> elif ["$1"=='r']

Make that:

elif [ "$1" == "r" ]

> then
> 	sudo truecrypt -d
> 	sudo umount /media/HABLG

I didn't check this either.

> fi


Nils




More information about the ubuntu-users mailing list