WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: truecrypt does not work  (Read 8071 times)

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
truecrypt does not work
« on: April 15, 2013, 06:49:19 AM »
because it says 'failed to set up loop device /mnt/sda1/sum/private/encrypted' when mount button is pressed .
There were 64 slots to mount encrypted file . None of them worked .
Even running application as root did not help .
Copying the encrypted volume to /home was in-vain too.

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: truecrypt does not work
« Reply #1 on: April 17, 2013, 02:07:39 AM »
Here is a snapshot .
Seems , nobody here has tried .
« Last Edit: August 15, 2021, 10:40:18 AM by Rich »

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: truecrypt does not work
« Reply #2 on: April 17, 2013, 02:19:00 PM »
I normally use Truecrypt without any problem to create or mount encrypted volume or disk.

Perhaps you should be more specific about the conditions you use to mount a volume, or the conditions and/or setups you use TinyCore.

Do you use in boot the parameter "loop.max_loop=256"? like this example in grub menu.lst

Quote
title Tinycore Linux 4.7
    root (hd0,0)
    kernel /boot/vmlinuz quiet lang=es_ES@euro tce=sda1/tce restore=sda1/tce loop.max_loop=256
    initrd /boot/core.gz


Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: truecrypt does not work
« Reply #3 on: April 18, 2013, 12:02:07 AM »
I normally use Truecrypt without any problem to create or mount encrypted volume or disk.

Perhaps you should be more specific about the conditions you use to mount a volume, or the conditions and/or setups you use TinyCore.

I can verify the problem. On TC 4.7.6, install truecrypt thru app browser, try and create a new volume. It looks like it is working at first, then after a while it errors out with the error message manit123 reported.
Quote
Do you use in boot the parameter "loop.max_loop=256"? like this example in grub menu.lst

Quote
title Tinycore Linux 4.7
    root (hd0,0)
    kernel /boot/vmlinuz quiet lang=es_ES@euro tce=sda1/tce restore=sda1/tce loop.max_loop=256
    initrd /boot/core.gz
That boot code has been obselete and totally unnecessary for a while now, hasn't it?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: truecrypt does not work
« Reply #4 on: April 18, 2013, 01:21:22 AM »
Hi althalus
Quote
That boot code has been obselete and totally unnecessary for a while now, hasn't it?
From the FAQs:
Quote
Add the cheatcode max_loop=n to your boot line, where n is the number of loop devices you need, up to 255.

 Note that this bootcode should not be used with 3.x or newer, unless you know you need it.

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: truecrypt does not work
« Reply #5 on: April 18, 2013, 04:29:08 AM »
Is the same bootcode max_loop=n and loop.max_loop=n?

Only the change from the first to the second was sufficient to work truecrypt for me, so I use the last one without problems in truecrypt since the post:


http://forum.tinycorelinux.net/index.php/topic,7693.msg41910.html#msg41910


Perhaps could help:


https://wiki.archlinux.org/index.php/TrueCrypt#Failed_to_set_up_a_loop_device


« Last Edit: April 18, 2013, 04:36:11 AM by Onyarian »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: truecrypt does not work
« Reply #6 on: April 18, 2013, 12:53:14 PM »
Hi Onyarian
Quote
Is the same bootcode max_loop=n and loop.max_loop=n?
According to:
http://www.mjmwired.net/kernel/Documentation/kernel-parameters.txt
Quote
9    Module parameters for loadable modules are specified only as the
10   parameter name with optional '=' and value as appropriate, such as:
11   
12      modprobe usbcore blinkenlights=1
13   
14   Module parameters for modules that are built into the kernel image
15   are specified on the kernel command line with the module name plus
16   '.' plus parameter name, with '=' and value if appropriate, such as:
17   
18      usbcore.blinkenlights=1
The version you are using is for a module built into the kernel, yet, according to this:
http://forum.tinycorelinux.net/index.php/topic,14983.msg88124.html#msg88124
loop is built as a loadable module.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: truecrypt does not work
« Reply #7 on: April 18, 2013, 02:01:14 PM »
loop.max_loop=n causes n /dev/loopN device nodes to be created.

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: truecrypt does not work
« Reply #8 on: April 18, 2013, 07:30:46 PM »
So manually create an unused /dev/loopN device works too (I hate rebooting. Everything halfway done has to be picked up all over again). I think it would be mighty helpful if the info file could be updated to reflect the fact that truecrypt works best when that boot code is added.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: truecrypt does not work
« Reply #9 on: April 18, 2013, 07:59:59 PM »
Perhaps it could be considered to create the devices with tce.installed script of specific extension.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: truecrypt does not work
« Reply #10 on: April 26, 2013, 09:53:00 AM »
sorry for my late reply . just got chance to get online today.

I will try 'loop.max_loop=n' in bootcode to see if that helps.

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: truecrypt does not work
« Reply #11 on: April 27, 2013, 11:42:14 AM »
That worked.
Acutally I still see 64 slots in truecrypt window but the files gets mounted to folder /mnt/truecrypt .
No problem , whatsoever .
Just i would like to mention that truecrypt asked about dmsetup initially as shown in attached screenshot .
Installing lvm2.tcz overcame that.
« Last Edit: August 15, 2021, 10:41:06 AM by Rich »

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: truecrypt does not work
« Reply #12 on: April 27, 2013, 01:40:10 PM »
Yes, that's OK, lvm2.tcz should be in truecrypt.tcz.dep

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: truecrypt does not work
« Reply #13 on: May 03, 2013, 12:29:36 AM »
Has anyone tied creating a encrpted file in truecrypt?
I did  & got stuck ater setting password.
See attached image.
« Last Edit: August 15, 2021, 10:41:34 AM by Rich »

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: truecrypt does not work
« Reply #14 on: May 03, 2013, 02:09:09 PM »
Yes!
« Last Edit: August 15, 2021, 10:42:40 AM by Rich »