I have a 1TB USB disk where I make the first level of backup of a WS2008 R2 file server. The usb is not fully encrypted, just about 700GB. Cobian is running as a service, impersonating Administrator user when doing backups.
It happened that "accidentally" some guy unplugged the USB and then plugged it again. It is not a big deal as everyday I check the backups, but I wanted to make a script to mount the encrypted file just in case before doing the backup. The script works ok if I execute it, but it seems to fail if executed by Cobian with no session opened. Cobian always fails as doesn't find the mounted unit (T:). The script, in a .bat file:
"[fullpath]\truecrypt.exe" /v z:\backups /l t /k [keyfilepath] /a /q /s /c n > "C:\mount.log"
Z is the usb, it always takes that letter when plugging it. Also, mount.log is always empty. I've read the TrueCrypt Known Issues and FAQ and I can't see anything related. Any idea about why does it fail or how to get log messages?
PS: I also tried mounting the encrypted file as Removable Media, with no luck. The USB gets mounted itself as drive, not as removable media.