Hi,
Let me at the outset apologise for posting about cryptsetup about which i found some threads existing but the workarounds suggested in those dint quite help me...so here goes:
The following are the details of my set up
Linux flavour - Cent OS version 5.3
Kernel Version - 2.6.18-128.el5
Issue -
I am trying to encrypt a partition (i created a partition at the time of installation itself) on my hardisk using LUKS. I use the following command to achieve the same:
Code:
cryptsetup –c aes-cbc-essiv:sha256 –y –s 256 luksFormat /dev/sda3
initially i kept getting the following error message:
Code:
Failed to set up dm-crypt key mapping
Check kernel support for the aes-cbc-essiv:sha256 cipher spec and verify that /dev/sda3 contains at least 258 sectors.
Failed to write key storage
(i tried the cryptsetup with the other ciphers as well like aes-xts-plain64 but that dint work as well)
but then that changed today..the error message i get today is
I have no idea what made this change happen...
The cryptsetup version is 1.0.3
Some of the diagnostics i performed
i did the following before using the cryptsetup
Code:
modprobe dm_crypt
modprobe dm_mod
modprobe aes
modprobe cbc
modprobe sha256
I did the last three steps because i cudnt find the aes-cbc-essiv:sha256 cipher in my /proc/crypto file
The following changes have also been made on /etc/lvm/lvm.conf
Code:
types = [ "device-mapper", 16 ]
filter = [ "a|^/dev/mapper/[A-Z].*|", "r|^/dev/mapper/.*|", "a/.*/" ]
The dmsetup targets command gives the following output:
crypt v1.3.0
multipath v1.0.5
raid45 v1.0.0
snapshot-origin v1.6.0
zero v1.0.0
mirror v1.2.0
striped v1.1.0
linear v1.0.2
error v1.0.1
Please let me know where i am going wrong....
Thanks in Advance...
Madhusudan