Return-Path: Received: from mx2-v2.alinto.net (mx2-v2.alinto.net [83.145.109.32]) by mail.saout.de (Postfix) with ESMTP for ; Sun, 13 Jun 2010 18:07:13 +0200 (CEST) Received: from http3alinto.alinto.net (http3alinto.alinto.net [83.145.109.63]) by mx2-v2.alinto.net (Postfix) with ESMTP id 3863324417F for ; Sun, 13 Jun 2010 18:07:11 +0200 (CEST) Message-ID: <1276445230.4c15022eeba28@www.inmano.com> Date: Sun, 13 Jun 2010 18:07:10 +0200 From: octane indice MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: [dm-crypt] luksAddKey with a keyfile? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hello I want to use a key-file instead a password for an existing lukspartition. How can I do it (??) root@dark:~# cryptsetup --version cryptsetup 1.1.0 For password, I do a: cryptsetup luksAddKey /dev/sda1=20 and it asks for the old password, then the new passwod: root@dark:~# cryptsetup luksAddKey /dev/loop0=20 Enter any passphrase:=20 Key slot 0 unlocked. Enter new passphrase for key slot:=20 Verify passphrase:=20 root@dark:~# But how use it with a file? man says to use=20 luksAddKey [] And here is the result: root@dark:~# cryptsetup luksAddKey /dev/loop0 /root/key Enter any passphrase:=20 Verify passphrase:=20 Key slot 0 unlocked. root@dark:~# cryptsetup luksClose /dev/loop0 Device /dev/loop0 not found root@dark:~# cryptsetup luksClose cipher =20 root@dark:~# cat key | cryptsetup luksOpen /dev/loop0 cipher No key available with this passphrase. No key available with this passphrase. No key available with this passphrase. root@dark:~ What am I doing wrong? I prefer to use "cat key" for a later use. Why I have three error messages?=20 Thanks for help Envoy=E9 avec Inmano, ma messagerie renversante et gratuite : http://www.in= mano.com