Changeset c093e6b for chapter02/mounting.xml
- Timestamp:
- 10/01/2022 10:30:12 PM (19 months ago)
- Branches:
- multilib
- Children:
- f3b2f16
- Parents:
- f29824e (diff), 4349661 (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/mounting.xml
rf29824e rc093e6b 11 11 <title>Mounting the New Partition</title> 12 12 13 <para>Now that a file system has been created, the partition needs to 14 be made accessible. In order to do this, the partition needs to be 15 mounted at a chosen mount point. For the purposes of this book, it is 16 assumed that the file system is mounted under the directory specified by the 17 <envar>LFS</envar> environment variable as described in the previous section. 13 <para>Now that a file system has been created, the partition must 14 be mounted so the host system can access it. This book assumes that 15 the file system is mounted at the directory specified by the 16 <envar>LFS</envar> environment variable described in the previous section. 18 17 </para> 18 19 <para>Strictly speaking, one cannot "mount a partition". One mounts the <emphasis>file 20 system</emphasis> embedded in that partition. But since a single partition can't contain 21 more than one file system, people often speak of the partition and the 22 associated file system as if they were one and the same.</para> 19 23 20 <para>Create the mount point and mount the LFS file system by running:</para>24 <para>Create the mount point and mount the LFS file system with these commands:</para> 21 25 22 26 <screen role="nodump"><userinput>mkdir -pv $LFS 23 27 mount -v -t ext4 /dev/<replaceable><xxx></replaceable> $LFS</userinput></screen> 24 28 25 <para>Replace <replaceable><xxx></replaceable> with the designationof the LFS29 <para>Replace <replaceable><xxx></replaceable> with the name of the LFS 26 30 partition.</para> 27 31 28 <para>If using multiple partitions for LFS (e.g., one for <filename29 class="directory">/</filename> and another for <filename30 class="directory">/home</filename>), mount them using:</para>32 <para>If you are using multiple partitions for LFS (e.g., one for 33 <filename class="directory">/</filename> and another for <filename 34 class="directory">/home</filename>), mount them like this:</para> 31 35 32 36 <screen role="nodump"><userinput>mkdir -pv $LFS … … 44 48 without any parameters to see what options are set for the mounted LFS 45 49 partition. If <option>nosuid</option> and/or <option>nodev</option> are set, 46 the partition will need tobe remounted.</para>50 the partition must be remounted.</para> 47 51 48 <warning><para>The above instructions assume that you will not be restarting52 <warning><para>The above instructions assume that you will not restart 49 53 your computer throughout the LFS process. If you shut down your system, 50 54 you will either need to remount the LFS partition each time you restart 51 the build process or modify your host system's /etc/fstab file to automatically 52 remount it upon boot. For example: 55 the build process, or modify the host system's &fstab; file to automatically 56 remount it when you reboot. For example, you might add this line to your 57 &fstab; file: 53 58 54 59 <screen role="nodump">/dev/<replaceable><xxx></replaceable> /mnt/lfs ext4 defaults 1 1</screen> … … 68 73 <systemitem class="filesystem">swap</systemitem> partition.</para> 69 74 70 <para>Now that the re is an established place to work, it is time to75 <para>Now that the new LFS partition is open for business, it's time to 71 76 download the packages.</para> 72 77
Note:
See TracChangeset
for help on using the changeset viewer.