Changeset 0ea3431 for chapter02/creatingpartition.xml
- Timestamp:
- 09/26/2022 02:03:23 PM (18 months ago)
- Branches:
- xry111/clfs-ng
- Children:
- 259794e
- Parents:
- 1f6dfd4 (diff), f427ba23 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter02/creatingpartition.xml
r1f6dfd4 r0ea3431 95 95 <para>Swapping is never good. For mechanical hard drives you can generally 96 96 tell if a system is swapping by just listening to disk activity and 97 observing how the system reacts to commands. For an SSD driveyou will not98 be able to hear swapping but you can tell how much swap space is being used99 by the <command>top</command> or <command>free</command> programs. Use of100 an SSD drivefor a swap partition should be avoided if possible. The first97 observing how the system reacts to commands. With an SSD you will not 98 be able to hear swapping, but you can tell how much swap space is being used 99 by running the <command>top</command> or <command>free</command> programs. Use of 100 an SSD for a swap partition should be avoided if possible. The first 101 101 reaction to swapping should be to check for an unreasonable command such as 102 102 trying to edit a five gigabyte file. If swapping becomes a normal … … 113 113 loader. This partition will normally be labeled 'BIOS Boot' if using 114 114 <command>fdisk</command> or have a code of <emphasis>EF02</emphasis> if 115 using <command>gdisk</command>.</para>115 using the <command>gdisk</command> command.</para> 116 116 117 117 <note><para>The Grub Bios partition must be on the drive that the BIOS 118 uses to boot the system. This is not necessarily the same drive where the119 LFS root partition is located. Disks on a system may use different120 partition table types. The requirement for this partition depends118 uses to boot the system. This is not necessarily the drive that holds 119 the LFS root partition. The disks on a system may use different 120 partition table types. The necessity of the Grub Bios partition depends 121 121 only on the partition table type of the boot disk.</para></note> 122 122 </sect3> … … 134 134 store kernels and other booting information. To minimize potential boot 135 135 problems with larger disks, make this the first physical partition on 136 your first disk drive. A partition size of 200 megabytes is quite136 your first disk drive. A partition size of 200 megabytes is 137 137 adequate.</para></listitem> 138 138 … … 151 151 <filename class="directory">/lib</filename>, and 152 152 <filename class="directory">/sbin</filename> are symlinks to their 153 counterpart in <filename class="directory">/usr</filename>.154 So <filename class="directory">/usr</filename> contains all binaries153 counterparts in <filename class="directory">/usr</filename>. 154 So <filename class="directory">/usr</filename> contains all the binaries 155 155 needed for the system to run. For LFS a separate partition for 156 156 <filename class="directory">/usr</filename> is normally not needed. 157 If you needit anyway, you should make a partition large enough to158 fit all programs and libraries in the system.The root partition can be157 If you create it anyway, you should make a partition large enough to 158 fit all the programs and libraries in the system. The root partition can be 159 159 very small (maybe just one gigabyte) in this configuration, so it's 160 160 suitable for a thin client or diskless workstation (where 161 161 <filename class="directory">/usr</filename> is mounted from a remote 162 server). However you should take care that an initramfs (not covered by163 LFS) will be needed to boot a system with separate162 server). However, you should be aware that an initramfs (not covered by 163 LFS) will be needed to boot a system with a separate 164 164 <filename class="directory">/usr</filename> partition.</para></listitem> 165 165 166 166 <listitem><para>/opt – This directory is most useful for 167 BLFS where multiple installations of large packages like Gnome or KDEcan167 BLFS, where multiple large packages like KDE or Texlive can 168 168 be installed without embedding the files in the /usr hierarchy. If 169 169 used, 5 to 10 gigabytes is generally adequate.</para> 170 170 </listitem> 171 171 172 <listitem><para>/tmp – A separate /tmp directory is rare, but 173 useful if configuring a thin client. This partition, if used, will 174 usually not need to exceed a couple of gigabytes.</para></listitem> 172 <listitem revision='sysv'><para>/tmp – A separate /tmp directory 173 is rare, but useful if configuring a thin client. This partition, if 174 used, will usually not need to exceed a couple of 175 gigabytes. If you have enough RAM, you can mount a 176 <systemitem class='filesystem'>tmpfs</systemitem> on /tmp to make 177 access to temporary files faster.</para></listitem> 178 179 <listitem revision='systemd'><para>/tmp – By default, systemd 180 mounts a <systemitem class='filesystem'>tmpfs</systemitem> here. 181 If you want to override that behavior, follow 182 <xref linkend='systemd-no-tmpfs'/> when configuring the LFS 183 system.</para></listitem> 175 184 176 185 <listitem><para>/usr/src – This partition is very 177 186 useful for providing a location to store BLFS source files and 178 share them across LFS builds. 179 for building BLFS packages. 180 gigabytes allows plenty of room.</para></listitem>187 share them across LFS builds. It can also be used as a location 188 for building BLFS packages. A reasonably large partition of 30-50 189 gigabytes provides plenty of room.</para></listitem> 181 190 182 191 </itemizedlist> 183 192 184 <para>Any separate partition that you want automatically mounted upon boot185 needs to be specified in the <filename>/etc/fstab</filename>. Details186 about how to specify partitions will be discussed in <xref187 linkend="ch-bootable-fstab"/>. 193 <para>Any separate partition that you want automatically mounted when the 194 system starts must be specified in the <filename>/etc/fstab</filename> file. 195 Details about how to specify partitions will be discussed in <xref 196 linkend="ch-bootable-fstab"/>.</para> 188 197 189 198 </sect3>
Note:
See TracChangeset
for help on using the changeset viewer.