[virt-tools-list] e2fsck an encrypted LVM root partition within a virtual machine

Keith Roberts keith.roberts at ecric.nhs.uk
Fri Jul 31 14:17:01 UTC 2015


On 31 Jul 2015, at 12:15, Richard W.M. Jones <rjones at redhat.com> wrote:

> On Wed, Jul 29, 2015 at 01:12:11PM +0100, Keith Roberts wrote:
>>> <rescue> cryptsetup open /dev/sda2 sysroot
>> Enter passphrase for /dev/sda2: 
>> [  355.726880] device-mapper: table: 253:0: crypt: unknown target type
>> [  355.727799] device-mapper: ioctl: error adding target to table
>> device-mapper: reload ioctl on temporary-cryptsetup-148 failed: Invalid argument
>> Failed to open temporary keystore device.
>> device-mapper: remove ioctl on temporary-cryptsetup-148 failed: No such device or address
>> ...
>>> <rescue> 
>> 
>> Any ideas why I cannot open the LUKS encrypted partition please?
> 
> It's a good question.  The error seems to indicate that the
> dm-crypt.ko kernel module is not loaded, so I guess you could try
> 'modprobe dm-crypt' before the cryptsetup command.  (Also check your
> *host* kernel supports dm-crypt).
> 
> Rich.

Thanks for your reply Rich.

I’ll take another look at this soon.

Kind Regards,

Keith


> -- 
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-top is 'top' for virtual machines.  Tiny program with many
> powerful monitoring features, net stats, disk stats, logging, etc.
> http://people.redhat.com/~rjones/virt-top





More information about the virt-tools-list mailing list