Typo
[linux_from_scratch_hints.git] / OLD / reiserfs.txt
blobddbdb3c0483acaf21107626f54a3bbe063b08f35
1 TITLE:          Reiserfs
2 LFS VERSION:    Any with lilo 21.6 or newer
3 Author:         <roryo@roryo.dynup.net> and Tio Hiap Ho<deux@deux.dyndns.org>
5 Synopsis:
6         Reiserfs is an alternative filesystem which people are growing to like
7 since it would out perform the ext2 filesystem in most of the cases. This hint
8 are for those who want to use reiserfs without any ext2 filesystem in their lfs
9 system.
11 HINT:
12 WHAT TO CHANGE FROM THE LFS BOOKS
14         If you are not going to use ext2 at all, it is safe for you space
15 monkeys out there to skip the installation of e2fsprogs, although they can/will
16 come in quite handy.  Reiserfs requires a minimum of 32 mb (for the journal) on
17 a *writable* media, so using it on a floppy or a cdrom is out of the question.
18 The badblocks program could also be of some use.
21 SETTING UP THE BOOTSCRIPT
23 Change the content of your /etc/fstab to something like below
25 /dev/hda2 / reiserfs noatime,nodiratime,notail,defaults 0 0
26 /dev/hda3 /var reiserfs noatime,nodiratime,notail,defaults 0 0
27 /dev/hda5 /usr reiserfs noatime,nodiratime,notail,defaults 0 0
28 /dev/hda6 /home reiserfs noatime,nodiratime,notail,defaults 0 0
30 The above /etc/fstab will cause fsck to be skipped so you can remove the checkfs
31 bootscript safely
33 WHAT TO DO WITH THE KERNEL
34 1. Enable
35         Prompt for development and/or incomplete code/drivers
36 2. Enable
37         File systems ---> Reiserfs support
38 3. Recompile Kernel
40 In older kernel you might need to get the patch from www.reiserfs.org and patch
41 it first. In the latest kernel 2.4.5 you will need to use
42 reiserfs-umount-bug-fix-patch-for-linux-2.4.5 patch:
43 Get the patch and put it in /usr/src
44 patch -p0  linux-2.4.5-reiserfs-umount-fix-patch
46 Or just use a kernel version <> 2.4.5.  ;)
49 INSTALLING Reiserfsprogs 3.x.0k.pre8
50         ./configure --prefix=/usr &&
51         make &&
52         make install
54 HOW TO CONVERT FROM ext2fs to reiserfs
56 *** QUESTION ***
57 Is there a method of actually converting ext2 to reiser?
58 *** ANSWER ***
59 In short, no not without a lot of buggering around.
60 Long answer http://www.namesys.com/change_fs.html
63 And now a few boring facts about the different configurations possible when
64 creating your reiser partition.  There are three different types of hash
65 (and before some clown asks, no you cant smoke it!) available when
66 making your reiser partition :
68     rupasov : the fastest yet MOST unstable type available, DO NO USE IT!
69               It will, in most cases, cause you to have hash collisions,
70               a very bad thing to happen.  You will loose some/all the data
71               that you are in the process of writing.  You have been warned.  ;)
73     tea     : This is the slowest of the hashes available, it does mean that
74               you are VERY unlikely to get any hash collisions, hence no loss
75               of data.
77     r5      : This is a modified rupasov hash, it is the default hash and is the
78               middle in terms of speed and relability.  Being a total reiserfs user
79               i can say that I have never had a problem with r5, where i had many
80               when using rupasov.
82 Before starting a new LFS that will be on reiserfs
83         a. Install Reiserfsprogs 3.x.0k.pre8
84         b. Do
85             mkreiserfs -h r5 -v 1 /dev/<whatever> (for patched 2.2.x kernel) or
86             mkreiserfs -h r5 -v 2 /dev/<whatever> (for kernel 2.4.x series) instead of mke2fs
87         c. And do everything else like those in the books except for the change
88            mentioned above
90 WHAT NEXT
91         Now you have fully reiserfs LFS =)