Skip navigation.
Home
Now Shipping Version 8.0

mepis 6.5 and truecrypt

i am unable to use truecrypt 4.3 under mepis 6.5 although it works fine under mepis 6.0.

with mepis 6.5 i get the following error messages:
insmod: error inserting '/usr/share/truecrypt/kernel/truecrypt-2.6.15.ko': -1 Invalid module format
FATAL: Module truecrypt not found.
Failed to load TrueCrypt kernel module

Any help would be appreciated.

stuart

yes, I think it is a

yes, I think it is a truecrypt bug.

try 'modprobe -f truecrypt'. That works for me.

Newbie or not Newbie, there's always a question

truecrypt bug

unfortunately your suggestion did not work for me.

it returned:
FATAL: Module truecrypt not found.

thanks anyway
stuart

How did you install it?? Or

How did you install it?? Or a better question is, which command did you issue before to try and load the module?

Newbie or not Newbie, there's always a question

truecrypt

i installed it from the ubuntu 6.06 package available at the truecrypt website.

i invoked it both as a user and as root:
truecrypt -u /dev/sdb1 /mnt/sdb1

i received the same errors in both cases.

i carried out exactly the same steps on both mepis 6.0 and 6.5. the module is loaded automatically in mepis 6.0.

on mepis 6.0 everything worked fine.

cheers
stuart

Ah, OK. that didn't work for

Ah, OK.

that didn't work for me either. First uninstall the packge you downloaded. Then:
1. get the source codes and extract them to a folder in your homedir.
2 In that folder you'll find a folder Linux. Go to that folder in Konuqeror
3. Press F4
4. su + root password
5. ./build
6. ./install

When it's done, first try modprobe truecrypt (as root). If that doesn't work, try modrobe -f truecrypt. If that works, you will need a little script that does the modprobe for you. If you want, I can help you out with that later.

Newbie or not Newbie, there's always a question

no go

i got as far as build and received the error

Error: /usr/src/linux does not exit

where to from here ?

hanks for your patience.

stuart

oh dear

i followed he steps suggested by you on a completely fresh install of mepis 6.5 and got the following result:

root@5[Linux]# ./build.sh
Checking build requirements...
Error: Kernel source code is incomplete - /usr/src/linux/drivers/md/dm.h not found

hmmm ... something not quite right.

are you using v4.2 or v4.3 of truecrypt. i am using v4.3

stuart

I think then you should also

I think then you should also install the complete sources....

Newbie or not Newbie, there's always a question

and then ...

i have installed the sources and get the same error.

Sad

The sources should be

The sources should be extracted and then you should make a link to them.

The file you installed has a name like linux-source-2.6.15.27-desktop.tar.bz2 and will be in the folder /usr/src/linux. Extract it as root (menu > system > file system > file manager super user, navigate to the folder an right click the file to extract here).

Once extracted, you will have a folder /usr/src/linux-source-2.6.15.27-desktop. In the same super user file manager do this:
- make sure you are in /usr/src
- ctrl-shift-l (letter l) to open a split window
- drag the folder linux-source-... from one window to another and say 'link here'
- Konqueror will tell you the filename exists, so rename to linux. You will now have a symbolic link called /usr/src/linux that points to the sources folder.

Now compile again.

Newbie or not Newbie, there's always a question

not so truecrypt

ok

i succeeded in installing truecrypt from source, and using the modprobe -f option i was able to load the module for that session. i was then able to access the encrypted volume.

however as soon as i dismounted the volume the problem returned, and i had to reload the module each time i mounted the encrypted volume.

when i attempted to load the module on startup i got the following kernel error:
[17179597.552000] truecrypt: version magic '2.6.15.7-ubuntu1 preempt 586 gcc-4.0' should be '2.6.15-27-desktop preempt 586 gcc-4.0'

is this the best i can hope for or is there a more elegant solution ?

thanks for your help Smiling

stuart

There is a more elegant

There is a more elegant solution Eye-wink

You need to add your own account to the sudoers list:
- console and su
- visudo
- add a line 'YourAccount ALL=/sbin/modprobe -f truecrypt'
- save with Ctrl-O and exit with Ctrl-X

Now you can create a little script to mount the partition, and before the line to mount the partition you create a line that says 'sudo modprobe -f truecrypt'.

At kde-apps.org you'll find a cool script and kde desktop shortcuts to graphically mount and unmount the encrypted partition. I have modified it a bit, so that it launches konqueror automatically when I mount the partition. Have a look and if you can't make it work, give a shout and I'll put the scripts up someplace on the web.

Cheers!

Newbie or not Newbie, there's always a question

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.