Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.