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

From Reiser4 FS Wiki
(Difference between revisions)
Jump to: navigation, search
(Suggest mkfs option "-d" for SSD drives)
(Suggest reiser4-for-3.15.1.patch.gz)
Line 3: Line 3:
 
As <tt>reiser4</tt> is not in mainline yet, we have to apply the right [[Reiser4_patchsets|patch]] to get this working:
 
As <tt>reiser4</tt> is not in mainline yet, we have to apply the right [[Reiser4_patchsets|patch]] to get this working:
  
  wget http://downloads.sourceforge.net/project/reiser4/reiser4-for-linux-3.x/reiser4-for-3.14.1.patch.gz
+
  wget http://downloads.sourceforge.net/project/reiser4/reiser4-for-linux-3.x/reiser4-for-3.15.1.patch.gz
 
  cd /usr/src/linux
 
  cd /usr/src/linux
 
  gzip -dc ~/reiser4-for-3.14.1.patch.gz | patch -p1
 
  gzip -dc ~/reiser4-for-3.14.1.patch.gz | patch -p1

Revision as of 11:22, 11 August 2014

Contents

Reiser4

As reiser4 is not in mainline yet, we have to apply the right patch to get this working:

wget http://downloads.sourceforge.net/project/reiser4/reiser4-for-linux-3.x/reiser4-for-3.15.1.patch.gz
cd /usr/src/linux
gzip -dc ~/reiser4-for-3.14.1.patch.gz | patch -p1

Now enable CONFIG_REISER4_FS and build (and install) your kernel. Reboot.

To create/check/debug Reiser4 filesystems, you'll need the reiser4progs.

Format your partition with mkfs.reiser4 utility. Use mkfs option option "-d" for SSD drives.

NOTE: mkfs.reiser4 of version 1.0.8 by default turns intelligent compression on. To disable compression, override it by the option "create=reg40".

Choose a transaction model, which is most suitable for you:

-------------------------------------------------------------------------------------------
MOUNT OPTION           DESCRIPTION                   INTENDED FOR                  DEFAULT
-------------------------------------------------------------------------------------------
txmod=journal      Classic journalling                HDD users                      no
                   with wandering logs  
-------------------------------------------------------------------------------------------
txmod=wa           Classic Write-Anywhere             SSD users                      no 
                   aka Copy-on-Write
-------------------------------------------------------------------------------------------
txmod=hybrid       Hybrid transaction model      HDD users, who don't perform        yes
                                                 a lot of random overwrites
-------------------------------------------------------------------------------------------


Mount your reiser4 partition. Use the mount option "-o discard" for SSD drives. More details are here.

Report bugs if things go wrong.


ReiserFS

Since reiserfs is in mainline, just enable the following options in your kernel .config:

 CONFIG_REISERFS_FS
 CONFIG_REISERFS_FS_XATTR  (optional)
 CONFIG_REISERFS_FS_POSIX_ACL (optional)
 CONFIG_REISERFS_FS_SECURITY (optional)

Todays distributions should have this options enabled already, no need to build your kernel. However, not every Linux distribution supports reiserfs. But if you disregard your distribution's recommended settings, you'll probably know what you're doing anyway.

To create/check/debug/resize ReiserFS filesystems, you'll need the reiserfsprogs.

Booting off a ReiserFS/Reiser4 partition

Booting off a ReiserFS/Reiser4 partition: what we mean here is that the kernel (usually a file in /boot) is actually located on a ReiserFS/Reiser4 partition. If you have a separate partition for /boot (e.g. a (readonly-mounted) ext2 partition at the beginning of your disk) and your root-filesystem is on a ReiserFS/Reiser4 partition, you only need to make sure that ReiserFS/Reiser4 support is enabled in your kernel - but that's true for every filesystem and has nothing to to with the bootloader.

As far as the writer is informed, booting off a ReiserFS partition is fully supported by LiLo or GRUB.

For Reiser4, LiLo is known to work out of the box. To install GRUB on a Reiser4 partition, a few more steps are needed.

Links

Personal tools