[f45b1953] | 1 | <sect1 id="postlfs-filesystems-ext3">
|
---|
| 2 | <?dbhtml filename="ext3.html" dir="postlfs"?>
|
---|
| 3 | <title>Ext3</title>
|
---|
| 4 |
|
---|
[69bc513] | 5 | <para>Ext3 is a journaling filesystem that is an extension to the ext2
|
---|
[c88227e] | 6 | filesystem. 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 LFS 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 /etc/fstab. For each partition that you want to convert into
|
---|
| 18 | ext3, edit the entry so that it looks similar to the following line.</para>
|
---|
| 19 |
|
---|
| 20 | <para><userinput>/dev/hdXX /mnt_point ext3 defaults 1 0</userinput></para>
|
---|
| 21 |
|
---|
| 22 | <para>In the above line, replace /dev/hdXX by the partition (e.g. /dev/hda2),
|
---|
| 23 | /mnt_point by the mount point (e.g. /home). The 0 in the last field ensures
|
---|
| 24 | that the partition will not be checked for consistency during bootup by the
|
---|
| 25 | checkfs script. You may replace the ext3 fs type in the above by auto if you
|
---|
| 26 | want to ensure that the partition is mounted if you accidentally skip
|
---|
| 27 | enabling the ext3 support in the kernel.</para>
|
---|
| 28 |
|
---|
| 29 | <para>For each partition that you have converted to ext3 in /etc/fstab,
|
---|
| 30 | enable the journal for the partition by running the following command.</para>
|
---|
| 31 |
|
---|
| 32 | <para><userinput>tune2fs -j /dev/hdXX</userinput></para>
|
---|
| 33 |
|
---|
| 34 | <para>Remount the concerned partitions, or simply reboot if you have
|
---|
| 35 | recompiled the kernel to enable ext3 support.</para>
|
---|
| 36 |
|
---|
| 37 | <para>More information is available at <ulink
|
---|
| 38 | url="http://www.zip.com.au/~akpm/linux/ext3/ext3-usage.html"/></para>
|
---|
[f45b1953] | 39 |
|
---|
| 40 | </sect1>
|
---|