Changes in chapter02/creatingpartition.xml [58f92b0:cfaf727]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter02/creatingpartition.xml
r58f92b0 rcfaf727 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. With an SSDyou will not98 be able to hear swapping ,but you can tell how much swap space is being used99 by runningthe <command>top</command> or <command>free</command> programs. Use of100 an SSD for a swap partition should be avoided if possible. The first97 observing how the system reacts to commands. For an SSD drive you will not 98 be able to hear swapping but you can tell how much swap space is being used 99 by the <command>top</command> or <command>free</command> programs. Use of 100 an SSD drive 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 the <command>gdisk</command> command.</para>115 using <command>gdisk</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 drive that holds119 the LFS root partition. The disks on a system may use different120 partition table types. The necessity of the Grub Bios partition depends118 uses to boot the system. This is not necessarily the same drive where the 119 LFS root partition is located. Disks on a system may use different 120 partition table types. The requirement for this 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 136 your first disk drive. A partition size of 200 megabytes is quite 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 sin <filename class="directory">/usr</filename>.154 So <filename class="directory">/usr</filename> contains all thebinaries153 counterpart in <filename class="directory">/usr</filename>. 154 So <filename class="directory">/usr</filename> contains all 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 createit anyway, you should make a partition large enough to158 fit all the programs and libraries in the system.The root partition can be157 If you need it anyway, you should make a partition large enough to 158 fit all 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 be aware that an initramfs (not covered by163 LFS) will be needed to boot a system with aseparate162 server). However you should take care that an initramfs (not covered by 163 LFS) will be needed to boot a system with 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 large packages like KDE or Texlivecan167 BLFS where multiple installations of large packages like Gnome or KDE 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 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> 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> 184 175 185 176 <listitem><para>/usr/src – This partition is very 186 177 useful for providing a location to store BLFS source files and 187 share them across LFS builds. It can also be used as a location188 for building BLFS packages. A reasonably large partition of 30-50189 gigabytes provides plenty of room.</para></listitem>178 share them across LFS builds. It can also be used as a location 179 for building BLFS packages. A reasonably large partition of 30-50 180 gigabytes allows plenty of room.</para></listitem> 190 181 191 182 </itemizedlist> 192 183 193 <para>Any separate partition that you want automatically mounted when the194 system starts must be specified in the <filename>/etc/fstab</filename> file.195 Detailsabout how to specify partitions will be discussed in <xref196 linkend="ch-bootable-fstab"/>. </para>184 <para>Any separate partition that you want automatically mounted upon boot 185 needs to be specified in the <filename>/etc/fstab</filename>. Details 186 about how to specify partitions will be discussed in <xref 187 linkend="ch-bootable-fstab"/>. </para> 197 188 198 189 </sect3>
Note:
See TracChangeset
for help on using the changeset viewer.