[[Indholdsfortegnelse]]
 

FiST (Cryptfs, Gzipfs and Wrapfs) HOW-TO

Ca. 238 ord.

For a project I was in need of a compressing filesystem so I found gzipfs. I had some problems getting this to work, so here is how I did.

How stacking works

Missing - email me if you want me to write it.

How to fetch decompress compile

Missing - email me if you want me to write it.

How to use Gzipfs

Insert the module in the kernel:
insmod /path/to/gzipfs.o
To mount a directory onto another directory you do the following:
mkdir zipped   # This is where the data are actually stored
mkdir unzipped # This is where you access the data
mount zipped unzipped -odir=zipped
You can also mount it via fstab. Here is a line from my /etc/fstab:
/mnt/ext/zipped         /mnt/ext/unzipped       gzipfs          dir=/mnt/ext/zipped,user,noexec,noauto

How to use Cryptfs

Insert the module in the kernel:
insmod /path/to/cryptfs.o
To mount a directory onto another directory you do the following:
mkdir encrypted # This is where the data are actually stored
mkdir decrypted # This is where you access the data
mount encrypted decrypted -odir=encrypted
echo my_password | fist_setkey decrypted # To set the password
You can also mount it via fstab. Here is a line from my /etc/fstab:
/home/tange/encrypted   /home/tange/decrypted   cryptfs         dir=/home/tange/encrypted,user,noexec,noauto                    0 0
However, after the directory is mounted you will need to set the password by hand:
echo my_password | fist_setkey /home/tange/decrypted

Sidst ændret Wed Mar 26 22:52:33 2003