6

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/

1
  • 2
    Are you sure? (Type uppercase yes): yes >> MUST be >> Are you sure? (Type uppercase yes): YES
    – J.Olufsen
    Apr 27, 2012 at 13:08

1 Answer 1

8

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.

0

You must log in to answer this question.

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