Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Oct 25, 2014 3:51 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: Mon Jan 28, 2008 8:53 am 
Offline
Newbie

Joined: Tue Jul 17, 2007 2:47 pm
Posts: 64
I just can't mount a container.

Here are the steps I made:

- installed Firmware 1.12-2a on my brandnew LSPro V2
- opened stock firmware
- followed this instruction to use ipkg with stock firmware
- installed dmsetup with ipkg
- installed new busybox with ipgk(because the binaries for losetup are included)
- installed precompiled C development environment for compiling truecrypt natively on the LSPro
- downloaded Kernel sources
- copied 1.10 .config file from kernel_src_directory/buffalo to kernel_src_directory
- deleted CROSS_COMPILE.. statement in Makeimage to enable native compiling
- downloaded and untared newest truecrypt sources to disk1
- startet ./build.sh in directory truecrypt/Linux
- wait, wait, wait...
- succesfully build kernelmodules and binaries
- startet ./install.sh in directory truecrypt/Linux(had to change the script a little because somehow install.sh couldn't find rmmod)
- succesfully created a truecrypt volume with a size of 30MB(just a test)

When I try to mout the volume like this:
truecrypt -M "rw,sync,utf8,uid=$UID,umask=0007" /mnt/disk1/share/volume.tc /mnt/disk1/share/tcmnt

The following error occurs:
"Failed to assign loopback device for file-hosted volume"

The command:
truecrypt /mnt/disk1/share/volume.tc /mnt/disk1/share/tcmnt
fails with the same error

Can anyone give me a hint?

Best regards,
ares

_________________
LSProV2::Debian Lenny by davy_gravy::Kernel 2.6.32 with CESA by balou1974::Webmin::Fuppes UPNP Server::SFTP with MySecureShell


Top
 Profile  
 
PostPosted: Thu Feb 07, 2008 1:47 am 
Offline
Betatester

Joined: Sat Jan 20, 2007 3:45 pm
Posts: 57
You may need to create /dev/loop* devices using mknod.
Code:
mknod /dev/loop0 c 7 0
mknod /dev/loop1 c 7 1
mknod /dev/loop2 c 7 2
mknod /dev/loop3 c 7 3


Make sure cat /proc/devices shows that you have the loop device listed. I see my 1.12 firmware does show it, so that shouldn't be a problem.


Top
 Profile  
 
PostPosted: Thu Feb 07, 2008 11:05 am 
Offline
Newbie

Joined: Tue Jul 17, 2007 2:47 pm
Posts: 64
Hey,

cat /proc/devices shows loop devices:

Code:
...
Block devices:
1 ramdisk
7 loop
8 sd
31 mtdblock
65 sd
....


The mknod-thing is done in install.sh from truecrypt.

I think the problem is, that I compiled truecrypt.ko natively on my LSPRO. The gcc version of module and kernel are different.

This is the Kernel:
Code:
root@LS-GLF23:~# cat /proc/version
Linux version 2.6.16.16-arm1 (root@build.dd-hot24.nas.buffalo.local) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #11 Wed Oct 24 09:46:30 JST 2007


and this the module:
Code:
root@LS-GLF23:/lib/modules/2.6.16.16-arm1/extra# modinfo truecrypt.ko
filename:       truecrypt.ko
author:         TrueCrypt Foundation
description:    device-mapper target for encryption and decryption of TrueCrypt volumes
license:        GPL and additional rights
vermagic:       2.6.16.16-arm1 ARMv5 gcc-4.1
depends:
parm:           trace:Trace level (int)


I guess this is the reason why this fails:
Code:
root@LS-GLF23:/lib/modules/2.6.16.16-arm1/extra# insmod truecrypt.ko
insmod: cannot insert 'truecrypt.ko': invalid module format


Now I'm trying to use cross.toolchain to compile truecrypt.ko but I have problems using the crosstoolchain for compiling kernelmodules. I only found tutorials for kernel compilation.

Has anyone got an idea for a linux beginner?

Regards ares

_________________
LSProV2::Debian Lenny by davy_gravy::Kernel 2.6.32 with CESA by balou1974::Webmin::Fuppes UPNP Server::SFTP with MySecureShell


Top
 Profile  
 
PostPosted: Thu Feb 07, 2008 11:19 am 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5330
Use "modprobe truecrypt" instead (plain insmod'ding .ko files fails, .o files should work)


Top
 Profile  
 
PostPosted: Sat Feb 09, 2008 5:30 pm 
Offline
Newbie

Joined: Tue Jul 17, 2007 2:47 pm
Posts: 64
Hey,

first of all thanks for your answers.
I tried a different way to mount a truecrypt volume:
Code:
root@LS-GLF23:/# losetup                                                       
/dev/loop0: 0 /mnt/disk1/share/volume.tc
root@LS-GLF23:/# truecrypt /dev/loop0 # -> /dev/mapper/truecrypt0
Enter password for '/dev/loop0':
insmod: error inserting '/usr/share/truecrypt/kernel/truecrypt-2.6.16.ko': -1 Invalid module format
FATAL: Error inserting truecrypt (/lib/modules/2.6.16.16-arm1/extra/truecrypt.ko): Invalid module format
Failed to load TrueCrypt kernel module

but due to the problem of different gcc-versions the error "Invalid Module" still occurs.

@andre
modprobe truecrypt throws the same error:
Code:
root@LS-GLF23:/# modprobe truecrypt
insmod: cannot insert '/lib/modules/2.6.16.16-arm1/extra/truecrypt.ko': invalid module format
modprobe: failed to load module truecrypt


The precompiled C development environment I use on the LSPRO uses gcc-4.1.1. Is anyone out there who can tell me how I can use this development environment with gcc-3.4.4?
I think using this compiler(same as kernel) should avoid the module format error...

Thanks for your help!

Regards,
ares

_________________
LSProV2::Debian Lenny by davy_gravy::Kernel 2.6.32 with CESA by balou1974::Webmin::Fuppes UPNP Server::SFTP with MySecureShell


Top
 Profile  
 
PostPosted: Mon Feb 11, 2008 12:00 am 
Offline
Total Newbie

Joined: Sun Feb 10, 2008 11:46 pm
Posts: 3
Hi everybody,

me too would love to have truecrypt running on my LS Pro. So I tried the truecrypt package from http://ipkg.nslu2-linux.org/feeds/optwa ... ss/stable/ but I am running into the same error message. :cry:

So if you have some news, I would be glad to hear about it. At least I am a good victim for testing. ;)

Regards,
olex1912

_________________
Life would be so much easier if we could just look at the source code.


Top
 Profile  
 
PostPosted: Mon Feb 11, 2008 2:21 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5330
The gcc version is likely to be the problem. One could compile it in the worst case.


Top
 Profile  
 
PostPosted: Mon Feb 11, 2008 4:11 pm 
Offline
Newbie

Joined: Tue Jul 17, 2007 2:47 pm
Posts: 64
@andre
As you're an expert in PPC I guess you're not the one to compile it? :D

_________________
LSProV2::Debian Lenny by davy_gravy::Kernel 2.6.32 with CESA by balou1974::Webmin::Fuppes UPNP Server::SFTP with MySecureShell


Top
 Profile  
 
PostPosted: Mon Feb 11, 2008 10:42 pm 
Offline
Total Newbie

Joined: Sun Feb 10, 2008 11:46 pm
Posts: 3
@ares
probably we should pay homage to andre to persuade him compiling it? :D

_________________
Life would be so much easier if we could just look at the source code.


Top
 Profile  
 
PostPosted: Tue Feb 12, 2008 8:23 am 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5330
I don't have the appropriate ARM hardware! Personally, I would probably get hold of or compile "ar" and extract things from Debian archives. You can find ar PPC binaries on my server, of not much use to you of course.


Top
 Profile  
 
PostPosted: Wed Feb 13, 2008 12:00 am 
Offline
Betatester

Joined: Sat Jan 20, 2007 3:45 pm
Posts: 57
I did have Truecrypt working with a custom-compiled 2.6.22 kernel a few months back, but that kernel had too many problems with XFS corruption that I went back to the stock firmware and haven't done any compiling since Optware made me so lazy.

I just recently enabled iSCSI on Firmware 1.12 and used Truecrypt from my Windows PC to encrypt. The formatting took 28 hours for 925GB.

Hopefully I'll work on getting truecrypt compiled on 2.6.16 sometime this month...


Top
 Profile  
 
PostPosted: Mon Mar 17, 2008 1:11 pm 
Offline
Total Newbie

Joined: Sun Feb 10, 2008 11:46 pm
Posts: 3
Hi all,

any progress to this?

Regards,
olex1912

_________________
Life would be so much easier if we could just look at the source code.


Top
 Profile  
 
PostPosted: Thu Mar 20, 2008 2:21 pm 
Offline
Newbie

Joined: Mon Jan 21, 2008 9:51 am
Posts: 14
I compiled this natively on 2.6.16.16 as per the truecrypt readme, build the fuse.ko module and all seems to be ok... until I actually try mounting a volume. Having created a test 1M volume, which completes, I try and mount it again:

./truecrypt -v test.tc
Enter mount directory [default]:
Enter password for test.tc:
Enter keyfile [none]:
Protect hidden volume? (y=Yes/n=No) [No]:

This process just sits and hangs (doesn't show any real cpu activity)... mount shows:

truecrypt on /tmp/.truecrypt_aux_mnt1 type fuse (rw,nosuid,nodev,user_id=0,group_id=0,allow_other)

what is supposed to happen next (if it actually is working) ?


grb


Top
 Profile  
 
PostPosted: Thu Mar 27, 2008 12:33 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5330
Is this truecrypt 4.3a?


Top
 Profile  
 
PostPosted: Mon Mar 31, 2008 8:15 am 
Offline
Newbie

Joined: Mon Jan 21, 2008 9:51 am
Posts: 14
andre wrote:
Is this truecrypt 4.3a?



no, that was that latest 5 release, which seems to Fuse, rather than it's own kernel module.


grb


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Protected by Anti-Spam ACP
Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group