Maciej Pilichowski wrote:
Hi,
(opensuse 11.1, cryptsetup-1.0.5_SVNr46-57.8).
I try to migrate from losetup (loop-aes I believe) to dm-crypt,
however I didn't even touch the problem with compatibility issues
because I am stuck on basic things.
I load necessary modules:
modprobe dm-mod
modprobe dm-crypt
modprobe aes_generic
modprobe sha512_generic
Since I want to have access to the file not to the partition I use
losetup:
losetup /dev/loop0 my_file
So far, so good. But then I run cryptsetup:
cryptsetup -d password_file --hash sha512 --cipher
aes-cbc-plain --key-size 256 create mapped_img /dev/loop0
and get error:
Command failed: reload ioctl failed; invalid argument
I checked /var/log/warn, I see 3 lines there:
kernel: device-mapper: table: 253:0: crypt: Error allocating crypto
tfm
kernel: device-mapper: ioctl: error adding target to table
kernel: device-mapper: ioctl: device doesn't appear to be in the dev
hash table.
I already googled, searched the archive of this ML, so far no
success in finding why this happens and how to solve this. Thank you
in advance for help.
Cheers,
I have a similar problem, too.
When I try creating a mapper device with cryptsetup i get the following
error message:
# cryptsetup -y create storage /dev/hda3
Enter passphrase:
Verify passphrase:
Command failed: device-mapper: reload ioctl failed: Invalid argument
/var/log/message reports the following:
# tail /var/log/messages | grep device-mapper
Jan 30 11:30:17 thorium [ 258.715286] device-mapper: table: 254:0:
crypt: Error allocating crypto tfm
Jan 30 11:30:17 thorium [ 258.715294] device-mapper: ioctl: error
adding target to table
Jan 30 11:30:17 thorium [ 258.715851] device-mapper: ioctl: device
doesn't appear to be in the dev hash table.
But if i try again to create the mapper device with cryptosetup, the
error message doesn't appear again and everything works well:
# cryptsetup -y create storage /dev/hda3
Enter passphrase:
Verify passphrase:
What can it be?
Thanks.
---------------------------------------------------------------------
dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx