Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

I've got a luks volume setup and mounted, and when not in use I suspend it with cryptsetup luksSuspend so it cannot be accessed. But if I forget it's suspended and try to do any kind of file access in the mounted directory, the process just hangs, instead of failing immediately. CTRl-C doesn't work to kill it, and CTRL-Z doesn't work to put it in the background. Even sudo kill -9 doesn't help.

Is there a way to make these commands fail fast when the volume is suspended?

If it's relevant, the volume is setup on a loop device backed by a file.

share|improve this question
up vote 1 down vote accepted

Suspending all accesses until the passphrase is entered again is the whole point of luksSuspend. If you want to ensure that the encrypted device is not in use, call luksClose.

share|improve this answer
Fair enough. Thanks. – sh1ftst0rm Jan 22 '13 at 0:35

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.