Linux HOWTOs

About | Home | Search


HOWTO: reiserfsprogs
Description: Userland tools for the ReiserFS filesystem
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# reiserfsprogs 3.6.19
# ====================
# reiserfsprogs is a set of userland tools for ReiserFS, including
# debugreiserfs, mkreiserfs, reiserfsck, reiserfstune, and resize_reiserfs.
# Version 3.6.19 was released October 13, 2004.
#
# progsreiserfs is a library (libreiserfs) and utilities
# including cpfs.reiserfs, fsck.reiserfs, mkfs.reiserfs, resizefs.reiserfs,
# and tunefs.reiserfs

# Slackware 8.0 had a 'reiserfs' package which included reiserfsprogs
# version 3.x.0j
#
# Slackware 8.1's 'reiserfsprogs' package includes version 3.x.1b, 9.0's
# includes 3.6.4, 9.1's includes 3.6.11, 10.0's includes 3.6.17, 10.1's
# includes 3.6.18, and 10.2's includes 3.6.19

# If you want to uninstall reiserfsprogs, or clean up files from an old
# version before installing a new one, skip down to the bottom for
# instructions

# Prerequisites:
# gawk
# grep

cd
test -f installed/reiserfsprogs-3.6.19.tar.gz &&
 mv installed/reiserfsprogs-3.6.19.tar.gz .
test ! -f reiserfsprogs-3.6.19.tar.gz &&
 wget --passive-ftp \
  ftp://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.19.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "reiserfsprogs-*" -exec rm -r {} \;
tar xzvf ~/reiserfsprogs-3.6.19.tar.gz
cd reiserfsprogs-3.6.19
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sbindir=/sbin
make

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg reiserfs reiserfsprogs
make install
ln -sf /sbin/mkreiserfs /sbin/mkfs.reiserfs
ln -sf /sbin/reiserfsck /sbin/fsck.reiserfs

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/reiserfsprogs-*.tar.*
mv reiserfsprogs-3.6.19.tar.gz installed/

# For the most part, quota should be OK with ReiserFS as your system is now.
# With older 2.4.x kernels you may need a patch.  Check here:
# ftp://ftp.namesys.com/pub/
# ftp://ftp.suse.com/pub/people/mason/patches/reiserfs/quota-2.4/
# and make sure you have a recent version of quota-tools installed.


# If you ever want to uninstall reiserfsprogs, this should do it:
# (note: an older version had an 'unpack', but due to the common name I
# won't try to remove it here)
cd
su
test -d src/reiserfsprogs-* && ( cd src/reiserfsprogs-* ; make uninstall )
for prefix in / /usr /usr/local; do
  ( cd ${prefix}/sbin ; rm -f debugreiserfs fsck.reiserfs mkfs.reiserfs \
    mkreiserfs reiserfsck reiserfstune resize_reiserfs )
  find ${prefix}/doc -maxdepth 1 -type d -name "reiserfsprogs-*" \
   -exec rm -r {} \;
  ( cd ${prefix}/man/man8 ; rm -f debugreiserfs.8 mkreiserfs.8 \
    reiserfsck.8 reiserfstune.8 resize_reiserfs.8 )
  ( cd ${prefix}/sbin ; rm -f debugreiserfs mkreiserfs reiserfsck \
    reiserfstune resize_reiserfs )
done
exit
find ~/src -maxdepth 1 -type d -name "reiserfsprogs-*" -exec rm -r {} \;
rm -f ~/installed/reiserfsprogs-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>