LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-28-2005, 03:33 AM   #1
drminix
LQ Newbie
 
Registered: May 2005
Location: Dunediin
Distribution: Fedora Core 3
Posts: 8

Rep: Reputation: 0
Using losetup to create an encrypted image.


Hi.

I am trying to use 'losetup -e' to create an encrypted file system image file. I am running fedora core 3 system. I am running 2.6.11.8 kernel. I have configured the kernel to support loopback device, cryptoloop, and crypto APIs.

I have loaded cryptoloop module, loop module, and des module before using 'losetup'. However, when I type 'losetup -e des /dev/loop0 a.img', it first asks me for password and then gives the following error messages:

ioctl: LOOP_SET_STATUS: invalid argument

Can anyone please help me out!!!

Thanks in advance,
Sam Lee
 
Old 05-29-2005, 07:06 PM   #2
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
You don't say which distro you are using. There is a new version of losetup and the crypto out there that works for me (I have some v 2.12 ). It requires you to specify the key length; I did

losetup -e des-64 /dev/loop0 a.img

there seems to be some confusion about that keylength - in /proc/crypto you can look up the min and max key lengths but that seems to be in bytes while the above is in bits, times 8.

I could also provoke your error message by unloading the cryptoloop module - are you sure it's loaded?

Hope it helps,

mlp
 
Old 06-20-2005, 02:17 AM   #3
azleep
LQ Newbie
 
Registered: Jun 2005
Posts: 1

Rep: Reputation: 0
Hi,

Not sure if this will help you, but it did make it work for me:

modprobe cryptoloop

and then:

losetup -e cryptomethod /dev/loop0 <container/drive>
etc etc

Good luck!

Azleep
 
  


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
[SOLVED] command to create encrypted password student04 Linux - Security 8 09-15-2013 08:44 PM
FC3 and create image zillah Linux - Software 5 10-26-2005 03:46 PM
not able to create an image.... os2 Linux - Software 2 08-31-2005 05:26 PM
sharing losetup encrypted filesystem with windows EdoardoC Linux - Security 0 03-02-2005 06:25 AM
Create an .iso image bentman78 Linux - Software 9 07-02-2004 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:20 PM.

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