maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   TrueCrypt 7 with GUI and kernel crypto (https://talk.maemo.org/showthread.php?t=68419)

Mr Wolf 2012-01-15 14:35

Re: TrueCrypt 7 with GUI and kernel crypto
 
So, how do I know which version of kernel power is installed?
Sorry, I took the TrueCrypt link from the page I saved.
I think it was the one you posted in the first post of this topic.

nman 2012-01-15 15:04

Re: TrueCrypt 7 with GUI and kernel crypto
 
Quote:

Originally Posted by Mr Wolf (Post 1150845)

device-mapper: reload ioctl failed: Invalid argument
Command failed

Anyone knows what it means?

I had this error trying to mount volume with ext4 filesystem.
I had to manually specify filesystem
Try adding --filesystem=XXX to the truecrypt command (where XXX is the FS in the truecrypt volume).

You can also decrypt the volume without mounting using --filesystem=none , and mount manually using mount command

NIN101 2012-01-15 18:13

Re: TrueCrypt 7 with GUI and kernel crypto
 
Quote:

Originally Posted by Mr Wolf (Post 1150892)
So, how do I know which version of kernel power is installed?

uname -r. And please, next time do your research on such simple questions. So, what cipher are you using for that volume?

nman 2012-01-16 02:56

Re: TrueCrypt 7 with GUI and kernel crypto
 
I am using version 7.1. Estel's wrapper keeps telling me xts is not supported and keeps setting -nokernelcrypto

But I'm using KP49 - is there anything else I need to add or enable for kernel crypto to work?

Estel 2012-01-16 20:00

Re: TrueCrypt 7 with GUI and kernel crypto
 
nman, are you executing everything as a root? Otherwise, I haven't seen any situation, when it would fail to detect XTS support using latest (repositories) kernel.
---

If it isn't source of Your problems, a dirty workaround would be to set up Your custom small script, that does:
Code:

unset GTK2_RC_FILES
... and run truecrypt.real (actual binary) after that. This way, You do exactly what wrapper does for You, *except* the part checking for kernel support and setting '-m nokernelcrypto' otherwise.

Just be sure, that You *really* have proper kernel with proper support. You can cat /proc/crypto to see supported modes. If any of things listed there got XTS in name, you're good to go.

/Estel

woody14619 2012-01-16 20:12

Re: TrueCrypt 7 with GUI and kernel crypto
 
Quote:

Originally Posted by nman (Post 1151116)
I am using version 7.1. Estel's wrapper keeps telling me xts is not supported and keeps setting -nokernelcrypto

But I'm using KP49 - is there anything else I need to add or enable for kernel crypto to work?

Did you install the kernel-modules package as well? KP49 is pretty good about having most things built in, but this particular thing is a module. If you installed just the kernel and not the modules, and don't use some of the other advanced things (like h.e.n.) you may not have noticed that till now. :)

NIN101 2012-01-16 20:15

Re: TrueCrypt 7 with GUI and kernel crypto
 
Quote:

You can cat /proc/crypto to see supported modes. If any of things listed there got XTS in name, you're good to go.
IIRC, It'll only appear there if it the module is loaded. Thus, the best way to check is to take a look at /lib/modules/`uname -r` or to load it with modprobe.

nman 2012-01-16 21:07

Re: TrueCrypt 7 with GUI and kernel crypto
 
Thanks, I have modules installed...
No I wasn't running TC as root - when I do I don't get the error message from the wrapper.
Looks like that was it, but... when I run TC benchmark, results are the same.

I don't see xts when I do cat /proc/crypto...

Estel 2012-01-16 22:50

Re: TrueCrypt 7 with GUI and kernel crypto
 
nman, as stated on the first page, you *must* run truecrypt as a root. Benchmark won't show the difference, but trust me, You'll feel it on real volumes, in form or "goddamnit" errors, as truecrypt normally expect XTs support.

/Estel

nman 2012-01-17 15:17

Re: TrueCrypt 7 with GUI and kernel crypto
 
Thanks, working great.
And holy carp what a difference - copying 2GB file to encrypted partition, as user - 28minutes.
as root, presumably with kernelcrypto - 2 minutes!!! (which works out to about 20Mb/sec, about the same as for unencrypted copying!

Just side note in my defense :) Nothing on the first page about running as root...(maybe there is in other thread started by Estel).. might want to add that in. (or merge the threads...)

Estel 2012-01-18 00:02

Re: TrueCrypt 7 with GUI and kernel crypto
 
There was a proposition about merging threads - i liked to keep it kernel-power way (one thread for development problems/ideas, another one for generic "TrueCrypt eats my battery life and dog" type). Yet, I've also noticed, that keeping it separated is becoming troublesome, so when time permits, I may audit and re-write last remaining suggestions (with correct credits for NIN101, of course), and perform a /thread hijack ;)

Mr Wolf 2012-01-18 19:27

Re: TrueCrypt 7 with GUI and kernel crypto
 
Quote:

Originally Posted by NIN101 (Post 1150964)
uname -r. And please, next time do your research on such simple questions. So, what cipher are you using for that volume?

Ok... I updated to Kernel Power v49 and now it works! :)
Now, stupid question :p :
as I said, I installed this version:
http://i1209.photobucket.com/albums/...7forMaemo5.jpg
I updated to Kernel Power v49 and then installed Truecrypt 7.1-maemo6.
I started TrueCrypt from Xterminal: am I sure I'm using Truecrypt 7.1-maemo6 and not the previous version?
How do I know? If I click on "About", it only says: TrueCrypt 7.1.

Estel 2012-01-18 22:09

Re: TrueCrypt 7 with GUI and kernel crypto
 
Bulletproof approach - perform:
Code:

apt-get purge truecrypt
... watch carefully, if it succeed, then, try running 'truecrypt'a from xterm as root. If it doesn't start (*doesn't exist), install it again from the repos, and You'll be 100% sure, that You're using latest version :)

Before someone start to grill me - I know, there are more "proper" ways of checking it. Yet, this one seems to be least complicated and error prone.

/Estel

Mr Wolf 2012-01-18 22:30

Re: TrueCrypt 7 with GUI and kernel crypto
 
Ok... it worked just as you said! I removed and reinstalled!
Thanks!

chill 2013-02-25 04:38

Re: TrueCrypt 7 with GUI and kernel crypto
 
Help needed, please...I get the following error when trying to create a volume, after the formatting finishes:

/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.02.27 (2008-06-25)(compat) and kernel driver
Command failed

I've done some reading but can't come up with a concrete step to solve the problem. It looks like I need the dm module, but don't know where/how to get it. I am not a power kernel user.

Estel 2013-02-25 11:20

Re: TrueCrypt 7 with GUI and kernel crypto
 
Just install latest kernel-power (kp52).

chill 2013-02-25 21:59

Re: TrueCrypt 7 with GUI and kernel crypto
 
Quote:

Originally Posted by Estel (Post 1325012)
Just install latest kernel-power (kp52).

Hmmm, thanks, but having read about the issues with video playback (pre-kp52, though), I am a little wary.

(Don't mean to derail the thread to talking about kernel power here.)


All times are GMT. The time now is 00:47.

vBulletin® Version 3.8.8