[4122007] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[f45b1953] | 8 | <sect1 id="postlfs-filesystems-ext3">
|
---|
[a0f03b0] | 9 | <sect1info>
|
---|
[5cd0959d] | 10 | <othername>$LastChangedBy$</othername>
|
---|
| 11 | <date>$Date$</date>
|
---|
[a0f03b0] | 12 | </sect1info>
|
---|
[bae6e15] | 13 | <?dbhtml filename="ext3.html"?>
|
---|
[f45b1953] | 14 | <title>Ext3</title>
|
---|
| 15 |
|
---|
[666f6de] | 16 | <para>Ext3 is a journaling file system that is an extension to the ext2
|
---|
| 17 | file system. It is backward compatible with ext2 and the conversion from ext2
|
---|
[c88227e] | 18 | to ext3 is trivial.</para>
|
---|
| 19 |
|
---|
| 20 | <para>You don't need to install anything to use ext3, all the required
|
---|
[f7b26fb7] | 21 | packages are available with a bare <acronym>LFS</acronym> system.</para>
|
---|
[c88227e] | 22 |
|
---|
| 23 | <para>When building the kernel, ensure that you have compiled in ext3
|
---|
| 24 | support. If you want your root partition to be ext3, then compile the ext3
|
---|
| 25 | support in the kernel, else you may compile it as a module. Recompile the
|
---|
| 26 | kernel if needed.</para>
|
---|
| 27 |
|
---|
[f7b26fb7] | 28 | <para>Edit your <filename>/etc/fstab</filename>. For each partition that you
|
---|
| 29 | want to convert into ext3, edit the entry so that it looks similar to the
|
---|
| 30 | following line.</para>
|
---|
[c88227e] | 31 |
|
---|
[009b52f5] | 32 | <screen>/dev/hd<replaceable>XX</replaceable> /mnt_point ext3 defaults 1 0</screen>
|
---|
[c88227e] | 33 |
|
---|
[009b52f5] | 34 | <para>In the above line, replace
|
---|
| 35 | <filename>/dev/hd<replaceable>XX</replaceable></filename> by the
|
---|
[0990cf7a] | 36 | partition (e.g., <filename>/dev/hda2</filename>),
|
---|
| 37 | <filename class="directory">/mnt_point</filename> by the mount point (e.g.,
|
---|
[c2ee009c] | 38 | <filename class="directory">/home</filename>). The <option>0</option> in the
|
---|
| 39 | last field ensures that the partition will not be checked for
|
---|
| 40 | consistency during the boot process by the <command>checkfs</command> script.
|
---|
| 41 | You may replace the <option>ext3</option> fs type in the above by
|
---|
| 42 | <option>auto</option> if you want to ensure that the partition is mounted
|
---|
[f7b26fb7] | 43 | if you accidentally skip enabling the ext3 support in the kernel.</para>
|
---|
| 44 |
|
---|
| 45 | <para>For each partition that you have converted to ext3 in <filename>
|
---|
| 46 | /etc/fstab</filename>, enable the journal for the partition by running the
|
---|
| 47 | following command.</para>
|
---|
| 48 |
|
---|
[009b52f5] | 49 | <screen><userinput><command>tune2fs -j /dev/hd<replaceable>XX</replaceable></command></userinput></screen>
|
---|
[c88227e] | 50 |
|
---|
| 51 | <para>Remount the concerned partitions, or simply reboot if you have
|
---|
| 52 | recompiled the kernel to enable ext3 support.</para>
|
---|
| 53 |
|
---|
| 54 | <para>More information is available at <ulink
|
---|
[4ea49a31] | 55 | url="http://www.zip.com.au/~akpm/linux/ext3/ext3-usage.html"/>.</para>
|
---|
[f45b1953] | 56 |
|
---|
| 57 | </sect1>
|
---|