Reply
Thread Tools
Posts: 37 | Thanked: 33 times | Joined on Feb 2008 @ Ukraine, Kharkiv
#31
Yes " type vfat"
 
Posts: 28 | Thanked: 1 time | Joined on Jan 2008
#32
pls help me. If I try to mount a truecrypt volume with the option "mount a crypt volume" I get the error message "Mount failed. File System Type or Password incorrect".

I tried a container which I have created on the pc and also one which I created with easycrypt on the N800.
I tried fat and vfat options. But it is still not working.

I have inserted the following lines in the /etc/suoers:
Code:
user ALL = NOPASSWD: /usr/bin/truecrypt
user ALL = NOPASSWD: /sbin/insmod
user ALL = NOPASSWD: /sbin/lsmod
user ALL = NOPASSWD: /sbin/mkfs.ext2
user ALL = NOPASSWD: /sbin/mkfs.ext3
user ALL = NOPASSWD: /sbin/mkfs.vfat
user ALL = NOPASSWD: /bin/chown
Have I missed something??

If I start easycrypt with /usr/bin/easycrypt.sh and click on the mount button, the program closes with the following message:

Code:
Clicked Open Event!
looking for truecrypt
found truecrypt
looking for device mapper-module
device already loaded
python[3361]: GLIB ERROR ** GLib - The thread system is not yet initialized.
aborting...
any suggestions??
 
Securix's Avatar
Posts: 107 | Thanked: 26 times | Joined on Jan 2008 @ New Jersey
#33
Which version of Python do you have installed (or running by default)?

EC has only been tested with 2.5.x and uses the standard threading library.

Also to be sure, which kernel version?

When I click mount, I get:

python[1525]: GLIB DEBUG ConIc - con_ic_connection_send_event(0x2439e8, KIKI, WLAN_ADHOC, 0)

(where KIKI is the hostname of my N800)

or if I'm not connected to a WLAN, I get

python[1525]: GLIB DEBUG ConIc - con_ic_connection_send_event(0x2439e8, (null), (null), 0)

And it goes through to the next step...
 
Posts: 28 | Thanked: 1 time | Joined on Jan 2008
#34
thx for the reply. I have python2.5 installed.
The problem for this GLIB ERROR was that I have run truecrypt as root.

But I still get the error "Mount failed. File System Type or Password incorrect".

Now when I am in user mode I get the follogwing when I create a new volume:
Code:
clicked tray
doing create event
LOCATION_PRESSED 1
/home/user/MyDocs/volume.tc selected
0
Calculated mount is /volume.tc
/home/user/MyDocs
size left 6032692
got password now doing action create
1
/home/user/MyDocs/volume.tc

Enter user's or root's system password:

/home/user/MyDocs/volume.tc
[]
ok lets bosh the old one
deleting crypt /home/user/MyDocs/volume.tc
rm: cannot remove '/home/user/MyDocs/volume.tc': No such file or directory

SizeOfCrypt Started /home/user/MyDocs/volume.tc
need this to make crypt silently
chosen fs : fat
truecrypt --disable-progress --encryption AES --hash Whirlpool --filesystem fat --size 1M --type normal --random-source /tmp/.easycrypt-random --o -c /home/user/MyDocs/volume.tc
SpecialCommandRunner job: create truecrypt --disable-progress --encryption AES --hash Whirlpool --filesystem fat --size 1M --type normal --random-source /tmp/.easycrypt-random --o -c /home/user/MyDocs/volume.tc
Traceback (most recent call last):
File "/usr/bin/EasyCrypt.py", line 916, in afterPasswordDoAction
if self.makeCrypt(self.crypt_size.get_value()):
File "/usr/bin/EasyCrypt.py", line 726, in makeCrypt
percentDone = (float(current.returnString) / targetSizeInBytes) *100
ValueError: invalid literal for float(): sh: stat: not found
clearing crypt from list
Now when I try to mount the volume I get:
Code:
clicked tray
Clicked Open Event!
looking for truecrypt
err:
found truecrypt
looking for device mapper module
device already loaded
/home/user/MyDocs/volume.tc selected
Calculated mount is /volume.tc

Enter user's or root's system password:

/home/user/MyDocs/volume.tc
[]
Checking for crypt /home/user/MyDocs/volume.tc
got password now doing action open
Opening crypt with mount point : True
chosen fs : msdos
Opening /home/user/MyDocs/volume.tc at /home/user/MyDocs/file
checking mountpoint /home/user/MyDocs/file
raw mountpoint /home/user/MyDocs/file
home dir /home/user/
truecrypt -i --filesystem msdos
/home/user/MyDocs/volume.tc /home/user/MyDocs/file test
SpecialCommandRunner job: open truecrypt --filesystem msdos -i
Enter user's or root's system password:
chowning mountpath to user:users

Enter user's or root's system password:

