Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-20-2009, 12:41 AM   #1
ashok kumar reddy
LQ Newbie
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
Regarding squashfs file system and encryption


Iam have problem with the encryption of squashfs based file system.
The problem is as below

In Linux-2.4: ext2 file system

we have used ext2 file system with e2compression technique, for encryption of file i used below procedure.
dd if=/dev/zero of=./test1 bs=1k count=1000
losetup -e "cipher" -p "passwd" /dev/loop0 ./test1
here cipher may be serpent,twofish,blowfish
mkfs.ext2 /dev/loop0
mkdir /test2
mount -t ext2 /dev/loop0 /test2
i copied some contents into test2
and created image.

While comming to linux-2.6 with squahsfs filesytem

dd if=/dev/zero of=./test1 bs=1k count=1000
losetup -e "cipher" -p "passwd" /dev/loop0 ./test1

But i have problem how to associate /dev/loop0 to squashfs filesystem

if you see mksquahfs ( Squahfs HOW TO) we have souce & destination where source is regular file or dir and destnation is image file or block device like /dev/hda

I have no idea how to asocaite /dev/loop0 ( like mkfs.ext2 /dev/loop0 & mount).

If any one have idea please share with me.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
File System Encryption Options carlosinfl Linux - Security 1 09-10-2008 11:12 AM
How to modify squashfs file ? kkpal Linux - Newbie 0 01-16-2008 01:39 AM
System encryption with dm-crypt and luks? Zmyrgel Slackware 9 09-02-2006 11:40 AM
file system encryption on servers Synesthesia Linux - Security 2 06-05-2006 05:03 PM
File System Encryption raja1979 Linux - Security 2 12-23-2005 06:08 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:25 AM.

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