Re: e2fsck an encrypted LVM root partition within a virtual machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
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

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux