The Linux File System Encryption API
Linux Kernel Management
Notes: For the users who already use the Linux kernel2.6 can jump to the step-2.
patch-cryptoloop-jari-2.4.22.0, or patch-cryptoloop-hvr-2.4.22.0
- Step 1: Install the patch for Cryptoloop
#cd /usr/src/linux
#bzcat /home/download/patch-cryptoloop-hvr-2.4.22.0.bz2 | patch –p1 -E
- Step 2: Configure the Linux kernel
#make menuconfig
or
#make xconfig
Notes:
In the section of [Block devices], make sure to active the modules for the loop devices and the Cryptoloop.
In the section of [Cryptographic options], make sure to active the
crypto support: all the modules for all the encryption algorithms.
- Step 3: If you do not use either the kernel version 2.6, or the version 2.4.22 with the support of loop devices, you must recompile your Linux kernel: use the following command:
#make bzImage
Then the system will be recompiled from your kernel source and your kernel configuration.
- Step 4: Compile the module to get the “loop.o”, and then install the modules.
#make modules
#make modules_install
Notes: remember to reboot your system after each time you do the changes to the kernel.
- Step 5: Add the modules support to the kernel, in the system memory:
#modprobe loop
#modprobe Cryptoloop
Notes: if this operation failed, try to do it again from step3, and check your kernel configuration again, and this may happen.