View previous topic :: View next topic |
Author |
Message |
ex1st- n00b
Joined: 10 Apr 2004 Posts: 2
|
Posted: Sat Apr 10, 2004 2:44 pm Post subject: password protected partition? |
|
|
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 |
|
|
Kompi Apprentice
Joined: 05 Oct 2002 Posts: 252 Location: Germany
|
|
Back to top |
|
|
ex1st- n00b
Joined: 10 Apr 2004 Posts: 2
|
Posted: Sat Apr 10, 2004 3:24 pm Post subject: |
|
|
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 |
|
|
Kompi Apprentice
Joined: 05 Oct 2002 Posts: 252 Location: Germany
|
Posted: Sat Apr 10, 2004 3:48 pm Post subject: |
|
|
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 |
|
|
Carlo Developer
Joined: 12 Aug 2002 Posts: 3356
|
Posted: Sat Apr 10, 2004 5:46 pm Post subject: |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20583
|
Posted: Sun Apr 11, 2004 3:13 am Post subject: |
|
|
Moved from Documentation, Tips & Tricks. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|