diff options
Diffstat (limited to 'chapter02')
-rw-r--r-- | chapter02/creatingpartition.xml | 20 | ||||
-rw-r--r-- | chapter02/mounting.xml | 6 |
2 files changed, 19 insertions, 7 deletions
diff --git a/chapter02/creatingpartition.xml b/chapter02/creatingpartition.xml index 672c2efb5..efca7ea1c 100644 --- a/chapter02/creatingpartition.xml +++ b/chapter02/creatingpartition.xml @@ -141,10 +141,22 @@ builds. The size is generally fairly large and depends on available disk space.</para></listitem> - <listitem><para>/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 ten gigabytes will handle most - installations.</para></listitem> + <listitem><para>/usr – In LFS, + <filename class="directory">/bin</filename>, + <filename class="directory">/lib</filename>, and + <filename class="directory">/sbin</filename> are symlinks to their + counterpart in <filename class="directory">/usr</filename>. + So <filename class="directory">/usr</filename> contains all binaries + needed for the system to run. For LFS a separate partition for + <filename class="directory">/usr</filename> is normally not needed. + If you need it anyway, you should make a partition large enough to + fit all programs and libraries in the system. The root partition can be + very small (maybe just one gigabyte) in this configuration, so it's + suitable for a thin client or diskless workstation (where + <filename class="directory">/usr</filename> is mounted from a remote + server). However you should take care that an initramfs (not covered by + LFS) will be needed to boot a system with separate + <filename class="directory">/usr</filename> partition.</para></listitem> <listitem><para>/opt – This directory is most useful for BLFS where multiple installations of large packages like Gnome or KDE can diff --git a/chapter02/mounting.xml b/chapter02/mounting.xml index 98a99ed38..45f222485 100644 --- a/chapter02/mounting.xml +++ b/chapter02/mounting.xml @@ -27,12 +27,12 @@ mount -v -t ext4 /dev/<replaceable><xxx></replaceable> $LFS</userinput></s <para>If using multiple partitions for LFS (e.g., one for <filename class="directory">/</filename> and another for <filename - class="directory">/usr</filename>), mount them using:</para> + class="directory">/home</filename>), mount them using:</para> <screen role="nodump"><userinput>mkdir -pv $LFS mount -v -t ext4 /dev/<replaceable><xxx></replaceable> $LFS -mkdir -v $LFS/usr -mount -v -t ext4 /dev/<replaceable><yyy></replaceable> $LFS/usr</userinput></screen> +mkdir -v $LFS/home +mount -v -t ext4 /dev/<replaceable><yyy></replaceable> $LFS/home</userinput></screen> <para>Replace <replaceable><xxx></replaceable> and <replaceable><yyy></replaceable> with the appropriate partition |