Super User is a question and answer site for computer enthusiasts and power users. 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

The file is mounted to /dev/loop0. # losetup /dev/loop0 /path/to/container1. While trying to set up encryption getting error:

root@ubuntu:/# cryptsetup --verbose --cipher "aes-cbc-essiv:sha256" --key-size 256 --verify-passphrase luksFormat /dev/loop0

This will overwrite data on /dev/loop0 irrevocably.

Are you sure? (Type uppercase yes): yes
Command failed with code 22: Invalid argument

How to resolve this problem?

Used tutorial:

share|improve this question
Are you sure? (Type uppercase yes): yes >> MUST be >> Are you sure? (Type uppercase yes): YES – RCola Apr 27 '12 at 13:08
up vote 5 down vote accepted

The program asks you to type yes in Uppercase, just to make sure that you really read the message and you know what you are doing, instead of just "pressing next" of "pressing enter"...

So, you need to type YES to work.

share|improve this answer
Thanks, what a silly option from the authors. – pevik Aug 13 '15 at 10:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .