up vote 3 down vote favorite
1
share [g+] share [fb]

I would like my TrueCrypt virtual drive to act as a newly inserted USB drive or CD/DVD by executing commands in the partition's autorun.inf file.

I've read several suggestions online including creating a .bat file or installing software so Windows will think this is a CD, but I'd like to know the easiest and least intrusive way to pull it off. i.e. I want to keep from installing or messing with the host computer as much as possible, as this is intended to be a fully portable drive.

EDIT: To clarify, I technically have TWO separate autorun.inf files on my flash drive: there is one in the base directory of the USB drive which correctly prompts me to run TrueCrypt as soon as I insert the drive, and there is a second autorun.inf that is inside the encrypted container.

The second autorun.inf file resides in the base directory of the virtual drive created after TrueCrypt mounts (actually, this inf file was created by LiberKey, which is the portable UI I'm using inside the container). I would like to be able to autorun this second inf file as soon as the virtual drive is mounted.

link|improve this question

feedback

2 Answers

up vote 1 down vote accepted

There is an answer here:

http://www.ericsprojects.com/?p=102

Seems to be an easy way to do it. Just create a file, place the code from article into it and modify drive letter if needed. Shouldn't take more than 5 minutes.

link|improve this answer
Although this information is helpful for those who may have autorun issues after inserting the USB drive, my question is actually concerning what happens AFTER the drive has been inserted and TrueCrypt has mounted the virtual drive. – NoCatharsis Mar 15 '10 at 19:23
feedback

Microsoft has a utility (aka "PowerToy") for Windows called TweakUI that allows you to enable or disable autoplay on your drives (under My Computer | Autoplay | Drives in the left pane of the TweakUI program). I just mounted a TrueCrypt volume and it's visible in TweakUI -- so it looks like I could autoplay on enable it). Sorry I can't test it further because I don't have an autorun.inf file to play with).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.