LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Zenwalk
User Name
Password
Zenwalk This forum is for the discussion of Zenwalk Linux.

Notices


Reply
  Search this Thread
Old 07-03-2010, 03:04 PM   #1
starkadder
Member
 
Registered: Jun 2007
Posts: 116

Rep: Reputation: 25
truecrypt fails to set up loop device


Hello, I'm using Zenwalk 6.4 and I've installed TrueCrypt 6.3a.
Everything works fine on the set up until the last stage when I get a message "Failed to set up a loop device......."
Anyone out there had any experience with this problem using TrueCrypt?
As usual, I'd be most grateful for any input.
 
Old 07-04-2010, 03:02 AM   #2
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
Maybe this is a misleading/old error message. In my experience, recent versions of truecrypt use the device mapper infrastructure, so you should have kernel support for dm-crypt for using truecrypt.
 
Old 07-04-2010, 08:28 AM   #3
starkadder
Member
 
Registered: Jun 2007
Posts: 116

Original Poster
Rep: Reputation: 25
Thanks zirias,
I don't think that this is an old message, I've tried to create a volume several times without a result.
I've also tried to use cryptkeeper and this appears to run perfectly, until I try to access anything I've put in the encrypted file. I put a file in the test folder and everything looks normal, I hide the folder and access it again with the password and it's empty. I'm wondering if I'm missing some dependencies although, as both applications were installed by netpkg, I shouldn't be.
 
Old 07-04-2010, 09:50 AM   #4
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
I meant "old" as in "left in the codebase from times, when the loopback device was used". Did you try to set up an encrypted partition using cryptsetup (maybe luks)? If my assumption is correct, that dm-crypt support is missing in your kernel, this should fail, too. But if it works, there's another problem, no idea in this case.
 
Old 07-05-2010, 08:34 AM   #5
starkadder
Member
 
Registered: Jun 2007
Posts: 116

Original Poster
Rep: Reputation: 25
Hello zirias,
When I try to run cryptsetup on my zenwalk box it won't recognise the command, looks like you're right. I wonder, is this a problem in all zenwalk installations, or is mine corrupt?
 
Old 07-05-2010, 10:38 AM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,988

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Quote:
When I try to run cryptsetup on my zenwalk box it won't recognise the command
I think all that means is you don't have cryptsetup installed. Have you tried creating a loop device with the losetup command:

$ losetup /dev/loop0

You will probably get an error message unless you run the command as root. I'm guessing that's the problem you are having, i.e. truecrypt has inadequate permissions to setup a loop device. If running truecrypt as root solves the problem, then it's clearly a permission problem.
 
Old 07-05-2010, 11:06 AM   #7
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
Uhm wait ... did you try creating a volume in a /file/ container? In that case, I assume kilgoretrout is right, I didn't even consider file containers because I never used them, but using a loop device for that really seems plausible.
 
Old 07-05-2010, 01:31 PM   #8
starkadder
Member
 
Registered: Jun 2007
Posts: 116

Original Poster
Rep: Reputation: 25
Thanks kilgoretrout,
I am working as root when trying to run truecrypt and trying losetup results in this:
root[~]# losetup /dev/loop0
loop: can't open device /dev/loop0: No such file or directory
root[~]#

N.B. According to netpkg cryptsetup is installed, as are the dependencies.

Last edited by starkadder; 07-05-2010 at 01:42 PM. Reason: added note
 
Old 07-05-2010, 03:26 PM   #9
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,988

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Try doing:

# modprobe loop

Then see if you can create a loop device with losetup. If you can, try running truecrypt as root. Most kernels have loop support built into the kernel but some slack based distros compile loop support as a kernel module instead. When that's the case, you have to load the loop module first before you can create a loop device.

Edit: Just got to a machine with zenwalk on it and confirmed that you need to modprobe loop. Unfortunately, still get an error message when running losetup /dev/loop0. However, I was able to mount an iso on a loop device with:

# mount -o loop <path to iso> <mount point>

Running mount afterwards confirmed that the iso was mounted at the mount point through /dev/loop0 even though when I previously ran:

# losetup /dev/loop0

I got an error message. Given the above, I would suggest that you modprobe loop and then try running truecrypt as root.

Last edited by kilgoretrout; 07-05-2010 at 04:11 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Truecrypt Or Truecrypt Alternative On Centos? b10m3ch4 Linux - Server 5 12-18-2009 03:42 AM
Loop device lawrence_lee_lee Linux - Software 1 06-17-2008 02:20 AM
loop back device fails.... possible bug? ProtoformX Linux - General 7 07-21-2005 05:21 PM
What is Loop Device Support? Dswissmiss Linux - General 3 08-03-2004 08:36 PM
loop: can't open device /dev/loop0: No such device or address miaviator278 Linux - Security 3 06-09-2004 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Zenwalk

All times are GMT -5. The time now is 12:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration