Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

WARNING!
========
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: http://www.g-loaded.eu/2005/11/10/encrypt-devices-using-dm-crypt-and-luks/

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

1 Answer 1

up vote 2 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

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.