Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
password protected partition?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ex1st-
n00b
n00b


Joined: 10 Apr 2004
Posts: 2

PostPosted: Sat Apr 10, 2004 2:44 pm    Post subject: password protected partition? Reply with quote

I have a ext3 partition and I would like to 'hide' files that are on that partition.
How can I do that ?
I realy need this , so please explain it eaven if it's kinda long or whatever. Or maybe a link ? It's just I'm not sure what to search for in google.
Back to top
View user's profile Send private message
Kompi
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 252
Location: Germany

PostPosted: Sat Apr 10, 2004 3:08 pm    Post subject: Reply with quote

I think you encrypted loop-devices is what you need.

Refer to the Encryption Howto: http://www.linuxsecurity.com/docs/HOWTO/Encryption-HOWTO/Encryption-HOWTO.html

or try to search the gentoo forum for a bounch of threads in this forums. Search for "loop-aes", "cryptoloop" or "cryptoAPI".
Back to top
View user's profile Send private message
ex1st-
n00b
n00b


Joined: 10 Apr 2004
Posts: 2

PostPosted: Sat Apr 10, 2004 3:24 pm    Post subject: Reply with quote

I read that already.
As far as i understand it says only how to make a new partition and then copy/write/whatever files on it ...
What if I have a HUGE amount of data already ?!?
Back to top
View user's profile Send private message
Kompi
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 252
Location: Germany

PostPosted: Sat Apr 10, 2004 3:48 pm    Post subject: Reply with quote

that's quite problematic, because the data will be written copressed to your Partition / File. So you can't just "convert" your partition in a compressed partition. It is neccessary to let all the data go threw the compression algorithm. (copy things onto the partition)
So if you don't have enough space, you could do the following (which is a bit of work if you really have very few space left):

create a file on your Partition (dd), which will hold the compressed filesystem. Make it as big as possible.

Link it to a cryptoloop-device (losetup), create a filesystem mount it and move as much data as fits into the filesystem.

Now you will have free space on your partition which has nearly the same size as your copressed. Grow your filesystem (the encryption howto explains how to do so) and move the next data block into your filesystem. Repeat this until everything is in your compressed filesystem.

Warning: Be careful, you will not have any backup of your data. If something goes wrong, you can lose your data.
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Sat Apr 10, 2004 5:46 pm    Post subject: Reply with quote

Cryptoloop is deprecated. The future is dm-crypt (part of linux >= 2.6.3 ).


Carlo
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20583

PostPosted: Sun Apr 11, 2004 3:13 am    Post subject: Reply with quote

Moved from Documentation, Tips & Tricks.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum