From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w__b0ytfAgPZ for ; Tue, 23 Apr 2013 20:09:12 +0200 (CEST) Received: from v6.tansi.org (unknown [87.118.116.4]) by mail.saout.de (Postfix) with ESMTP for ; Tue, 23 Apr 2013 20:09:12 +0200 (CEST) Received: from gatewagner.dyndns.org (84-72-142-22.dclient.hispeed.ch [84.72.142.22]) by v6.tansi.org (Postfix) with ESMTPA id 18CB820DC252 for ; Tue, 23 Apr 2013 20:09:12 +0200 (CEST) Date: Tue, 23 Apr 2013 20:09:06 +0200 From: Arno Wagner Message-ID: <20130423180906.GA19435@tansi.org> References: <3064141.nof2c3QVUk@slipstream> <20130423155213.GA17675@tansi.org> <2467145.0Six7fUZOk@slipstream> <4450852.6uU5N70hFn@slipstream> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4450852.6uU5N70hFn@slipstream> Subject: Re: [dm-crypt] After reboot: "Command failed with code 22: Device /dev/md2 is not a valid LUKS device." List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Tue, Apr 23, 2013 at 06:18:23PM +0200, Jens-Michael Hoffmann wrote: > > > > Just out of curiosity: Is the cipher and key size combination (aes-xts- > > plain64, 256 bit) the default or why did I have not to specify it to create > > the mapping? (IIUC the metadata of plain mappings is not stored?) > > Never mind, I just realized that that was part of the destroyed luks device, > so I guess the default cipher/key size of "cryptsetup create" is used now. Indeed. > Is there perhaps any way for converting the plain mapping into a luks > mapping or would I just have to create a new luks device and copy data > over? While theoretically such a conversion may be possible, you would have to write the converter yourself. So yes, copying to a new LUKS container is the way to go. Arno -- Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718 ---- There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult. --Tony Hoare