From: Paul Albrecht <albrecht@rdi1.com>
To: Satyam Sharma <satyam@infradead.org>
Cc: Paul Albrecht <albrecht@rdi1.com>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: dm-crypt mount returns EINVAL
Date: Tue, 28 Aug 2007 13:59:46 -0400 [thread overview]
Message-ID: <1188323986.5357.8.camel@albrecht.rdi1.com> (raw)
In-Reply-To: <alpine.LFD.0.999.0708282042210.24588@enigma.security.iitk.ac.in>
On Tue, 2007-08-28 at 20:45 +0530, Satyam Sharma wrote:
> Hi Paul,
>
>
> On Tue, 28 Aug 2007, Paul Albrecht wrote:
>
> > Hi,
> >
> > I have recently upgraded my kernel to 2.6.21 from 2.6.20 and that has
> > caused a problem mounting an encrypted partition using dm-crypt.
> >
> > In my init script, I use cryptsetup to create device which I use to
> > mount an encrypted partition. Since I changed to 2.6.21 the mount fails
> > returning an EINVAL status which doesn't make much sense because the
> > init script is unchanged and works if reverted to 2.6.20.
> >
> > Any ideas? How can I debug this problem? I'm not subscribed to lkml so
> > please cc in your response.
>
> What was the error you got from cryptsetup()? Also, please post the
> kernel's dmesg log and the .config of the 2.6.21 kernel (new one).
>
> Also, compare the .config's of the two kernels and ensure that
> CONFIG_DM_CRYPT (or possibly one of the _CRYPTO_ config options)
> didn't get lost or automatically unset during the upgrade/oldconfig.
>
Found the problem ... the pass phrase used in cryptsetup is incorrect
for the partition I want to decrypt. Not sure why that is because I
compute it at runtime. One of the parameters I use must have changed
from 2.6.20 to 2.6.21. I'll have to sort that out myself. Thanks
anyways!
Paul Albrecht
prev parent reply other threads:[~2007-08-28 18:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-28 13:24 Paul Albrecht
2007-08-28 15:15 ` Satyam Sharma
2007-08-28 14:45 ` Paul Albrecht
2007-08-28 17:59 ` Paul Albrecht [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=1188323986.5357.8.camel@albrecht.rdi1.com \
--to=albrecht@rdi1.com \
--cc=linux-kernel@vger.kernel.org \
--cc=satyam@infradead.org \
/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
all inboxes | Powered by JetHome®