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 ; Wed, 4 May 2011 08:11:29 +0200 (CEST) Message-ID: <4DC0EE09.5060308@redhat.com> Date: Wed, 04 May 2011 08:11:21 +0200 From: Milan Broz MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] extracting master key from luks header, cryptsetup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anirudh Cc: dm-crypt@saout.de On 05/03/2011 10:50 PM, anirudh wrote: > Is there a way to extract the master key from luks header if we have the key or > pass-phrase used to encrypt the volume using cryptsetup? If you want to really backup master key (and not the whole header with known keyslot with luksHeaderBackup) use "luksDump --dump-master-key" command (available in cryptsetup 1.2.0, passphrase for some keyslot is required). (Also you can activate device and save the mapping table with master key with "dmsetup table --showkeys ".) Milan