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
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:
cryptsetup –c aes-cbc-essiv:sha256 –y –s 256 luksFormat /dev/sda3
initially i kept getting the following error message:
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
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
types = [ "device-mapper", 16 ]
filter = [ "a|^/dev/mapper/[A-Z].*|", "r|^/dev/mapper/.*|", "a/.*/" ]
The dmsetup targets command gives the following output:
Please let me know where i am going wrong....
Thanks in Advance...