Luke | 15 Jun 01:10

DM-Crypt missing in 2.6.24.7?

Hello

Having compiled a new copy of kernel 2.6.24.7 downloaded from kernel.org, 
I have been receiving the following errors when trying to crypto loop 
mount files:

luked <at> thor:~$ cryptmount encrypted.fs
enter password for target "encrypted.fs":
device-mapper: table: 253:0: crypt: unknown target type
device-mapper: reload ioctl failed: Invalid argument
device-mapper task failed
device-mapper target-creation failed for "encrypted.fs"

A bit of googling lead me to believe that dm-crypt may not be being 
loaded.  That is true, but I have found that it does not even exist in my 
modules directory, and is not referenced in the .config for this kernel.

It does exist in source, but is not listed in the .config for some reason.
This is a custom config, created by "make oldconfig", following the 
application of patches for a non-crypto-related set of drivers, on a 
config file originally used on a 2.6.18 kernel which WAS working just 
fine for mounting encrypted files as loop devices.

Any suggestions on a next step?

Regards,

Luke

(Continue reading)

Arno Wagner | 16 Jun 17:20

Re: DM-Crypt missing in 2.6.24.7?

Hi Luke,

dm-crypt is in 2.6.24.6 and should be in 2.6.24.7 ass well,
as there was only ine small SMP fix in the version change.

However using 2.6.18 as old configuration may omit features.
I have done this myself (also with 2.6.18), and after a
make oldconfig you need to go manually though all options to 
make sure everything is included. The problem is that
there were changes iover this long distance that make oldconfig
cannot transform.

You find the dm-crypt driver under

  Device Drivers -> Multiple devices support -> Crypt-target

Arno

On Sat, Jun 14, 2008 at 07:11:14PM -0400, Luke wrote:
> Hello
> 
> Having compiled a new copy of kernel 2.6.24.7 downloaded from kernel.org, 
> I have been receiving the following errors when trying to crypto loop 
> mount files:
> 
> luked <at> thor:~$ cryptmount encrypted.fs
> enter password for target "encrypted.fs":
> device-mapper: table: 253:0: crypt: unknown target type
> device-mapper: reload ioctl failed: Invalid argument
> device-mapper task failed
(Continue reading)


Gmane