From: Tamateas Kostas <k.tamateas@dataways.gr>
To: dm-crypt@saout.de
Subject: [dm-crypt] How to manipulate an encrypted partition in a switched_root environment.
Date: Tue, 05 Jun 2012 15:06:06 +0300 [thread overview]
Message-ID: <4FCDF62E.5010701@dataways.gr> (raw)
[-- Attachment #1: Type: text/plain, Size: 782 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 2511 bytes --]
next reply other threads:[~2012-06-05 12:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-05 12:06 Tamateas Kostas [this message]
2012-06-05 13:46 ` [dm-crypt] How to manipulate an encrypted partition in a switched_root environment Javier Juan Martínez Cabezón
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FCDF62E.5010701@dataways.gr \
--to=k.tamateas@dataways.gr \
--cc=dm-crypt@saout.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox