Return-Path: Received: from sargon.lncsa.com (mail.ipv6.lncsa.com [IPv6:2001:7a8:820::10]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Thu, 23 Sep 2010 11:02:36 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by sargon.lncsa.com (Postfix) with ESMTP id A8D62302554C for ; Thu, 23 Sep 2010 11:02:35 +0200 (CEST) Received: from sargon.lncsa.com ([127.0.0.1]) by localhost (sargon.lncsa.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iB8wZuu8ZGnq for ; Thu, 23 Sep 2010 11:02:35 +0200 (CEST) Received: from zenon.apartia.fr (zenon.apartia.fr [10.0.3.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "zenon.apartia.fr", Issuer "ca.apartia.fr" (verified OK)) by sargon.lncsa.com (Postfix) with ESMTP id 86D6F302311D for ; Thu, 23 Sep 2010 11:02:35 +0200 (CEST) Received: from galba.apartia.fr (galba.apartia.fr [10.0.3.119]) by zenon.apartia.fr (Postfix) with ESMTP id 6E3945B93F641 for ; Thu, 23 Sep 2010 11:02:28 +0200 (CEST) Date: Thu, 23 Sep 2010 11:02:35 +0200 From: Louis-David Mitterrand Message-ID: <20100923090234.GA4126@apartia.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [dm-crypt] using decrypt_derived on a second (non-swap) partition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hi, Is it possible to use the decrypt_derived script to mount a second (non-swap) partition with the same passphrase as the root partition? I tried the following et /etc/crypttab: cmd1 /dev/md1 none luks # cmd2 /dev/md2 none luks cmd2 /dev/md2 cmd1 keyscript=/lib/cryptsetup/scripts/decrypt_derived,luks (/dev/mapper/cmd2 is mounted on /backup) But I get this error when running "/etc/init.d/cryptdisks restart": galba:/home/ldm# /etc/init.d/cryptdisks restart Stopping remaining crypto disks...cmd1 (busy)...cmd2 (stopped)...done. Starting remaining crypto disks...cmd1 (running)...cmd2 (starting)... No key available with this passphrase. No key available with this passphrase. No key available with this passphrase. cmd2 (failed)...failed. done.