1 | <sect1 id="postlfs-filesystems-ext3">
|
---|
2 | <?dbhtml filename="ext3.html" dir="postlfs"?>
|
---|
3 | <title>Ext3</title>
|
---|
4 |
|
---|
5 | <para>Ext3 is a journaling file system that is an extension to the ext2
|
---|
6 | file system. It is backward compatible with ext2 and the conversion from ext2
|
---|
7 | to ext3 is trivial.</para>
|
---|
8 |
|
---|
9 | <para>You don't need to install anything to use ext3, all the required
|
---|
10 | packages are available with a bare <acronym>LFS</acronym> system.</para>
|
---|
11 |
|
---|
12 | <para>When building the kernel, ensure that you have compiled in ext3
|
---|
13 | support. If you want your root partition to be ext3, then compile the ext3
|
---|
14 | support in the kernel, else you may compile it as a module. Recompile the
|
---|
15 | kernel if needed.</para>
|
---|
16 |
|
---|
17 | <para>Edit your <filename>/etc/fstab</filename>. For each partition that you
|
---|
18 | want to convert into ext3, edit the entry so that it looks similar to the
|
---|
19 | following line.</para>
|
---|
20 |
|
---|
21 | <screen>/dev/hd<replaceable>XX</replaceable> /mnt_point ext3 defaults 1 0</screen>
|
---|
22 |
|
---|
23 | <para>In the above line, replace
|
---|
24 | <filename>/dev/hd<replaceable>XX</replaceable></filename> by the
|
---|
25 | partition (e.g. <filename>/dev/hda2</filename>),
|
---|
26 | <filename class="directory">/mnt_point</filename> by the mount point (e.g.
|
---|
27 | <filename class="directory">/home</filename>). The <option>0</option> in the
|
---|
28 | last field ensures that the partition will not be checked for
|
---|
29 | consistency during the boot process by the <command>checkfs</command> script.
|
---|
30 | You may replace the <option>ext3</option> fs type in the above by
|
---|
31 | <option>auto</option> if you want to ensure that the partition is mounted
|
---|
32 | if you accidentally skip enabling the ext3 support in the kernel.</para>
|
---|
33 |
|
---|
34 | <para>For each partition that you have converted to ext3 in <filename>
|
---|
35 | /etc/fstab</filename>, enable the journal for the partition by running the
|
---|
36 | following command.</para>
|
---|
37 |
|
---|
38 | <screen><userinput><command>tune2fs -j /dev/hd<replaceable>XX</replaceable></command></userinput></screen>
|
---|
39 |
|
---|
40 | <para>Remount the concerned partitions, or simply reboot if you have
|
---|
41 | recompiled the kernel to enable ext3 support.</para>
|
---|
42 |
|
---|
43 | <para>More information is available at <ulink
|
---|
44 | url="http://www.zip.com.au/~akpm/linux/ext3/ext3-usage.html"/></para>
|
---|
45 |
|
---|
46 | </sect1>
|
---|