mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Expand discussion of file system types and
make ext4 the example LFS partition type git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10286 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
28c4c1ede4
commit
4e7e16d690
@ -35,6 +35,17 @@
|
|||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</listitem>
|
</listitem>
|
||||||
-->
|
-->
|
||||||
|
<listitem>
|
||||||
|
<para>2013-05-19</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>[bdubbs] - Expand discussion of file system types and
|
||||||
|
make ext4 the example LFS partition type. Fixes
|
||||||
|
<ulink url="&lfs-ticket-root;3346">#3346</ulink>.</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>2013-05-15</para>
|
<para>2013-05-15</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
@ -10,23 +10,49 @@
|
|||||||
|
|
||||||
<title>Creating a File System on the Partition</title>
|
<title>Creating a File System on the Partition</title>
|
||||||
|
|
||||||
<para>Now that a blank partition has been set up, the file system can be created.
|
<para>Now that a blank partition has been set up, the file system can be
|
||||||
The most widely-used system in the Linux world is the second extended file
|
created. LFS can use any file system recognized by the Linux kernel, but the
|
||||||
system (<systemitem class="filesystem">ext2</systemitem>), but with newer
|
most common types are ext3 and ext4. The choice of file system can be
|
||||||
high-capacity hard disks, journaling file systems are becoming increasingly
|
complex and depends on the characteristics of the files and the size of
|
||||||
popular. The third extended filesystem (<systemitem
|
the partition. For example:</para>
|
||||||
class="filesystem">ext3</systemitem>) is a widely used enhancement to
|
|
||||||
<systemitem class="filesystem">ext2</systemitem>, which adds journaling
|
|
||||||
capabilities and is compatible with the E2fsprogs utilities.
|
|
||||||
We will create an <systemitem class="filesystem">ext3</systemitem>
|
|
||||||
file system. Instructions for creating other file systems can be found at
|
|
||||||
<ulink url="&blfs-root;view/svn/postlfs/filesystems.html"/>.</para>
|
|
||||||
|
|
||||||
<para>To create an <systemitem class="filesystem">ext3</systemitem> file
|
<variablelist>
|
||||||
system on the LFS partition, run the following:</para>
|
<varlistentry>
|
||||||
|
<term>ext2</term>
|
||||||
|
<listitem><para>is suitable for small partitions that are updated infrequently
|
||||||
|
such as /boot.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>ext3</term>
|
||||||
|
<listitem><para>is an upgrade to ext2 that includes a journal
|
||||||
|
to help recover the partition's status in the case of an unclean
|
||||||
|
shutdown. It is commonly used as a general purpose file system.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>ext4</term>
|
||||||
|
<listitem><para>is the latest version of the ext file system family of
|
||||||
|
partition types. It provides several new capabilties including
|
||||||
|
nano-second timestamps, creation and use of very large files (16 TB), and
|
||||||
|
speed improvements.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
|
||||||
<screen role="nodump"><userinput>mke2fs -jv /dev/<replaceable><xxx></replaceable></userinput></screen>
|
<para>Other file sytems, including FAT32, NTFS, ReiserFS, JFS, and XFS are
|
||||||
|
useful for specialized purposes. More information about these file systems
|
||||||
|
can be found at <ulink
|
||||||
|
url="http://en.wikipedia.org/wiki/Comparison_of_file_systems"/>.</para>
|
||||||
|
|
||||||
|
<para>LFS assumes that the root file system (/) is of type ext4. To create
|
||||||
|
an <systemitem class="filesystem">ext4</systemitem> file system on the LFS
|
||||||
|
partition, run the following:</para>
|
||||||
|
|
||||||
|
<screen role="nodump"><userinput>mkfs -v -t ext4 /dev/<replaceable><xxx></replaceable></userinput></screen>
|
||||||
|
|
||||||
|
<!--
|
||||||
<para>Replace <replaceable><xxx></replaceable> with the name of the LFS
|
<para>Replace <replaceable><xxx></replaceable> with the name of the LFS
|
||||||
partition (<filename class="devicefile">sda5</filename> in our previous
|
partition (<filename class="devicefile">sda5</filename> in our previous
|
||||||
example).</para>
|
example).</para>
|
||||||
@ -61,7 +87,7 @@ make #note that we intentionally don't 'make install' here!
|
|||||||
cd /tmp
|
cd /tmp
|
||||||
rm -rfv e2fsprogs-&e2fsprogs-version;</userinput></screen>
|
rm -rfv e2fsprogs-&e2fsprogs-version;</userinput></screen>
|
||||||
</note>
|
</note>
|
||||||
|
-->
|
||||||
<para>If you are using an existing <systemitem class="filesystem">swap
|
<para>If you are using an existing <systemitem class="filesystem">swap
|
||||||
</systemitem> partition, there is no need to format it. If a new
|
</systemitem> partition, there is no need to format it. If a new
|
||||||
<systemitem class="filesystem"> swap</systemitem> partition was created,
|
<systemitem class="filesystem"> swap</systemitem> partition was created,
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
running:</para>
|
running:</para>
|
||||||
|
|
||||||
<screen role="nodump"><userinput>mkdir -pv $LFS
|
<screen role="nodump"><userinput>mkdir -pv $LFS
|
||||||
mount -v -t ext3 /dev/<replaceable><xxx></replaceable> $LFS</userinput></screen>
|
mount -v -t ext4 /dev/<replaceable><xxx></replaceable> $LFS</userinput></screen>
|
||||||
|
|
||||||
<para>Replace <replaceable><xxx></replaceable> with the designation of the LFS
|
<para>Replace <replaceable><xxx></replaceable> with the designation of the LFS
|
||||||
partition.</para>
|
partition.</para>
|
||||||
@ -36,9 +36,9 @@ mount -v -t ext3 /dev/<replaceable><xxx></replaceable> $LFS</userinput></s
|
|||||||
class="directory">/usr</filename>), mount them using:</para>
|
class="directory">/usr</filename>), mount them using:</para>
|
||||||
|
|
||||||
<screen role="nodump"><userinput>mkdir -pv $LFS
|
<screen role="nodump"><userinput>mkdir -pv $LFS
|
||||||
mount -v -t ext3 /dev/<replaceable><xxx></replaceable> $LFS
|
mount -v -t ext4 /dev/<replaceable><xxx></replaceable> $LFS
|
||||||
mkdir -v $LFS/usr
|
mkdir -v $LFS/usr
|
||||||
mount -v -t ext3 /dev/<replaceable><yyy></replaceable> $LFS/usr</userinput></screen>
|
mount -v -t ext4 /dev/<replaceable><yyy></replaceable> $LFS/usr</userinput></screen>
|
||||||
|
|
||||||
<para>Replace <replaceable><xxx></replaceable> and
|
<para>Replace <replaceable><xxx></replaceable> and
|
||||||
<replaceable><yyy></replaceable> with the appropriate partition
|
<replaceable><yyy></replaceable> with the appropriate partition
|
||||||
|
@ -41,7 +41,7 @@ EOF</userinput></screen>
|
|||||||
with the values appropriate for the system, for example, <filename
|
with the values appropriate for the system, for example, <filename
|
||||||
class="partition">sda2</filename>, <filename
|
class="partition">sda2</filename>, <filename
|
||||||
class="partition">sda5</filename>, and <systemitem
|
class="partition">sda5</filename>, and <systemitem
|
||||||
class="filesystem">ext3</systemitem>. For details on the six
|
class="filesystem">ext4</systemitem>. For details on the six
|
||||||
fields in this file, see <command>man 5 fstab</command>.</para>
|
fields in this file, see <command>man 5 fstab</command>.</para>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!ENTITY version "SVN-20130515">
|
<!ENTITY version "SVN-20130519">
|
||||||
<!ENTITY releasedate "May 15, 2013">
|
<!ENTITY releasedate "May 19, 2013">
|
||||||
<!ENTITY copyrightdate "1999-2013"><!-- jhalfs needs a literal dash, not – -->
|
<!ENTITY copyrightdate "1999-2013"><!-- jhalfs needs a literal dash, not – -->
|
||||||
<!ENTITY milestone "7.4">
|
<!ENTITY milestone "7.4">
|
||||||
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
|
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
|
||||||
|
Loading…
Reference in New Issue
Block a user