Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
TrueCrypt Command Line: Dismount by Volume Name?
Post Body

I originally asked this question at Superuser. Can anyone here help?

http://superuser.com/questions/517514/truecrypt-command-line-dismount-by-volume-name

Considering the command: TrueCrypt.exe /q /e /v "dummy.tc"

1: Is there a way to dismount dummy.tc from the command line WITHOUT knowing its drive letter?

2: Is there a way to discover, after this command has executed, what drive letter dummy.tc was attached to?

Backstory:

I'm implementing a site-wide TrueCrypt deployment for our hundreds of thumbdrives used throughout the engineering team. It's quite common for a user to have upwards of a half-dozen thumbdrives sticking out of a computer at any given moment, as they need to update multiple machines simultaneously. My test rig has eleven(!) drives hanging out of it right now. That's a hard limit due to drive letter collisions, but the staff thinks it's a reasonable number.

A simple batch script included on every drive will iterate through all the *.tc volumes on a stick and mounts them individually via keyfiles and/or password prompts.

My documentation calls for users to selectively dismount a volume before ejecting the drive it resides on, but it's becoming a headache to keep the stick-volume-driveletter relations straight. I've accidentally slagged a volume already this morning by ejecting the wrong drive, and I have no faith that my users will be any better at keeping things straight.

A simple solution would be to have another batch script on each drive that would find all the volumes on that stick, dismount them, and eject the drive. However, as the volumes are attached to the next available driveletter, and TC only provides a simple exit code, I don't seem to have any way to find out what letter TC used. Dismount all isn't an option either, as it's quite likely a user would have files open on other volumes.

Any TC experts ever encounter a problem like this? Any suggestions?

Author
Account Strength
100%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
137,223
Link Karma
686
Comment Karma
135,694
Profile updated: 3 days ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
11 years ago