Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started 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.
-
Here is a snapshot .
Seems , nobody here has tried .
-
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
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
-
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.
Do you use in boot the parameter "loop.max_loop=256"? like this example in grub menu.lst
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?
-
Hi althalus
That boot code has been obselete and totally unnecessary for a while now, hasn't it?
From the FAQs:
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.
-
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)
-
Hi Onyarian
Is the same bootcode max_loop=n and loop.max_loop=n?
According to:
http://www.mjmwired.net/kernel/Documentation/kernel-parameters.txt
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.
-
loop.max_loop=n causes n /dev/loopN device nodes to be created.
-
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.
-
Perhaps it could be considered to create the devices with tce.installed script of specific extension.
-
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.
-
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.
-
Yes, that's OK, lvm2.tcz should be in truecrypt.tcz.dep
-
Has anyone tied creating a encrpted file in truecrypt?
I did & got stuck ater setting password.
See attached image.
-
Yes!
-
truecrypt.tcz.dep
fuse.tcz
gtk2.tcz
lvm2.tcz
all dependencies:
-
and finally:
/etc/group
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
#
# 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!
-
of course in
/opt/.filetool.lst
etc/group
etc/sudoers
Hope that all helps to you!
-
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 ?
-
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.
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.
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.
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!
-
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.
-
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 ?
-
It looks like xonclock.
-
Yes, it's xonclock
settings:
/home/tc/.X.d/xonclock
xonclock &
/home/tc/.xonclockrc
#
# --- 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
-
I will try it .
Thank you.