From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Help! Command failed: /dev/sdd1 is not a LUKS partition
Date: Thu, 11 Feb 2010 00:09:37 +0100 [thread overview]
Message-ID: <20100210230937.GA24445@tansi.org> (raw)
In-Reply-To: <76df45931002101423i1338b1eua7805b7bcd2ae23c@mail.gmail.com>
On Wed, Feb 10, 2010 at 05:23:32PM -0500, M Thomas Frederiksen wrote:
> On Wed, Feb 10, 2010 at 13:08, Arno Wagner <arno@wagner.name> wrote:
>
> >
> > Why would you, is /dev/mapper/sda3_not fine?
> >
>
> It's fine at the moment. But expect it not to work as soon as I add the
> other volumes to my btrfs. Remember btrfs has a built-in volume manager.
>
>
> >
> > > ? Would that be the same UUID_SUB for other /dev/mapper/sdX_crypts?
> >
> > I don't think so.
> >
> > > And
> > > would grub / boot scripts be smart enough to figure out that it needs all
> > > three device files?
> >
> > Grub is not involved. What your boot script does, I have no idea.
> >
>
> Grub needs to know how to get the root device(s) setup.
Grub just needs to find the kernel, load it and start
it. That is it. The rest is done by the kernel.
In particular Grub cannot set up any decryption. For that
reason when using encrypted root with Grub, you will
need a small partition that holds kernel, initrd and
Grub files including its configuration.
The actual root device is passed to the kernel as
parameter, but it cannot be encrypted. What is passed
with encrypted root is the initrd, which contains
the initial root file system, which is a minimal but
working root filesystem with some essential tools and
some scripts. This initial root is then replaced by
the decrypted root under control of the init system
in the initrd, i.e. by some scripts in the initrd.
Grubs job is done when it loaded the kernel and gave it
its commandline.
If you want encrypted boot, you need to use TrueCrypt
or the like, which has its own boot code and does not
need Grub.
Arno
--
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name
GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans
If it's in the news, don't worry about it. The very definition of
"news" is "something that hardly ever happens." -- Bruce Schneier
prev parent reply other threads:[~2010-02-10 23:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-10 17:00 [dm-crypt] Help! Command failed: /dev/sdd1 is not a LUKS partition M Thomas Frederiksen
2010-02-10 17:14 ` Arno Wagner
2010-02-10 17:43 ` M Thomas Frederiksen
2010-02-10 18:08 ` Arno Wagner
2010-02-10 22:23 ` M Thomas Frederiksen
2010-02-10 23:09 ` Arno Wagner [this message]
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=20100210230937.GA24445@tansi.org \
--to=arno@wagner.name \
--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