From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mail.saout.de (Postfix) with ESMTP for ; Thu, 6 May 2010 11:02:59 +0200 (CEST) Message-ID: <4BE285BD.2080401@redhat.com> Date: Thu, 06 May 2010 11:02:53 +0200 From: Milan Broz MIME-Version: 1.0 References: <4BE27CC0.1070707@mofokom.biz> In-Reply-To: <4BE27CC0.1070707@mofokom.biz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] LuksResume with key on partition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Warren Crossing Cc: dm-crypt@saout.de On 05/06/2010 10:24 AM, Warren Crossing wrote: > Hello, > > I have copied my key to /dev/sdc3 using dd First, why are you not using file but whole partition? With file you do not need to use -s. (See man page, read is exhausting for key, so it tries use the while device.) > > The key size is 152bytes or 1216bits. -s takes size in bits (multiple of 8 bits only), so 1216. > > Then I luksSuspend and try to resume with > > cryptsetup luksResume -d /dev/sdc3 -s 1216 safe > but I get "No key available with this passphrase" This works for me. Isn't there \n in the end of passphrase? The same syntax for luksOpen should work for luksResume. See man page "notes on password processing". (Also check --debug output, maybe there is some more info.) Milan