Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => dCore x86 Imported Extensions => Topic started by: Onyarian on October 27, 2013, 06:03:43 AM

Title: kernel device-mapper driver
Post by: Onyarian 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.)

Title: Re: kernel device-mapper driver
Post by: Jason W 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.
Title: Re: kernel device-mapper driver
Post by: Onyarian 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

Title: Re: kernel device-mapper driver
Post by: Jason W 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.
Title: Re: kernel device-mapper driver
Post by: Jason W 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.
Title: Re: kernel device-mapper driver
Post by: Onyarian 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.
Title: Re: kernel device-mapper driver
Post by: Jason W 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.

Title: Re: kernel device-mapper driver
Post by: Jason W 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.
Title: Re: kernel device-mapper driver
Post by: Jason W 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.
Title: Re: kernel device-mapper driver
Post by: Onyarian 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:
Title: Re: kernel device-mapper driver
Post by: Jason W 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.

Title: Re: kernel device-mapper driver
Post by: Onyarian 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.
Title: Re: kernel device-mapper driver
Post by: Jason W 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.
Title: Re: kernel device-mapper driver
Post by: Onyarian 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.
Title: Re: kernel device-mapper driver
Post by: Jason W 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.
Title: Re: kernel device-mapper driver
Post by: Onyarian on December 01, 2013, 04:16:22 PM
Hi Jason,

now I have had time to make some proves and the results are the same  :(

Pristine installation:
   - download dCore-5.13.11.06.iso
   - in /mnt/sda1/boot/grub/menu.lst
Quote
###dcore50###
title dcore Linux 5.0 prueba
    root (hd0,0)
    kernel /boot/dc5c/vmlinuz quiet loglevel=3 nozswap tce=sda1/dce5c
    initrd /boot/dc5c/dCore.gz

   -download to /mnt/sda1/dce5c/sce/ the files: wireless-3.8.10-tinycore.sce wireless.sce and wifi.sce
   -reboot

in prompt:
   - loadsce wireless-3.8.10-tinycore.sce
   - loadsce wireless.sce
   - loadsce wifi.sce
   - wifi.sh -- select wireless connection
   - importsce -b Xprogs
   - importsce -b flwm_topside
   - importsce -b wbar
   - importsce -b xorg-all
  - sudo vi /mnt/sda1/boot/grub/menu.lst and added:
Quote
###dcore50###
title dcore Linux 5.0 prueba
    root (hd0,0)
    kernel /boot/dc5c/vmlinuz quiet loglevel=3 nozswap tce=sda1/dce5c desktop=flwm_topside icons=wbar loop.max_loop=256
    initrd /boot/dc5c/dCore.gz
   - reboot

Now with the flwm desktop:
importsce raid-dm-3.8.10-tinycore
importsce truecrypt-gtk
importsce truecrypt

loadsce raid-dm-3.8.10-tinycore.sce
loadsce truecrypt-gtk.sce
loadsce truecrypt.sce

truecrypt
   - Create volume
      - create encrypted file container
      - standard TrueCrypt volume
      - volume location: /home/tc/prueba1
      - encryption algorithm: AES
      - encryption hash: SHA-512
      - volumen size: 30 Mb
      - password: word with 20 characters
      - filesystem type: ext2
      - I will mount the volume only on linux
      - format
and HANGS but there is a file prueba1 in /home/tc

making the same but with:
      - filesystem type: fat
      - format
and there is no error and creates a file /home/tc/prueba2

------------------------------------------

To mount one of this encrypted volume:

truecrypt
   - select file: /home/tc/prueba1 or /home/tc/prueba2
   - mount
   - password: word with 20 characters
and HANGS   >:(

Hope you can make the same steps as I did.  :(


Title: Re: kernel device-mapper driver
Post by: Jason W on December 01, 2013, 05:57:19 PM
Ok, I will do my best to reproduce.
Title: Re: kernel device-mapper driver
Post by: Jason W on December 01, 2013, 07:19:19 PM
So simple when I started from scratch, i can't believe I missed it before, a dependency issue which is almost always the case when one copy works and another doesn't.

libssh-4 added to truecrypt deps. 

Also, I had forgot to add truecrypt to the truecrypt-gtk dependency list, added now so no need to import both truecrypt and truecrypt-gtk, one or the other will work as planned.
Title: Re: kernel device-mapper driver
Post by: Onyarian on December 02, 2013, 11:42:02 AM
Sorry Jason, bad news.

I have deleted the truecrypts sce's and all the downloaded debs to make a newly importsce from truecrypt.

I see now that in the import is truecrypt and libssh-4 downloaded and merged.

But this don't make anything and hangs another time in the same situation, when doing an encrypted volume, and when mounting a volume.

When calling truecrypt from a terminal there is no errors when it hangs.

Can I make some other tests to identify the problem?
Title: Re: kernel device-mapper driver
Post by: Jason W on December 02, 2013, 11:49:57 AM
Do you have the mount package installed?  If not it may be busybox's mount.

I will check it out later today or romorrow, since something happened between me seeing it hang and it working after I installed libssh-4.
Title: Re: kernel device-mapper driver
Post by: Onyarian on December 04, 2013, 12:45:41 PM
I importsce mount and create mount.sce but it is merged from other previously downloaded debs and nothing is downloaded to create it.

then loadsce mount, raid-dm-3.8.10-tinycore and truecrypt-gtk and nothing else as the previous hang is happen.

Title: Re: kernel device-mapper driver
Post by: Jason W on December 04, 2013, 06:44:34 PM
Ok, it still works flawlessly with my full desktop installed, so I am convinced it is a dependency issue. I just have not had the time to spend to hunt it down.  I will try though as time permits.
Title: Re: kernel device-mapper driver
Post by: Onyarian on April 02, 2014, 05:18:39 PM
Hi Jason,

I want to migrate two PC's from TC to dCore, but I need the functionality of truecrypt. Is there anything I can do to find which is the missing dep?
or perhaps I can install your full desktop to prove it.
Title: Re: kernel device-mapper driver
Post by: Jason W on April 02, 2014, 07:01:00 PM
I re-imported a file list that had Xprogs, xorg-all, leafpad, icewm, raid-dm-3.8.13-tinycore, and truecrypt.  Truecrypt worked as expected.  attached is my list of installed packages.
Title: Re: kernel device-mapper driver
Post by: Onyarian on April 04, 2014, 11:49:24 AM
Thanks Jason, with your imported files it runs OK, now I have soon one PC working on your basis and my configuration. Now I am investigating more in the other PC what causes it.
Title: Re: kernel device-mapper driver
Post by: Jason W on April 04, 2014, 11:52:06 AM
Great, glad to hear it is working. 
Title: Re: kernel device-mapper driver
Post by: Onyarian on April 04, 2014, 01:10:11 PM
Investigating in the other PC I found that it works when I put raid and truecrypt in onboot after Xprogs and xorg-all (before all other files in onboot).

Finally I got it. Thanks!  ;D