Typo
[linux_from_scratch_hints.git] / OLD / ext3.txt
blobd2d86c2cbc5ee287e97cefb80dbc84fdb49b66ad
1 TITLE:          Ext3 hint
2 LFS VERSION:    All kernel 2.4 and later versions
3 AUTHOR:         Hywel Mallett <circular@hmallett.co.uk>
5 SYNOPSIS:       How to use Ext3 if you don't want ReiserFS
7 HINT:
8 The ext3 filesystem has the advantage over ReiserFS that it is
9 backward-compatible with ext2, and that conversion from ext2 to ext3 is trivial
10 (e.g. if you have a separate /home partition).
12 1. Don't bother building reiserfs-utils. (You may if you wish, but unless you
13 are going to use ReiserFS elsewhere, there is no benefit).
15 2. When building your kernel, ensure you compile in ext3 support. This may be as
16 a module or built into the kernel. However, should you wish to have an ext3 root
17 partition, then it must be compiled into the kernel.
19 3. Edit the /etc/fstab file, changing the filesystem type to auto. You may
20 alternatively change it to ext3, but should you accidentally build a kernel with
21 only ext2 support, it will not recognise the ext3 filesystem type.
23 4. For each partition on which you wish to use ext3, run:
24         tune2fs -j /dev/<partition>
25    This will create the journal on the same partition.
27 5. Remount the relevant partitions. (Or simply reboot)
29 Once you are up and running, it may be an idea to check the tune2fs man page, to
30 find what other options are available, particularly the fsck frequency. Since the
31 idea of a journalling filesystem is to prevent unwanted fscks, you may wish to
32 disable them entirely. An alternative way to do this is to change the sixth field
33 in the /etc/fstab file to 0. On systems where extra downtime may not be such a
34 problem, you may wish to leave the fscks enabled. In addition, you may like to
35 create the journal on a different drive.
36 Additional information is available at
37 http://www.zip.com.au/~akpm/linux/ext3/ext3-usage.html