Use the most recent Kernel by Debian that is version 2.6.11-1-686

kernel-image-2.6.11-1-686

Linux kernel image for version 2.6.11 on Ppro/Celeron/PII/PIII/P4.

Also install the following files;

kernel-headers-2.6.11-1
kernel-headers-2.6.11-1-686
kernel-source-2.6.11
kernel-tree-2.6.11
kernel-kbuild-2.6-3

  • Once this is done go to the folder /usr/src and extract the file kernel-source-2.6.11.tar.bz2 into the folder “kernel-source-2.6.11”

  • Create a symlink /usr/src/linux to the folder /usr/src/kernel-source-2.6.11

Download and install the file
http://www.acm.rpi.edu/~dilinger/kernel-source-nonfree-2.6.11/kernel-nonfree-modules-2.6.11-1-686_2.6.11-1_i386.deb

dpkg -i kernel-nonfree-modules-2.6.11-1-686_2.6.11-1_i386.deb

Reboot into the new kernel it should show up in your grub or lilo menu – Debian Kernel 2.6.11-1-686

Once you are logged in downloadhttp://oss.oracle.com/projects/ocfs2/dist/files/source/v1.1/ocfs2-1.1.2.tar.gz

extract the file to the folder /usr/src/ocfs2-1.1.2

  • check gcc version by using the command gcc -v in the terminal, make sure it is 3.3 if its is not and you have 3.3 and 4 installed just change the symlink in the folder /usr/bin/gcc to point to gcc-3.3 in the same folder.

  • in the folder run the command ./configure and you will be prompted to run the export_generic_drop_inode.patch patch,

  • in another terminal cd /usr/src/kernel-source-2.6.11 and run the following command patch -p1 </usr/src/ocfs2-1.1.2/patches/export_generic_drop_inode.patch (run it twice repatching the kernel, dont know if it is a bug or if I am just clueless)

  • back to /usr/src/ocfs2-1.1.2 and run ./configure && make

  • go to the folder /usr/src/kernel-kbuild-2.6-3/scripts open Makefile.modinst in gedit or some editor and replace the last line

    $(call cmd,modules_install,$(modinst_dir)) with $(call cmd,modules_install,$(/lib/modules/2.6.11-1-686/extra))