Return-Path: Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by mail.saout.de (Postfix) with ESMTP for ; Fri, 3 Sep 2010 06:25:01 +0200 (CEST) Received: from e.earth.lavabit.com (e.earth.lavabit.com [192.168.111.14]) by karen.lavabit.com (Postfix) with ESMTP id 069DB11B946 for ; Thu, 2 Sep 2010 23:25:01 -0500 (CDT) Received: from 10.10.12.86 (94-76-194-214.static.as29550.net [94.76.194.214]) by lavabit.com with ESMTP id HL4O2HT63LCM for ; Thu, 02 Sep 2010 23:25:01 -0500 From: PsiStormYamato Content-Type: multipart/alternative; boundary="=-d+YOEvMmz95sD5gAnAhj" Date: Fri, 03 Sep 2010 00:24:46 -0400 Message-ID: <1283487886.3576.31.camel@shadowtek.localdomain> Mime-Version: 1.0 Subject: [dm-crypt] Can't add a new key, "No key available with this passphrase". List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "dm-crypt@saout.de" --=-d+YOEvMmz95sD5gAnAhj Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit I'm trying to add a keyfile that I created to a new keyslot for my encrypted swap partition, but I keep getting the error "No key available with this passphrase". I've never done this before, so I might be missing something simple, but I can't get it to work by manually entering a passphase either. Is there something else that has to be done to "enable" a keyslot before a key can be added to it? That's the only other thing that I can think of. # Tried with keyfile. root@ubuntu:~# cryptsetup luksAddKey --key-slot 1 /dev/sda5 -d /media/Ubuntu_10_04/etc/cryptkeys/swap.key No key available with this passphrase. # Tried with manual passphrase. root@subuntu:/etc/cryptkeys# cryptsetup luksAddKey --key-slot 1 /dev/sda5 Enter any passphrase: No key available with this passphrase. # luksDump root@ubuntu:/etc/cryptkeys# cryptsetup luksDump /dev/sda5 LUKS header information for /dev/sda5 Version: 1 Cipher name: aes Cipher mode: cbc-essiv:sha256 Hash spec: sha1 Payload offset: 2056 MK bits: 256 MK digest: 25 a3 74 7e 25 fd a4 a6 18 b7 a7 63 da 95 68 26 6c da 55 4c MK salt: df 87 4a c3 0d 93 5a a9 3a 49 71 33 d4 4a ba bc ca b7 ef d6 cd 89 41 16 6c eb 61 5d 2a 73 2b a5 MK iterations: 10 UUID: bb827496-8fe5-4c55-9b76-1373d850c548 Key Slot 0: ENABLED Iterations: 173012 Salt: 74 03 b2 a6 3c 36 95 28 bb 7f 1b e3 fc ec 84 14 6f ee 17 fc 63 7a 33 53 60 5e 43 9f 8a dd 1a 18 Key material offset: 8 AF stripes: 4000 Key Slot 1: DISABLED Key Slot 2: DISABLED Key Slot 3: DISABLED Key Slot 4: DISABLED Key Slot 5: DISABLED Key Slot 6: DISABLED Key Slot 7: DISABLED --=-d+YOEvMmz95sD5gAnAhj Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit I'm trying to add a keyfile that I created to a new keyslot for my
encrypted swap partition, but I keep getting the error "No key
available with this passphrase". I've never done this before, so I
might be missing something simple, but I can't get it to work by
manually entering a passphase either.

Is there something else that has to be done to "enable" a keyslot
before a key can be added to it? That's the only other thing that I can
think of.


# Tried with keyfile.
root@ubuntu:~# cryptsetup luksAddKey --key-slot 1 /dev/sda5 -d /media/Ubuntu_10_04/etc/cryptkeys/swap.key
No key available with this passphrase.


# Tried with manual passphrase.
root@subuntu:/etc/cryptkeys# cryptsetup luksAddKey --key-slot 1 /dev/sda5
Enter any passphrase: 
No key available with this passphrase.


# luksDump
root@ubuntu:/etc/cryptkeys# cryptsetup luksDump /dev/sda5
LUKS header information for /dev/sda5

Version:       	1
Cipher name:   	aes
Cipher mode:   	cbc-essiv:sha256
Hash spec:     	sha1
Payload offset:	2056
MK bits:       	256
MK digest:     	25 a3 74 7e 25 fd a4 a6 18 b7 a7 63 da 95 68 26 6c da 55 4c 
MK salt:       	df 87 4a c3 0d 93 5a a9 3a 49 71 33 d4 4a ba bc 
               	ca b7 ef d6 cd 89 41 16 6c eb 61 5d 2a 73 2b a5 
MK iterations: 	10
UUID:          	bb827496-8fe5-4c55-9b76-1373d850c548

Key Slot 0: ENABLED
	Iterations:         	173012
	Salt:               	74 03 b2 a6 3c 36 95 28 bb 7f 1b e3 fc ec 84 14 
	                      	6f ee 17 fc 63 7a 33 53 60 5e 43 9f 8a dd 1a 18 
	Key material offset:	8
	AF stripes:            	4000
Key Slot 1: DISABLED
Key Slot 2: DISABLED
Key Slot 3: DISABLED
Key Slot 4: DISABLED
Key Slot 5: DISABLED
Key Slot 6: DISABLED
Key Slot 7: DISABLED

--=-d+YOEvMmz95sD5gAnAhj--