Building Reiser4 Kernel Module from Sources on Ubuntu 14.04 Trusty Tahr

Get the Ubuntu 14.04 Trusty Tahr 3.13 Linux Kernel Source Code from the Repo

apt-get source linux-image-$(uname -r)

Install additional Software

sudo apt-get build-dep linux-image-$(uname -r)

Download and install Reiser4 3.13 Kernel Patch

wget ''
gunzip reiser4-for-3.13.6.patch.gz

cd linux-3.13.0 
patch -p1 <../reiser4-for-3.13.6.patch

Configure and Compile Reiser4 Kernel Module for Ubuntu 14.04 Trusty Tahr

chmod a+x debian/scripts/*
chmod a+x debian/scripts/misc/*
fakeroot debian/rules clean

fakeroot debian/rules editconfigs
==== Enable in the Menu Configuration under Filesystem the Reiser4 Module to be compiled for your architecture. ===

==== Start the Compile Process ===
DEB_BUILD_OPTIONS=parallel=2 AUTOBUILD=1 NOEXTRAS=1 fakeroot debian/rules binary-headers binary-generic

Install the new compiled Ubuntu Kernel with Reiser4 Module Support

If the build is successful, a set of several .deb binary package files will be produced in the directory above the build root directory. For example after building a kernel with version "3.13" on an ubuntu 14.04 system, these .deb packages would be produced:

    cd ..
    ls *.deb

Install the package set (on your build system, or on a different target system) with dpkg -i and then reboot:

    sudo dpkg -i linux*.deb
    sudo reboot

Trouble Shooting

If for some reason this kernel release doesn’t work properly for you, reboot into previous kernel (Grub -> Advanced -> select previous kernel) and run this command to remove Linux Kernel 3.15:

sudo apt-get remove linux-headers-3.13.0-35* linux-image-3.13.0-35*

Finally update grub menu:

sudo update-grub

Further Documentation


reiser4 (last edited 2014-09-21 14:26:41 by zux182-249)