Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The title says it all. Basically, I want to unmount a TrueCrypt volume when the USB stick with the keyfile on it is removed (and, ideally, shut down the computer as well).

There used to be a program that does that (Truemounter but it seems to be abandoned and apparently didn't work properly under Windows 7 anyway.

Any ideas?

share|improve this question

migrated from Mar 6 '10 at 18:30

This question came from our site for system and network administrators.

If all else fails, you can write a script/program that periodically checks for existence of the keyfile (cmd.exe, Python, etc). – grawity Mar 6 '10 at 20:38

USB Safely Remove has such a feature: it can start a program when a USB device is removed.

Another USB Safely Remove feature that distinguishes it from similar software is starting any applications not only after connecting a device, but also before removing it. The autorun feature allows you to set up data backup before disconnecting a removable hard drive, to run Total Commander with the contents of the pen-drive, automatically unmount an encrypted TrueCrypt drive before disconnecting the USB media, etc.

alt text

USB Safely Remove works great on Windows 7 (also in 64-bits).

share|improve this answer
+1 Nice. I never even knew anything like this existed. – Kez Mar 6 '10 at 18:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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