Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

Encrypted Partitions

Post comments, problems, bugs here.

Encrypted Partitions

Postby coq_vi on Thu Jun 26, 2008 4:09 pm

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.
coq_vi
 
Posts: 14
Joined: Tue Jun 24, 2008 2:07 am

Postby coq_vi on Mon Jul 07, 2008 1:54 am

I solved this problem by downgrading to cryptsetup 2:1.0.4+svn26-1 stable version.
coq_vi
 
Posts: 14
Joined: Tue Jun 24, 2008 2:07 am

Postby coq_vi on Thu Jul 10, 2008 11:48 am

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 ?
coq_vi
 
Posts: 14
Joined: Tue Jun 24, 2008 2:07 am

Postby anticapitalista on Sat Jul 12, 2008 12:02 am

I'll look into it coq_vi.
Thanks for the feedback, and enjoy antiX.
Philosophers have interpreted the world in many ways; the point is to change it.
User avatar
anticapitalista
Site Admin
 
Posts: 1053
Joined: Tue Sep 11, 2007 5:55 pm
Location: Greece

Postby coq_vi on Tue Jul 15, 2008 4:13 pm

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...
coq_vi
 
Posts: 14
Joined: Tue Jun 24, 2008 2:07 am


Return to antiX-M7.2 VETËVENDOSJE!

Who is online

Users browsing this forum: No registered users and 0 guests