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 FeuYPuB8J_Mo for ; Wed, 2 Nov 2011 04:23:04 +0100 (CET) Received: from mail.poivron.org (poivron.org [91.194.60.101]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Wed, 2 Nov 2011 04:23:03 +0100 (CET) Date: Wed, 2 Nov 2011 04:14:30 +0100 From: mike dentifrice Message-ID: <20111102031430.GA15717@dentifrice> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Subject: [dm-crypt] password recovery for a luksOpened device? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hey there, I managed to forget the passphrase for a server (it is very rarely rebooted). It it still running, the LUKS device is opened, and the filesystem laying on top of it is mounted. So, I do have a fresh backup, and can keep on trying to remember the passphrase with `cryptsetup luksAddKey /dev/mapper/foobar` However, it would be a lot of hasle to re-install the system entirely, as the services cannot suffer a long downtime. Is there a way to recover the passphrase or add a new keyslot while the system's running, the crypto device mounted, the fs opened? Or do I necessarily have to jump towards the "How do I recover the master key from a mapped LUKS container?" FAQ entry? Thanks in advance for your answer, -- mike dentifrice