DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: ken <gebser@mousecar.com>
To: Milan Broz <mbroz@redhat.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] recovering forgotten passwords for 2 LVs
Date: Mon, 22 Aug 2011 20:23:59 -0400	[thread overview]
Message-ID: <4E52F31F.9090809@mousecar.com> (raw)
In-Reply-To: <4E52DDD3.8000904@redhat.com>


On 08/22/2011 06:53 PM Milan Broz wrote:
> On 08/23/2011 12:33 AM, ken wrote:
>> On the other hand, if I do a "vgdisplay /dev/sda5", I get a series of
>> lines saying "Input/output error" along with the locations of those
>> errors, ending with the statement 'Volume group "sda5" not found'.
>>
>> I'd think that if vgdisplay can't locate the volume group, then vgchange
> 
> No. vgdisplay does not take physical path as argument, this
> command must fail. (but io errors indicate something more
> serious - what exactly it says?)

You're right... vgdisplay takes the VG name as its arg.


> 
> Whatever, seems you are doing several mistakes, lets try this:
> 
> /dev/sda5 is LUKS device for sure, you have to first activate:
> 
> 1) cryptsetup luksOpen /dev/sda5 sda5_crypt

# cryptsetup luksOpen /dev/sda5 sda5_crypt
Enter LUKS passphrase for /dev/sda5:
Enter LUKS passphrase for /dev/sda5:
Enter LUKS passphrase for /dev/sda5:
Command failed: No key available with this passphrase.

I tried three different passphrases.  None worked.  This is the original
problem.  If I knew the passphrase-- even just for the data partition--
I'd be done... the whole problem would be solved for me.


Since I don't know the passphrase for the command above, I can't do any
of the rest of these commands.

> does it work and device is properly unlocked? If so, then
> 
> 2) please paste output of: "blkid /dev/mapper/sda5_crypt"
> 
> I guess it will be LVM PV. If so then run
> 
> 3) vgscan ; vgchange -a y
> 
> 4) paste here output of "blkid /dev/mapper/*"
> 
> Maybe you can add also "blkid /dev/sd*" so we can be sure what's
> type of partitions you have there - the grub entry you mentioned
> does not match the device on /dev/sda5.
> 
> (I would say paste here output of "lsblk -f" but this command is not
> yet in CentOS5.)
> 
> Thanks,
> Milan

Thanks, Milan.

  reply	other threads:[~2011-08-23  0:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-17 17:44 [dm-crypt] recovering forgotten password ken
2011-08-17 19:35 ` Arno Wagner
2011-08-17 19:40   ` Arno Wagner
2011-08-22 14:48 ` [dm-crypt] recovering forgotten passwords for 2 LVs ken
2011-08-22 16:19   ` Yves-Alexis Perez
2011-08-22 22:33     ` ken
2011-08-22 22:53       ` Milan Broz
2011-08-23  0:23         ` ken [this message]
2011-08-23  7:43           ` Yves-Alexis Perez
2011-08-23  9:35             ` ken
2011-08-23 11:59         ` ken
2011-08-23 12:57       ` Arno Wagner
2011-08-23 13:39         ` ken
2011-08-22 17:16   ` Arno Wagner
2011-08-23 13:17     ` ken
2011-08-23 13:47       ` Arno Wagner

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=4E52F31F.9090809@mousecar.com \
    --to=gebser@mousecar.com \
    --cc=dm-crypt@saout.de \
    --cc=mbroz@redhat.com \
    /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