It is currently Fri Jul 21, 2017 4:48 am



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!


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Encrypted Partitions
PostPosted: Thu Jun 26, 2008 3:09 pm 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 07, 2008 12:54 am 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 10, 2008 10:48 am 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 11, 2008 11:02 pm 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 5879
Location: Greece
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 15, 2008 3:13 pm 
Offline

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred