From: "rainer.herrendoerfer" <rainer.herrendoerfer@belug.de>
To: dm-crypt@saout.de
Subject: [dm-crypt] Partitions on top of LUKS encrypted HD not recognized by kernel
Date: Sat, 28 Mar 2015 14:05:57 +0100 [thread overview]
Message-ID: <5516A735.20705@belug.de> (raw)
Hello list,
I'm experimenting with LUKS on a Gentoo-Box. I luksFormat'ted the whole
harddisk /dev/sda and luksOpen'ed as gentoo, so it appeared as
/dev/mapper/gentoo. So far so good. When I use LVM and take it as a
physical volume and set up VGs and LVs they appear in /dev/mapper
automatically.
But when trying to use normal partitions instead of LVM, parted can
mklabel and mkpart but gets a warning that the new partitions are not
known by the kernel and indeed, they don't appear in /dev/mapper.
I need to run 'kpartx -av gentoo' that they appear in /dev/mapper and
then they are normally usable. When trying to luksClose them after
unmounting them they are 'still in use' until I make the kernel to
forget them by 'kpartx -d /dev/mapper/gentoo'.
So is using partitioning on fully encrypted harddisks not supported by
LUKS at all? Or just a bug in the current version used by Gentoo which
is 1.6.5?
Thanks in advance
®ainer
next reply other threads:[~2015-03-28 13:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-28 13:05 rainer.herrendoerfer [this message]
2015-03-30 16:42 ` [dm-crypt] Partitions on top of LUKS encrypted HD not recognized by kernel Milan Broz
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=5516A735.20705@belug.de \
--to=rainer.herrendoerfer@belug.de \
--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