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