Changeset 9011f2d2
- Timestamp:
- 09/22/2022 09:17:48 PM (18 months ago)
- Branches:
- 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- b6a67d37
- Parents:
- 4ca79662
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter02/mounting.xml
r4ca79662 r9011f2d2 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> 19 18 20 <para>Create the mount point and mount the LFS file system by running:</para>19 <para>Create the mount point and mount the LFS file system with these commands:</para> 21 20 22 21 <screen role="nodump"><userinput>mkdir -pv $LFS 23 22 mount -v -t ext4 /dev/<replaceable><xxx></replaceable> $LFS</userinput></screen> 24 23 25 <para>Replace <replaceable><xxx></replaceable> with the designationof the LFS24 <para>Replace <replaceable><xxx></replaceable> with the name of the LFS 26 25 partition.</para> 27 26 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>27 <para>If you are using multiple partitions for LFS (e.g., one for 28 <filename class="directory">/</filename> and another for <filename 29 class="directory">/home</filename>), mount them like this:</para> 31 30 32 31 <screen role="nodump"><userinput>mkdir -pv $LFS … … 44 43 without any parameters to see what options are set for the mounted LFS 45 44 partition. If <option>nosuid</option> and/or <option>nodev</option> are set, 46 the partition will need tobe remounted.</para>45 the partition must be remounted.</para> 47 46 48 <warning><para>The above instructions assume that you will not be restarting47 <warning><para>The above instructions assume that you will not restart 49 48 your computer throughout the LFS process. If you shut down your system, 50 49 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: 50 the build process, or modify the host system's /etc/fstab file to automatically 51 remount it when you reboot. For example, you might add this line to your 52 /etc/fstab file: 53 53 54 54 <screen role="nodump">/dev/<replaceable><xxx></replaceable> /mnt/lfs ext4 defaults 1 1</screen> … … 68 68 <systemitem class="filesystem">swap</systemitem> partition.</para> 69 69 70 <para>Now that the re is an established place to work, it is time to70 <para>Now that the new LFS partition is open for business, it's time to 71 71 download the packages.</para> 72 72
Note:
See TracChangeset
for help on using the changeset viewer.