/home/user/MyDocs/volume.tc
[]
clearing crypt from list
Seems that also something goes wrong when i create a volume. But I also can't mount a pc-volume.
 
Securix's Avatar
Posts: 107 | Thanked: 26 times | Joined on Jan 2008 @ New Jersey
#35
Hmm...

Well the first strange thing is that it's ok if you run truecrypt as root. It should work fine.

Not sure why you're getting the "Enter user's or root's system password:" thing though. I never get that, so I'm wondering if there's something else in sudoers or other permissions that is complaining.

Do you have "red-pill" mode activated?

One thing I'd try is to do some truecrypt tests from a command line, whether you do it from the N8x0's own shell or ssh.

Try building a test crypt file interactively:

truecrypt -c

then mount it interactively:

truecrypt -i

If you do it as 'user' you may need to do

sudo truecrypt -c
and sudo truecrypt -i

See if you get any errors...

Last edited by Securix; 2008-04-10 at 04:05.
 
Posts: 28 | Thanked: 1 time | Joined on Jan 2008
#36
I tried it in red pill and in blue pill mode, but it leads to the same error.

I tried it with truecrypt -c and truecrypt -i via ssh and it works. I dismounted it and remounted and the changes were saved.

My complete /etc/sudoers file:
Code:
### Automatically added by update-sudoers start ###
Defaults env_check+="HOME DISPLAY"
Defaults env_keep+="HOME DISPLAY"
Defaults env_reset
user ALL = NOPASSWD: /usr/sbin/gainroot
user ALL = NOPASSWD: /usr/sbin/mmc-mount /dev/mmcblk0 /media/mmc1
user ALL = NOPASSWD: /usr/sbin/mmc-mount /dev/mmcblk0p1 /media/mmc1
user ALL = NOPASSWD: /bin/umount /media/mmc1,/bin/umount -l /media/mmc1
user ALL = NOPASSWD: /usr/sbin/osso-usb-mass-storage-enable.sh, /usr/sbin/osso-usb-mass-storage-disable.sh
user ALL = NOPASSWD: /sbin/mkdosfs /dev/mmcblk0*, /usr/sbin/mmc-rename /dev/mmcblk0*
user ALL = NOPASSWD: /etc/init.d/af-base-apps stop , /etc/osso-af-init/gconf-daemon.sh stop
user ALL = NOPASSWD: /etc/init.d/af-base-apps start , /etc/osso-af-init/gconf-daemon.sh start
user ALL = NOPASSWD: /etc/init.d/osso-systemui restart
user ALL = NOPASSWD: /usr/sbin/gconf-clean.sh
user ALL = NOPASSWD: /usr/sbin/chroot /mnt/initfs /usr/bin/retutime *
user ALL = NOPASSWD: /sbin/insmod /mnt/initfs/lib/modules/current/g_file_storage.ko stall=0 file=/dev/mmcblk0
user ALL = NOPASSWD: /sbin/insmod /mnt/initfs/lib/modules/current/g_ether.ko
user ALL = NOPASSWD: /sbin/rmmod g_file_storage
user ALL = NOPASSWD: /sbin/rmmod g_ether
user ALL = NOPASSWD: /usr/sbin/osso-backup-restore-locale
user ALL = (install) NOPASSWD: /usr/bin/app-installer-tool
### Automatically added by update-sudoers end ###
### Automatically added by update-sudoers start ###
user ALL = NOPASSWD: /usr/libexec/apt-worker
user ALL = NOPASSWD: /usr/bin/hildon-application-manager-util restore-catalogues
user ALL = NOPASSWD: /usr/bin/hildon-application-manager-util restore-catalogues2
### Automatically added by update-sudoers end ###
### Automatically added by update-sudoers start ###
user ALL = NOPASSWD: /usr/bin/hildon-input-method-configurator.bin
### Automatically added by update-sudoers end ###
### Automatically added by update-sudoers start ###
user ALL = NOPASSWD: /etc/init.d/ke-recv start
user ALL = NOPASSWD: /etc/init.d/ke-recv stop
user ALL = NOPASSWD: /etc/init.d/alarmd start
user ALL = NOPASSWD: /etc/init.d/alarmd stop
user ALL = NOPASSWD: /etc/init.d/osso-hss start
user ALL = NOPASSWD: /etc/init.d/osso-hss stop
user ALL = NOPASSWD: /usr/bin/osso-product-info
user ALL = NOPASSWD: /bin/mv -f /tmp/.opi.tmp.tmp /tmp/.opi.tmp
### Automatically added by update-sudoers end ###
### Automatically added by update-sudoers start ###
user ALL = NOPASSWD: /bin/umount /media/mmc2 
user ALL = NOPASSWD: /usr/sbin/osso-prepare-partition.sh *
user ALL = NOPASSWD: /sbin/mkdosfs *
user ALL = NOPASSWD: /etc/init.d/ke-recv stop
user ALL = NOPASSWD: /etc/init.d/hildon-desktop stop
user ALL = NOPASSWD: /etc/init.d/mediaplayer-daemon stop
user ALL = NOPASSWD: /etc/init.d/metalayer-crawler0 stop
### Automatically added by update-sudoers end ###
user ALL = NOPASSWD: /etc/osso-backup/restore.d/always/bluez-restore.sh
user ALL = NOPASSWD: /usr/bin/region
user ALL = NOPASSWD: /bin/mv /etc/rhapsody-install/rhapsody.desktop /usr/share/applications/hildon/
user ALL = NOPASSWD: /user/bin/truecrypt
user ALL = NOPASSWD: /sbin/insmod
user ALL = NOPASSWD: /sbin/lsmod
user ALL = NOPASSWD: /sbin/mkfs.ext2
user ALL = NOPASSWD: /sbin/mkfs.ext3
user ALL = NOPASSWD: /sbin/mkfs.vfat
user ALL = NOPASSWD: /bin/chown
I am running OS2008 from mmc, if this is important.
 
