Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: manit123 on April 15, 2013, 03:49:19 AM

Title: truecrypt does not work
Post by: manit123 on April 15, 2013, 03: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.
Title: Re: truecrypt does not work
Post by: manit123 on April 16, 2013, 11:07:39 PM
Here is a snapshot .
Seems , nobody here has tried .
Title: Re: truecrypt does not work
Post by: Onyarian on April 17, 2013, 11:19:00 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.

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

Title: Re: truecrypt does not work
Post by: althalus on April 17, 2013, 09:02:07 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.

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?
Title: Re: truecrypt does not work
Post by: Rich on April 17, 2013, 10:21:22 PM
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.
Title: Re: truecrypt does not work
Post by: Onyarian on April 18, 2013, 01: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
 (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
 (https://wiki.archlinux.org/index.php/TrueCrypt#Failed_to_set_up_a_loop_device)

Title: Re: truecrypt does not work
Post by: Rich on April 18, 2013, 09:53:14 AM
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.
Title: Re: truecrypt does not work
Post by: gerald_clark on April 18, 2013, 11:01:14 AM
loop.max_loop=n causes n /dev/loopN device nodes to be created.
Title: Re: truecrypt does not work
Post by: althalus on April 18, 2013, 04: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.
Title: Re: truecrypt does not work
Post by: tinypoodle on April 18, 2013, 04:59:59 PM
Perhaps it could be considered to create the devices with tce.installed script of specific extension.
Title: Re: truecrypt does not work
Post by: manit123 on April 26, 2013, 06: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.
Title: Re: truecrypt does not work
Post by: manit123 on April 27, 2013, 08: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.
Title: Re: truecrypt does not work
Post by: Onyarian on April 27, 2013, 10:40:10 AM
Yes, that's OK, lvm2.tcz should be in truecrypt.tcz.dep
Title: Re: truecrypt does not work
Post by: manit123 on May 02, 2013, 09:29:36 PM
Has anyone tied creating a encrpted file in truecrypt?
I did  & got stuck ater setting password.
See attached image.
Title: Re: truecrypt does not work
Post by: Onyarian on May 03, 2013, 11:09:09 AM
Yes!
Title: Re: truecrypt does not work
Post by: Onyarian on May 03, 2013, 11:22:27 AM
truecrypt.tcz.dep
Quote
fuse.tcz
gtk2.tcz
lvm2.tcz

all dependencies:
Title: Re: truecrypt does not work
Post by: Onyarian on May 03, 2013, 11:40:58 AM
and finally:

/etc/group
Quote
root:x:0:
lp:x:7:lp
nogroup:x:65534:
staff:x:50:
audio:x:1000:tc
cdrom:x:1010:tc
vboxusers:x:100:tc
truecrypt:x:1100:tc                    <---------------------------------
scanner:x:80:tc
clamav:x:1002:

and
/etc/sudoers
Quote
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
 
# Host alias specification

# User alias specification

# Cmnd alias specification
 
# User privilege specification
root    ALL=(ALL) ALL
tc   ALL=NOPASSWD: ALL
%truecrypt ALL=(root) NOPASSWD: /usr/local/bin/truecrypt                                 <---------------------------

I think that's all!
Title: Re: truecrypt does not work
Post by: Onyarian on May 03, 2013, 11:45:50 AM
of course in

/opt/.filetool.lst
Quote
etc/group
etc/sudoers

Hope that all helps to you!
Title: Re: truecrypt does not work
Post by: manit123 on May 13, 2013, 07:57:35 AM
i got access to internet after a week hiatus.

Anyway ,  Onyarian - do you want to say that my password is improper . Had it been complicated enough the 'next' button shown in my screenshot would not remain grayed out ?

Or -  is it that i should see if fuse , gtk2 , lvm2 are mounted OR all dependencies in your attached screenshot should be mounted ?
Also /etc/group & /etc/sudoers shoud be same as quoted ?
Title: Re: truecrypt does not work
Post by: Onyarian on May 13, 2013, 09:37:39 AM
Quote
Anyway ,  Onyarian - do you want to say that my password is improper . Had it been complicated enough the 'next' button shown in my screenshot would not remain grayed out ?

I don't know, but it works for me and my password has 26 letters, I tested with passwords of 8 letters and also works.

Quote
Or -  is it that i should see if fuse , gtk2 , lvm2 are mounted OR all dependencies in your attached screenshot should be mounted ?

just check that truecrypt.dep has those three dependencies.
the screenshot simply reflects the remaining dependencies that are added with this three and it's extracted from the information given in AppsBrowser, I've put it here for you to check that all dependencies are correctly mounted.

Quote
Also /etc/group & /etc/sudoers shoud be same as quoted ?

I think it was discussed a while, the sudoers was to avoid having to enter the administrator password, if I remember, I found it googling and for this reason I have put it.

The last thing I can tell you is that you should check that dm_crypt and dm_mod are loaded in lsmod.
Quote
tc@ord:~$ lsmod
Module                  Size  Used by    Tainted: P 
dm_crypt               16384  1
ipt_REJECT             12288  1
xt_state               12288  1
...
dm_mod                 40960  3 dm_crypt
...
parport_pc             24576  0
parport                24576  2 ppdev,parport_pc
loop                   16384 406
tc@ord:~$


In summary, It really works for me for a long time, and I have tried to tell you all my settings to see if it works for you imitating it.

I don't know in what more can I help you. Hope that finally works!

Title: Re: truecrypt does not work
Post by: manit123 on May 13, 2013, 09:37:45 PM
thanks Onyarian .
After installing fuse.tcz , lvm2.tcz , truecrypt.tcz , Everything works irrespective of password length.
Also dependencies shown in screenshot get mounted too.
I did not change any other file.

Title: curious
Post by: manit123 on May 16, 2013, 12:39:40 AM
i saw clock on desktop in http://forum.tinycorelinux.net/index.php?action=dlattach;topic=15235.0;attach=3796

Can you tell me the app name ?
Title: Re: truecrypt does not work
Post by: curaga on May 16, 2013, 03:01:59 AM
It looks like xonclock.
Title: Re: truecrypt does not work
Post by: Onyarian on May 16, 2013, 01:08:01 PM
Yes, it's xonclock
settings:
/home/tc/.X.d/xonclock
Quote
xonclock &

/home/tc/.xonclockrc
Quote
#
# --- xonclock configuration file example ---
#
# 1) any comments are followed by '#' symbol
# 2) if there is no value after '=' then xonclock ignore it and uses
#    default internal value
# 3) to get full description of parameter may be set see xonclock manual page
# 4) to set any parameter use syntax: "param = value"
#

#
# path to clock skin
skin = /usr/local/share/xonclock/skins/chrome-128-bs.png

#
# base clock position:
# (TOP-LEFT | TOP-CENTER | TOP-RIGHT | MIDDLE-LEFT |
# MIDDLE-CENTER | MIDDLE-RIGHT | BOTTOM-LEFT |
# BOTTOM-CENTER | BOTTOM-RIGHT)
position = MIDDLE-RIGHT

#
# vertical and gorizontal offset (pixels)
offset-v =118
offset-h =

#
# length and width of hours hand (pixels)
hour-length =
hour-width =

#
# length and width of minutes hand (pixels)
minute-length =
minute-width =

#
# length and width of seconds hand (pixels)
second-length =
second-width =

#
# colors of clock hands
color-hour =                  # color in form R/G/B/A
color-minute =                # color in form R/G/B/A
color-second = 203/83/93/255  # color in form R/G/B/A

#
# seconds rendering flag
show-seconds = true

#
# how many seconds sleep before render the clock at startup
sleep =

#
# date rendering flag
show-date = false             # (true | false)

#
# date string params
date-font =                   # font name
date-color =                  # color in form R/G/B/A
date-format = %G-%m-%d        # date-render format
date-position =               # format the same as for
                              # position parameter (see above)
date-offset-v =               # pixels
date-offset-h =               # pixels
date-clip-format = %G-%m-%d   # how represent date string when
                              # copying to clipboard

#
# turn off override-redirect flag
no-winredirect = false        # (true | false)

#
# where the center of clock hands should be
hands-rotation-axis =         # X/Y pixels

#
# keep clock on top
top = false                   # (true | false)

#
# clock hands overlapping size
overlap =                     # pixels

#
# make clock movable
movable = true                # (true | false)

#
# use background (for skins with aplpha channel)
use-background = false        # (true | false)

#
# microsecond interval to wait until obscured
# windows have been refreshed (useful only if
# use-background = true) while retrieving new
# background
remerge-sleep = 5000

#
# to customize time zone
tz-hour = 0
tz-min = 0

#
# alpha channel threshold value
alpha-threshold = 127
Title: Re: truecrypt does not work
Post by: manit123 on May 27, 2013, 06:00:36 AM
I will try it .
Thank you.