WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: kernel device-mapper driver  (Read 13806 times)

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
kernel device-mapper driver
« on: October 27, 2013, 06:03:43 AM »
Hi,

I have import a fuse.sce and a lvm2.sce, then I loadsce this two and execute truecrypt.
Now, with truecrypt I can create an encrypted volume, but when I go to open this encrypted volume it comes the next error:

Quote
/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Command failed

Perhaps is necessary to activate it in kernel.

After that I want to combine fuse.sce, lvm2.sce and truecrypt in one truecrypt.sce.
Is possible to remit this truecrypt.sce to the repo? bacause is impossible to make directly an truecrypt.sce from the debian repo.

*(I have made the changes in boot parameters, /etc/group, and /etc/sudoers to make work truecrypt.)


Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: kernel device-mapper driver
« Reply #1 on: October 27, 2013, 08:46:13 AM »
"importsce raid-dm-3.8.10-tinycore" to get the dm-mod kernel module.


I am open to creating a meta package for dependencies of things like truecrypt that are not available in Debian to ease installation.   And for things useful that are not available in Debian, I will consider hosting a premade package.

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: kernel device-mapper driver
« Reply #2 on: October 27, 2013, 11:59:45 AM »
Thanks Jason,

with raid-dm-3.8.10-tinycore I get a step more, but now after mounting the encrypted file truecrypt hangs and I don't see any error. In /mnt there is a device dm0 (OK) and a truecrypt1 folder (not OK) but not another device truecrypt1 to work with. I have to make more proves.

With the meta package, perhaps there is an option to send scripts, something like:
Quote
importsce fuse
importsce lvm2
importsce raid-dm-3.8.10-tinycore
loadsce fuse
loadsce lmv2
loadsce raid-dm-...
cp /tmp/tcloop/fuse /tmp/package
cp /tmp/tcloop/lvm2 /tmp/package
cp /tmp/tcloop/raid-dm... /tmp/package
cp /home/tc/truecrypt/truecrypt /tmp/package/usr/bin
cp /home/tc/truecrypt/... /tmp/package/....
mksquashfs package truecrypt.sce
cp /tmp/truecrypt.sce /mnt/sda1/dce5/sce/
....or something so


Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: kernel device-mapper driver
« Reply #3 on: October 27, 2013, 02:29:02 PM »
ok, let me try it out also and perhaps be able to see what the issue is.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: kernel device-mapper driver
« Reply #4 on: October 27, 2013, 04:15:02 PM »
Here is what I did to make a truecrypt.sce, and it is working here to create and mount/unmount a  container.

First, get truecrypt:

wget http://www.truecrypt.org/download/truecrypt-7.1a-linux-x86.tar.gz



Then  "importsce truecrypt-dep"

Move the sce to current dir (note the period at the end of the line, it is part of the command for those not familiar):

mv /etc/sysconfig/tcedir/sce/truecrypt-dep.sce .

Untar the truecrypt tarball:

sudo tar xvf truecrypt-7.1a-linux-x86.tar.gz

Then run the install utility:

sudo ./truecrypt-7.1a-setup-x86

It will ask you whether to install to system or make a package in /tmp, option #2 is make a package in /tmp and do that.

Then unsquash the deps sce and delete it if desired:

sudo unsquashfs -d pkg truecrypt-dep.sce
rm truecryptdep.sce

then untar the package in /tmp to that pkg/ dir:

sudo tar xvf /tmp/truecrypt_7.1a_i386.tar.gz -C pkg/

Now make an sce package of it:

mksquashfs pkg/ truecrypt.sce
mv truecrypt.sce /etc/sysconfig/tcedir/sce/

loadsce truecrypt

#####

If you don't need truecrypt to be part of the dependency sce, it is simpler.

wget http://www.truecrypt.org/download/truecrypt-7.1a-linux-x86.tar.gz

importsce truecrypt-dep

sudo tar xvf truecrypt-7.1a-linux-x86.tar.gz

sudo ./truecrypt-7.1a-setup-x86   #  Pick option 2

sudo tar xvf /tmp/truecrypt_7.1a_i386.tar.gz -C pkg/

sudo mksquashfs pkg/ truecript.sce

mv truecrypt.sce /etc/sysconfig/tcedir/sce/

loadsce truecrypt truecrypt-dep



Though I am not totally against hosting packages or fetch scripts, packages that are not legacy go out of date so fast, and scripts do the same.  But how-to's don't get broken by a package update upstream, or if download location has changed, etc.  Submitted README's are always welcome and will be at least considered.

