Welcome to the Reiser4 Wiki, the Wiki for users and developers of the ReiserFS and Reiser4 filesystems.

For now, most of the documentation is just a snapshot of the old Namesys site (archive.org, 2007-09-29).

There was also a Reiser4 Wiki (archive.org, 2007-07-06) once on pub.namesys.com.

Reiser4 Howto/GRUB

From Reiser4 FS Wiki
Revision as of 20:16, 4 July 2009 by Chris goe (Talk | contribs)

Jump to: navigation, search

NOTE: this is currently WIP and NOT TESTED AT ALL

GRUB

Before building GRUB with Reiser4 support, we have to build and install (libaal and) reiser4progs. Once we have done that, we can build GRUB. Unfortunately, comilation was not that easy, see the talkpage for details, in short:

  • compilation against reiser4progs-1.0.7 fails
  • add -fno-stack-protector to disable SSP, since this seems to be the default for Ubuntu.

Well, here is the whole procedure again; you may have to adjust the pathnames used here:

 $ wget wget http://www.kernel.org/pub/linux/utils/fs/reiser4/reiser4progs/reiser4progs-1.0.6.tar.gz
 $ wget wget http://www.kernel.org/pub/linux/utils/fs/reiser4/reiser4progs/reiser4progs-1.0.6.tar.gz.sign
 $ gpg --recv-keys 517D0F0E
 $ gpg --verify reiser4progs-1.0.6.tar.gz.sign reiser4progs-1.0.6.tar.gz
 $ cd reiser4progs-1.0.6
 $ sed '999 s/^#elif/#else/' -i plugin/node/node40/node40.c
 $ CFLAGS="-fno-stack-protector -I/opt/libaal/include" LDFLAGS="-L/opt/libaal/lib" \
   ./configure --prefix=/opt/reiser4progs-1.0.6
 $ make && sudo make install
 $ wget http://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz
 $ wget http://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz.sig
 $ gpg --recv-keys FE06BDEF
 $ gpg --verify grub-0.97.tar.gz.sig grub-0.97.tar.gz
 $ tar -xzf grub-0.97.tar.gz
 $ cd grub-0.97
 $ patch -p1 < ../grub-0.97-libaal-1.0.5-reiser4progs-1.0.5.patch
 $ CFLAGS="-fno-stack-protector -I/opt/reiser4progs-1.0.6/include" \
   CPPFLAGS="-I/opt/libaal/include -I/opt/reiser4progs-1.0.6/include" \
   LDFLAGS="-L/opt/libaal/lib -L/opt/reiser4progs-1.0.6/lib" \
   ./configure --prefix=/opt/grub-r4
 $ make && sudo make install

GRUB v2

TBD, GRUB 2 support is still not ready.


Files

Personal tools