From: Milan Broz <mbroz@redhat.com>
To: gebser@mousecar.com
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] recovering forgotten passwords for 2 LVs
Date: Tue, 23 Aug 2011 00:53:07 +0200 [thread overview]
Message-ID: <4E52DDD3.8000904@redhat.com> (raw)
In-Reply-To: <4E52D93A.10802@mousecar.com>
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?)
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
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
next prev parent reply other threads:[~2011-08-22 22:53 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 [this message]
2011-08-23 0:23 ` ken
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=4E52DDD3.8000904@redhat.com \
--to=mbroz@redhat.com \
--cc=dm-crypt@saout.de \
--cc=gebser@mousecar.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