I will make a meta package called truecrypt-dep, it is available now.  I will also make a README for truecrypt outlining this.
« Last Edit: October 27, 2013, 04:17:22 PM by Jason W »

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: kernel device-mapper driver
« Reply #5 on: October 27, 2013, 06:07:08 PM »
Thanks Jason, I follow your instructions and make the truecrypt.sce directly  :D

But  :(  with the same results as mine.

Truecrypt create the encrypted file but when going to open it, truecrypt hangs
I prove it in my laptop and desktop-pc with newly dcore5 installation, in all two truecrypt hangs!

Tomorrow new proves.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: kernel device-mapper driver
« Reply #6 on: October 27, 2013, 06:15:03 PM »
What are the exact commands you are using?

I created a container:

sudo truecrypt -c /mnt/sda2/testfile

I answered the questions in order with

1) Normal
2) AES
2) SHA-512
4) Linux ext3
no keyfile
entered the 320 random characters.

Mounted with

sudo truecrypt /mnt/sda2/testfile /tmp/3

I have not tried with a complete partition though, I will do that tonight.


Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: kernel device-mapper driver
« Reply #7 on: October 27, 2013, 06:42:23 PM »
Creating and mounting an entire partition works here, but I have gnome installed.  I will try again later without gnome to make sure there is not a dependency issue.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: kernel device-mapper driver
« Reply #8 on: October 27, 2013, 08:11:04 PM »
truecrypt-gui-dep meta package now also available, and the gui works with it (creating, mounting, unmounting) running with xorg-all, Xprogs, and flwm_topside installed.

Since truecrypt is redistributable and it literally takes one minute to make the package, I uploaded the package and there are two to choose from - truecrypt and truecrypt-gtk.  The dep packages are still there and can be used in the case someone wants to make their own truecrypt package and just load the needed deps.
« Last Edit: October 27, 2013, 08:41:59 PM by Jason W »

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: kernel device-mapper driver
« Reply #9 on: November 02, 2013, 04:22:04 PM »
Sorry Jason,

I have made a lot of combinations to prove truecrypt in two pc's and everytime with the same results: it hangs when going to mount the encrypted file.

I have proved with my normal configuration sceboot.lst:
Quote
Xprogs
openbox
openbox-themes
graphics-3.8.10-tinycore
wbar
xorg-all
fbpanel
xfe
conky
wireless
wifi
firefox

and with a newly configuration created, sceboot.lst
Quote
Xprogs
flwm_topside
wbar
xorg-all
wireless
wifi

and prove with truecrypt.sce and truecrypt-gtk.sce
with fat and ext3 encrypted files, etc.

two screenshots:
« Last Edit: August 15, 2021, 10:56:25 AM by Rich »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: kernel device-mapper driver
« Reply #10 on: November 02, 2013, 05:12:31 PM »
I am assuming the raid-dm-3.8.10-tinycore kernel package is installed?  I will try to reproduce though I have not been able to get truecrypt to hang.

« Last Edit: November 02, 2013, 05:14:49 PM by Jason W »

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: kernel device-mapper driver
« Reply #11 on: November 03, 2013, 05:15:40 AM »
Yes, raid-dm-3.8.10-tinycore.sce is installed.

And as boot parameter the "loop.max_loop=256", without this it says in the moment of mounting the encrypted file that it can't create a loop device.

I have proved to execute  as tc user and as root with the same results.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: kernel device-mapper driver
« Reply #12 on: November 03, 2013, 07:18:07 AM »
Ok, I see the cannot create a loop device thing, and yeah either using the max_loop= boot paramater and staying within that, or creating a loop device manually allows it to work.  Upon googling, it appears that it is a truecrypt thing, and either busybox mount or the full version of mount creates a loop device when uring loadsce.

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: kernel device-mapper driver
« Reply #13 on: November 04, 2013, 08:00:17 AM »
Hi Jason,

another prove with the same results. I have converted the truecrypt.tcz from 4.77 repository, who works OK in 4.77, into truecrypt.sce, then in dCore5 loadsce this truecrypt with fuse, lvm2 and raid-dm-3.8.10-tinycore and it hangs another time in the moment of mounting the encrypted file.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: kernel device-mapper driver
« Reply #14 on: November 04, 2013, 05:21:17 PM »
Can you give me the exact steps taken, options chosen, etc to the point of failure? Maybe with the exact same options chosen I can reproduce it.