From b99b7d3a6e77c4728dcf9903f71f2e3fdd95daca Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 9 Jun 2020 17:25:59 +0000 Subject: [PATCH] Update text in cross2 branch Chapter 2. git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11912 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter02/creatingfilesystem.xml | 35 +------------------------ chapter02/creatingpartition.xml | 45 ++++++++++++++------------------ chapter02/stages.xml | 14 +++++----- 3 files changed, 27 insertions(+), 67 deletions(-) diff --git a/chapter02/creatingfilesystem.xml b/chapter02/creatingfilesystem.xml index 4a722efe0..f01b745e9 100644 --- a/chapter02/creatingfilesystem.xml +++ b/chapter02/creatingfilesystem.xml @@ -52,42 +52,9 @@ mkfs -v -t ext4 /dev/<xxx> - If you are using an existing swap partition, there is no need to format it. If a new swap partition was created, diff --git a/chapter02/creatingpartition.xml b/chapter02/creatingpartition.xml index 02d6528b1..672c2efb5 100644 --- a/chapter02/creatingpartition.xml +++ b/chapter02/creatingpartition.xml @@ -15,21 +15,6 @@ is to use an available empty partition or, if you have enough unpartitioned space, to create one. - - A minimal system requires a partition of around 10 gigabytes (GB). 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, @@ -77,7 +62,7 @@ Other Partition Issues 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 not optimal for LFS for several reasons. It reduces flexibility, makes sharing of data across multiple distributions or LFS builds more difficult, makes @@ -89,7 +74,7 @@ A root LFS partition (not to be confused with the /root 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 partitions can be easily created for experimentation. @@ -102,13 +87,21 @@ hold the swap partition to two gigabytes and monitor the amount of disk swapping. - Swapping is never good. Generally you can tell if a system is - swapping by just listening to disk activity and observing how the system - reacts to commands. 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. - + If you want to use the hibernation feature (suspend-to-disk) of Linux, + it writes out the contents of RAM to the swap partition before turning off + the machine. In this case the size of the swap partition should be at + least as large as the system's installed RAM. + + Swapping is never good. For mechanical hard drives you can generally + 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 top or free 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. The Grub Bios Partition @@ -140,7 +133,7 @@ /boot – Highly recommended. Use this partition to store kernels and other booting information. To minimize potential boot 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. /home – Highly recommended. Share your home @@ -150,7 +143,7 @@ /usr – A separate /usr partition is generally used 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. /opt – This directory is most useful for diff --git a/chapter02/stages.xml b/chapter02/stages.xml index 25de52632..0d513383d 100644 --- a/chapter02/stages.xml +++ b/chapter02/stages.xml @@ -41,17 +41,17 @@ - Those two chapters must be done as user lfs. - A su - lfs needs to be done before any task in this - part. Failing to do that, you are at risk of installing packages to the - host, and render it unusable. + Threse two chapters must be done as user lfs. + A su - lfs needs to be done before any task in these + chapters. Failing to do that, you are at risk of installing packages to the + host, and potentially rendering it unusable. The procedures in are critical. If there is any 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. @@ -67,8 +67,8 @@ A few operations, from Changing Ownership to - Entering the Chroot Environment must be done as the - root user, with LFS set for the root user. + Entering the Chroot Environment must be done as the + root user, with the LFS envirnment variable set for the root user.