Posts: 14
coq_vi
Joined: 23 Jun 2008
#1
Hello,

I am trying to encrypt my swap partition with dm-crypt following the Mepis.org Encrypted Partitions Howto.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.mepis.org/docs/en/index.php/Encrypted_Partitions"
linktext was:"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.
Posts: 14
coq_vi
Joined: 23 Jun 2008
#2
I solved this problem by downgrading to cryptsetup 2:1.0.4+svn26-1 stable version.
Posts: 14
coq_vi
Joined: 23 Jun 2008
#3
I finally realized that my problem was not due to the package version but due to the way the Antix LiveCd installs the package on first install.
The solution to this problem is to completely remove the cryptsetup package with Synaptic and just reinstall it.

Could this be a bug in the LiveCd ?
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#4
I'll look into it coq_vi.
Thanks for the feedback, and enjoy antiX.
Posts: 14
coq_vi
Joined: 23 Jun 2008
#5
Hello anticapitalista,

It looks like the problem is a bit more complex. To be able to run the cryptsetup 2:1.0.6-1 version the LiveCd installs. I have to completely remove it (purge it) install the the stable cryptsetup 2:1.0.4+svn26-1 version and upgrade to it via apt-get or synaptic...
If I only purge and directly install 2:1.0.6-1 it doesn't work ???

Cheers...