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 v6OIHRKC37xb for ; Tue, 5 Jun 2012 14:33:02 +0200 (CEST) Received: from condor.dataways.gr (ns1.dataways.gr [213.140.130.1]) by mail.saout.de (Postfix) with ESMTP for ; Tue, 5 Jun 2012 14:33:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by condor.dataways.gr (Postfix) with ESMTP id 4B29D50720 for ; Tue, 5 Jun 2012 15:06:08 +0300 (EEST) Received: from condor.dataways.gr ([127.0.0.1]) by localhost (condor [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24425-10 for ; Tue, 5 Jun 2012 15:06:06 +0300 (EEST) Received: from penguin.dataways.gr (penguin.dataways.gr [213.140.132.15]) by condor.dataways.gr (Postfix) with ESMTP id 8100E50700 for ; Tue, 5 Jun 2012 15:06:06 +0300 (EEST) Received: from [213.140.132.10] (kotama.dataways.gr [213.140.132.10]) (authenticated bits=0) by penguin.dataways.gr (iNODE/1.7.4/MTA-RXTX) with ESMTP id q55C61CB003661 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 5 Jun 2012 15:06:02 +0300 Message-ID: <4FCDF62E.5010701@dataways.gr> Date: Tue, 05 Jun 2012 15:06:06 +0300 From: Tamateas Kostas MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------000402070704030005090001" Subject: [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 This is a multi-part message in MIME format. --------------000402070704030005090001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello evertybody. I am using cryptsetup to work with encryption. Everything is ok and working nice. However I have an issue and I don't know how to solve it. Well, the kernel is loaded, same for the ramdisk. In the ramdisk I use *cryptsetup luksOpen blabla*.. and then I use *mount /dev/mapper/enc /media/root*. Then I switch_root to /media/root. Everything works normally. 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. So can anyone tell me how I can manipulate my sda2 device in the switched_root environment ? Thanks, Kostas. --------------000402070704030005090001 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Hello evertybody. I am using cryptsetup to work with encryption. Everything is ok and working nice. However I have an issue and I don't know how to solve it. Well, the kernel is loaded, same for the ramdisk. In the ramdisk I use cryptsetup luksOpen blabla.. and then I use mount /dev/mapper/enc /media/root. Then I switch_root to /media/root. Everything works normally.

Inside the switched_root system, I do e2fsck or dumpe2fs on /dev/sda2, where sda2 is that encrypted partition and 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.

So can anyone tell me how I can manipulate my sda2 device in the switched_root environment ?

Thanks, Kostas.
--------------000402070704030005090001--