on Thu, Jul 05, 2001 at 10:08:42AM +0100, Neill Newman scribbled:
That is correct, it was me, I had no problems with the kerneli patch.. now, getting encrypted file systems set up was a different story!! it took me ages to get it working!!!
Something like this worked for me:
# dd if=/dev/urandom of=/mycfs bs=1m count=$size
# modprobe $cipher # losetup -e $cipher /dev/loop0 /mycfs (prompts for key) (add more layers here if needed - by incrementing the loop device and using the previous loop device as the second parameter..)
# mkfs.ext2 /dev/loop0 # mount -o noauto,nosuid,nodev,rw,loop,exec /dev/loop0 /cryptofs
where $size is the fs size in megs and $cipher is the main cipher you wish to use. I'm pretty sure this is all in a howto somewhere.. If you're doing multiple cfs, then remember the -o *loop* to mount ties up another /dev/loop device.
Problems you can come across are with losetup, such as it not being up to date enough to recognize your cipher. iirc you can just download and install the losetup from a later util-linux. losetup -h should list the supported ciphers.