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