mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Update text in cross2 branch Chapter 2.
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11912 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
3369724788
commit
b99b7d3a6e
@ -52,42 +52,9 @@
|
|||||||
|
|
||||||
<screen role="nodump"><userinput>mkfs -v -t ext4 /dev/<replaceable><xxx></replaceable></userinput></screen>
|
<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.</para>
|
||||||
example).</para>
|
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Some host distributions use custom features in their filesystem
|
|
||||||
creation tools (E2fsprogs). This can cause problems when booting into your new
|
|
||||||
LFS in Chapter 9, as those features will not be supported by the LFS-installed
|
|
||||||
E2fsprogs; you will get an error similar to <quote>unsupported filesystem
|
|
||||||
features, upgrade your e2fsprogs</quote>. To check if your host system
|
|
||||||
uses custom enhancements, run the following command:</para>
|
|
||||||
|
|
||||||
<screen role="nodump"><userinput>debugfs -R feature /dev/<replaceable><xxx></replaceable></userinput></screen>
|
|
||||||
|
|
||||||
<para>If the output contains features other than
|
|
||||||
<option>has_journal</option>, <option>ext_attr</option>,
|
|
||||||
<option>resize_inode</option>, <option>dir_index</option>,
|
|
||||||
<option>filetype</option>, <option>sparse_super</option>,
|
|
||||||
<option>large_file</option> or <option>needs_recovery</option>, then your
|
|
||||||
host system may have custom enhancements. In that case, to avoid later
|
|
||||||
problems, you should compile the stock E2fsprogs package and use the
|
|
||||||
resulting binaries to re-create the filesystem on your LFS partition:</para>
|
|
||||||
|
|
||||||
<screen role="nodump"><userinput>cd /tmp
|
|
||||||
tar -xzvf /path/to/sources/e2fsprogs-&e2fsprogs-version;.tar.gz
|
|
||||||
cd e2fsprogs-&e2fsprogs-version;
|
|
||||||
mkdir -v build
|
|
||||||
cd build
|
|
||||||
../configure
|
|
||||||
make #note that we intentionally don't 'make install' here!
|
|
||||||
./misc/mke2fs -jv /dev/<replaceable><xxx></replaceable>
|
|
||||||
cd /tmp
|
|
||||||
rm -rfv e2fsprogs-&e2fsprogs-version;</userinput></screen>
|
|
||||||
</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,
|
||||||
|
@ -15,21 +15,6 @@
|
|||||||
is to use an available empty partition or, if you have enough unpartitioned
|
is to use an available empty partition or, if you have enough unpartitioned
|
||||||
space, to create one.</para>
|
space, to create one.</para>
|
||||||
|
|
||||||
<!--
|
|
||||||
|
|
||||||
<para>It is possible to install an LFS system (in fact even multiple LFS
|
|
||||||
systems) on a partition already occupied by another
|
|
||||||
operating system and the different systems will co-exist peacefully. The
|
|
||||||
document <ulink url="&hints-root;lfs_next_to_existing_systems.txt"/>
|
|
||||||
contains notes on how to implement this. This document was last updated
|
|
||||||
in 2004. It has not been updated since and it has not been tested with
|
|
||||||
recent versions of this LFS book. The document is more than likely not
|
|
||||||
usable as-is and you will need to account for changes made to the LFS
|
|
||||||
procedures since it was written. This is only recommended for expert LFS
|
|
||||||
users.</para>
|
|
||||||
|
|
||||||
-->
|
|
||||||
|
|
||||||
<para>A minimal system requires a partition of around 10 gigabytes (GB).
|
<para>A minimal system requires a partition of around 10 gigabytes (GB).
|
||||||
This is enough to store all the source tarballs and compile the packages.
|
This is enough to store all the source tarballs and compile the packages.
|
||||||
However, if the LFS system is intended to be the primary Linux system,
|
However, if the LFS system is intended to be the primary Linux system,
|
||||||
@ -77,7 +62,7 @@
|
|||||||
<title>Other Partition Issues</title>
|
<title>Other Partition Issues</title>
|
||||||
|
|
||||||
<para>Requests for advice on system partitioning are often posted on the LFS mailing
|
<para>Requests for advice on system partitioning are often posted on the LFS mailing
|
||||||
lists. This is a highly subjective topic. The default for most distributions
|
lists. This is a highly subjective topic. The default for most distributions
|
||||||
is to use the entire drive with the exception of one small swap partition. This
|
is to use the entire drive with the exception of one small swap partition. This
|
||||||
is not optimal for LFS for several reasons. It reduces flexibility, makes
|
is not optimal for LFS for several reasons. It reduces flexibility, makes
|
||||||
sharing of data across multiple distributions or LFS builds more difficult, makes
|
sharing of data across multiple distributions or LFS builds more difficult, makes
|
||||||
@ -89,7 +74,7 @@
|
|||||||
|
|
||||||
<para>A root LFS partition (not to be confused with the
|
<para>A root LFS partition (not to be confused with the
|
||||||
<filename class="directory">/root</filename> directory) of
|
<filename class="directory">/root</filename> directory) of
|
||||||
ten gigabytes is a good compromise for most systems. It provides enough
|
twenty gigabytes is a good compromise for most systems. It provides enough
|
||||||
space to build LFS and most of BLFS, but is small enough so that multiple
|
space to build LFS and most of BLFS, but is small enough so that multiple
|
||||||
partitions can be easily created for experimentation.</para> </sect3>
|
partitions can be easily created for experimentation.</para> </sect3>
|
||||||
|
|
||||||
@ -102,13 +87,21 @@
|
|||||||
hold the swap partition to two gigabytes and monitor the amount of disk
|
hold the swap partition to two gigabytes and monitor the amount of disk
|
||||||
swapping.</para>
|
swapping.</para>
|
||||||
|
|
||||||
<para>Swapping is never good. Generally you can tell if a system is
|
<para>If you want to use the hibernation feature (suspend-to-disk) of Linux,
|
||||||
swapping by just listening to disk activity and observing how the system
|
it writes out the contents of RAM to the swap partition before turning off
|
||||||
reacts to commands. The first reaction to swapping should be to check for
|
the machine. In this case the size of the swap partition should be at
|
||||||
an unreasonable command such as trying to edit a five gigabyte file. If
|
least as large as the system's installed RAM.</para>
|
||||||
swapping becomes a normal occurrence, the best solution is to purchase more
|
|
||||||
RAM for your system.</para>
|
<para>Swapping is never good. For mechanical hard drives you can generally
|
||||||
</sect3>
|
tell if a system is swapping by just listening to disk activity and
|
||||||
|
observing how the system reacts to commands. For an SSD drive you will not
|
||||||
|
be able to hear swapping but you can tell how much swap space is being used
|
||||||
|
by the <command>top</command> or <command>free</command> programs. Use of
|
||||||
|
an SSD drive for a swap partition should be avoided if possible. The first
|
||||||
|
reaction to swapping should be to check for an unreasonable command such as
|
||||||
|
trying to edit a five gigabyte file. If swapping becomes a normal
|
||||||
|
occurrence, the best solution is to purchase more RAM for your
|
||||||
|
system.</para> </sect3>
|
||||||
|
|
||||||
<sect3>
|
<sect3>
|
||||||
<title>The Grub Bios Partition</title>
|
<title>The Grub Bios Partition</title>
|
||||||
@ -140,7 +133,7 @@
|
|||||||
<listitem><para>/boot – Highly recommended. Use this partition to
|
<listitem><para>/boot – Highly recommended. Use this partition to
|
||||||
store kernels and other booting information. To minimize potential boot
|
store kernels and other booting information. To minimize potential boot
|
||||||
problems with larger disks, make this the first physical partition on
|
problems with larger disks, make this the first physical partition on
|
||||||
your first disk drive. A partition size of 100 megabytes is quite
|
your first disk drive. A partition size of 200 megabytes is quite
|
||||||
adequate.</para></listitem>
|
adequate.</para></listitem>
|
||||||
|
|
||||||
<listitem><para>/home – Highly recommended. Share your home
|
<listitem><para>/home – Highly recommended. Share your home
|
||||||
@ -150,7 +143,7 @@
|
|||||||
|
|
||||||
<listitem><para>/usr – A separate /usr partition is generally used
|
<listitem><para>/usr – A separate /usr partition is generally used
|
||||||
if providing a server for a thin client or diskless workstation. It is
|
if providing a server for a thin client or diskless workstation. It is
|
||||||
normally not needed for LFS. A size of five gigabytes will handle most
|
normally not needed for LFS. A size of ten gigabytes will handle most
|
||||||
installations.</para></listitem>
|
installations.</para></listitem>
|
||||||
|
|
||||||
<listitem><para>/opt – This directory is most useful for
|
<listitem><para>/opt – This directory is most useful for
|
||||||
|
@ -41,17 +41,17 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Those two chapters must be done as user <emphasis>lfs</emphasis>.
|
<para>Threse two chapters must be done as user <emphasis>lfs</emphasis>.
|
||||||
A <command>su - lfs</command> needs to be done before any task in this
|
A <command>su - lfs</command> needs to be done before any task in these
|
||||||
part. Failing to do that, you are at risk of installing packages to the
|
chapters. Failing to do that, you are at risk of installing packages to the
|
||||||
host, and render it unusable.</para>
|
host, and potentially rendering it unusable.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>The procedures in <xref linkend='ch-tools-generalinstructions'/>
|
<para>The procedures in <xref linkend='ch-tools-generalinstructions'/>
|
||||||
are critical. If there is any
|
are critical. If there is any
|
||||||
doubt about installing a package, ensure any previously expanded
|
doubt about installing a package, ensure any previously expanded
|
||||||
tarballs are removed, re-extract the package files, and complete all
|
tarballs are removed, then re-extract the package files, and complete all
|
||||||
instructions in that section.</para>
|
instructions in that section.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
@ -67,8 +67,8 @@
|
|||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>A few operations, from <quote>Changing Ownership</quote> to
|
<para>A few operations, from <quote>Changing Ownership</quote> to
|
||||||
<quote>Entering the Chroot Environment</quote> must be done as the
|
<quote>Entering the Chroot Environment</quote> must be done as the
|
||||||
root user, with LFS set for the root user.</para>
|
root user, with the LFS envirnment variable set for the root user.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
|
Loading…
Reference in New Issue
Block a user