SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I configured my 2.6.12.3 kernel for dm-crypt... everything works then I compile the user-space tool cryptsetup-luks from http://luks.endorphin.org/dm-crypt
but on make it spits
Code:
keyencryption.c:31:26: libdevmapper.h: No such file or directory
keyencryption.c:35:26: libdevmapper.h: No such file or directory
keyencryption.c: In function `LUKS_endec_template':
keyencryption.c:100: warning: initialization makes pointer from integer
withouta cast
make[2]: *** [libluks_la-keyencryption.lo] Error 1
make[2]: Leaving directory `/home/x/cryptsetup-luks-1.0.1/luks'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/x/cryptsetup-luks-1.0.1'
make: *** [all] Error 2
I tried using the cryptsetup-1.0.1-i686-pc-linux-gnu-static.bz2 - Precompiled binary version 1.0.1: my kernel is working correctly so I issue the commands written on the luks page
But I don't want to use LVM!
You don't need LVM. Device-mapper is an all-purpose kernel feature, not tied to LVM in any way.
You should however, setup the kernel as said on the link posted by dragoncity99 to get device mapper working correctly. Then instead of using cryptsetup as stated on that page, use crypsetup-luks.
1) Compile hashalot, move to /usr/local/bin
2) Move cryptsetup.sh to /usr/local/bin
3) Run 'modprobe dm-crypt' to load the required kernel modules
4) Run 'cryptsetup -c cipher -s keysize create crypto /dev/hda5' to create the crypto
5) Run 'mkdir /crypto' to create the crypto mount point
6) Run 'mount /dev/mapper/crypto /crypto' to access your encrypted file system
this is how i got dm-crypt setup under slackware 10.1. sorry but i dont know enough about encryption under linux to help you with the method you are trying. but i can tell you that the instructions above are how i got it working on my system, so you shouldnt encounter any problems.
Last edited by slackwh0re; 07-30-2005 at 01:19 AM.
1) Compile hashalot, move to /usr/local/bin
2) Move cryptsetup.sh to /usr/local/bin
3) Run 'modprobe dm-crypt' to load the required kernel modules
4) Run 'cryptsetup -c cipher -s keysize create crypto /dev/hda5' to create the crypto
5) Run 'mkdir /crypto' to create the crypto mount point
6) Run 'mount /dev/mapper/crypto /crypto' to access your encrypted file system
this is how i got dm-crypt setup under slackware 10.1. sorry but i dont know enough about encryption under linux to help you with the method you are trying. but i can tell you that the instructions above are how i got it working on my system, so you shouldnt encounter any problems.
I did what you told me and got a ....
root@x:/usr/local/bin# cryptsetup.sh -c aes -s 12 create crypto /dev/hda2
Error: dmsetup not found in search path.
what does that mean??? It should be a devicemapper error... you haven't told me where you downloaded device mapper from and how you installed it...
thank you
Last edited by rino.caldelli; 07-31-2005 at 09:27 AM.
Waiting slackwhore to answer I did this.. I downloaded devicemapper from the link http://slackware.php.co.ba./ that malo_umoran posted and got it working... now here's what I get
Code:
root@x:/home/x# cd /usr/local/bin/
root@x:/usr/local/bin# cryptsetup.sh -c aes -s 12
create crypto /dev/hda2
Enter passphrase:
Error: Could not create device, see syslog for details.
/dev/hda2 is a mounted vfat partition... what's the problem????
Last edited by rino.caldelli; 07-31-2005 at 04:27 PM.
Originally posted by rinonapo
Waiting slackwhore to answer I did this.. I downloaded devicemapper from the link http://slackware.php.co.ba./ that malo_umoran posted and got it working... now here's what I get
root@x:/home/x# cd /usr/local/bin/
root@x:/usr/local/bin# cryptsetup.sh -c aes -s 12 create crypto /dev/hda2
Enter passphrase:
Error: Could not create device, see syslog for details.
/dev/hda2 is a mounted vfat partition... what's the problem????
don't use "cryptsetup.sh" but just "cryptsetup" from package "cryptsetup-0.1-i686-2mm". I made these packages myself and tested it with kernel 2.6.12.3.
I am using it all the time without any problems ...
you of course need libgcrypt. I forgot to mention that, because it was not my package. there are a few of these on linuxpackages.net, just choose your Slack:
I'm getting quite frustrated at linux encryption, I've just installed libgcrypt and I get a new error
Code:
root@x:/home/x# cryptsetup create crypto /dev/hda2
cryptsetup: error while loading shared libraries: libgpg-error.so.0:
cannot open shared object file: No such file or directory
Why is it all so complicated?? I compiled the 2.6 kernel, enabled all modules, installed devicemapper, installed cryptsetup, installed hashalot, now I installed libgcrypt and still I can't encrypt a hard drive!!!!!
Last edited by rino.caldelli; 07-31-2005 at 04:26 PM.
the sintax is right and /dev/hda2 exists and is a used vfat partition!
By the way out of curiosity I tried using crypto.sh which I had in /usr/local/bin
Code:
root@x:/usr/local/bin# cryptsetup.sh create crypto /dev/hda2
Error: No device mapper support in kernel.
root@x:/usr/local/bin# modprobe device_mapper
FATAL: Module device_mapper not found.
the device mapper in my kernel is activated under block devices!!!
Last edited by rino.caldelli; 08-01-2005 at 01:53 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.