Securix's Avatar
Posts: 107 | Thanked: 26 times | Joined on Jan 2008 @ New Jersey
#37
A couple posts back, your sudoers truecrypt line looked like this:

user ALL = NOPASSWD: /usr/bin/truecrypt

But in this post, your sudoers truecrypt line looks like this:

user ALL = NOPASSWD: /user/bin/truecrypt

Can you verify that it's /usr/bin/truecrypt and not /usEr/bin/truecrypt

If you really have it as /user/bin then the errors you've been getting make sense, since if sudo can't find the exec in the right place, it would be asking for a password.
 
Posts: 28 | Thanked: 1 time | Joined on Jan 2008
#38
Oh, you are right. I have corrected that.
But it still does'nt work.
When I try to mount a volume I get the following:
Code:
clicked tray
Clicked Open Event!
looking for truecrypt
found truecrypt
looking for device mapper module
device already loaded
/media/mmc1/test selected
Calculated mount is /test
truecrypt: No volumes mapped
/media/mmc1/test
['truecrypt: No volumes mapped']
current mount truecrypt: No volumes mapped
Checking for crypt /media/mmc1/test
got password now doing action open
Opening crypt with mount point : True
chosen fs : msdos
Opening /media/mmc1/test at /home/user/MyDocs/Del
checking mountpoint /home/user/MyDocs/Del
raw mountpoint /home/user/MyDocs/Del
home dir /home/user/
truecrypt -i --filesystem msdos
/media/mmc1/test /home/user/MyDocs/Del test
SpecialCommandRunner job: open truecrypt --filesystem msdos -i
truecrypt: Incorrect password or not a TrueCrypt volume.chowning mountpath to user:users
truecrypt: No volumes mapped
/media/mmc1/test
['truecrypt: No volumes mapped']
current mount truecrypt: No volumes mapped
I also still get this "ValueError: invalid literal for float(): sh: stat: not found" message, when I try to create a volume. Is that normal?

Any idea where the problem is?
 
Securix's Avatar
Posts: 107 | Thanked: 26 times | Joined on Jan 2008 @ New Jersey
#39
Check to see if you have the stat command installed. It would be /usr/bin/stat

If not, then it sounds like you need coreutils or at least just the stat binary. I can't remember whether it comes with OS2008 or if I did apt-get install coreutils or if I compiled it in Scratchbox and copied it. I'll have to check when I get home.

If that's the case, then it's an oversight on my part and I'll have to include coreutils or at least just stat as part of the dependencies.

Is the test crypt file you're mounting made using truecrypt on the N800 or is it one you created on the PC?

Have you tried mounting a crypt file you created on the N800 onto your PC? Which version of TC are you using on your PC?
 
Posts: 28 | Thanked: 1 time | Joined on Jan 2008
#40
I have no dir or file named /usr/bin/stat.
I can't install corutils with the program manager, because ther is a conflict with busybox. I don't know if busybox is important or can I uninstall it?

when i try to install it with apt-get install coreutils I get the following warning, so that I canceled the install:
Code:
The following packages will be REMOVED:
  bluez-utils busybox dnsmasq hal ke-recv libconbtui0 lsb-base netbase osso-af
  osso-applet-device osso-applet-languageregional osso-applet-location
  osso-applet-memory osso-bluez-compat osso-connectivity osso-connectivity-ui
  osso-connectivity-ui-btsettings osso-connectivity-ui-conndlgs
  osso-connectivity-ui-connmgr osso-connectivity-ui-gwsettings
  osso-connectivity-ui-gwwizard osso-connectivity-ui-iapsettings
  osso-connectivity-ui-statusbar osso-core osso-core-busybox osso-dsm
  osso-filemanager osso-ic osso-startup-wizard ppp
I tried a volume created on the N800 and also one created with truecrypt 5.0 in windows.

The volume which I created on the N800 works on the PC. So the problem is only mounting a volume.

So what do you think is the best way to install coreutils?
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:31.