From mboxrd@z Thu Jan 1 00:00:00 1970 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 gl_4uoZNLW0D for ; Tue, 5 Jun 2012 15:46:24 +0200 (CEST) Received: from mail-ee0-f50.google.com (mail-ee0-f50.google.com [74.125.83.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Tue, 5 Jun 2012 15:46:23 +0200 (CEST) Received: by eekc13 with SMTP id c13so2126426eek.37 for ; Tue, 05 Jun 2012 06:46:23 -0700 (PDT) Message-ID: <4FCE0DB1.4040601@gmail.com> Date: Tue, 05 Jun 2012 15:46:25 +0200 From: =?ISO-8859-1?Q?Javier_Juan_Mart=EDnez_Cabez=F3n?= MIME-Version: 1.0 References: <4FCDF62E.5010701@dataways.gr> In-Reply-To: <4FCDF62E.5010701@dataways.gr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] How to manipulate an encrypted partition in a switched_root environment. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de > > Inside the switched_root system, I do e2fsck or dumpe2fs on /dev/sda2, > where sda2 is that encrypted partitionand it returns: bad superblock and > stuff like this.In the ramdisk I had the /dev/mapper/enc device, but in > switched_root system I don't have it. I only have /dev/mapper/control. Since sda2 is encrypted e2fsck cant find superblock and fs data. You must pass e2fsck to the fs unlocked. Look for which device is mounted as rootfs and do e2fsck to this one.