Hello,
I am trying to encrypt my swap partition with dm-crypt following the Mepis.org Encrypted Partitions Howto.
http://www.mepis.org/docs/en/index.php/ ... Partitions
Realizing that the kernel modules for cryptsetup weren't loaded I ran :
# modprobe dm_crypt
# modprobe sha256
# modprobe aes
and
# echo dm_crypt >> /etc/modules
# echo sha256 >> /etc/modules
# echo aes >> /etc/modules
for them to be loaded at boot up.
As said in the howto, I modified the /etc/fstab and the /etc/crypttab.
After reboot I ran :
# cat /proc/swaps
which sould have returned something like :
Filename Type Size Used Priority
/dev/mapper/cswap partition 3148700 0 1
but returns instead :
Filename Type Size Used Priority
/dev/sda3 partition 562264 0 1
As if I hadn't modified the fstab file !
So I then tried so encrypt and mount a “normal partition” : My /dev/sdb5
I created the LUKS partition, set up the device mapper (artaud), confirmed it worked, created the filesystem, mounted it (on /home/karim/Artaud) and tested it. This part worked fine.
I them modified my fstab file :
/dev/mapper/artaud /home/karim/Artaud ext3 defaults 1 2
and a line to crypttab :
artaud /dev/sdb5 non luks
During reboot I get the error message :
mount: special device /dev/mapper/artaud does not exist.
Is maybe due to the fact that the command :
# cryptsetup luksOpen /dev/sdb5 artaud
and the corresponding one for the swap partition aren't run during bootup.
Has anyone an idea ?
Thank you in advance for any suggestions.
