1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
- <!ENTITY % general-entities SYSTEM "../general.ent">
- %general-entities;
- ]>
- <sect1 id="space-mounting">
- <?dbhtml filename="mounting.html"?>
- <title>Mounting the New Partition</title>
- <para>Now that a file system has been created, the partition needs to
- be made accessible. In order to do this, the partition needs to be
- mounted at a chosen mount point. For the purposes of this book, it is
- assumed that the file system is mounted under the directory specified by the
- <envar>LFS</envar> environment variable as described in the previous section.
- </para>
- <para>Create the mount point and mount the LFS file system by running:</para>
- <screen role="nodump"><userinput>mkdir -pv $LFS
- mount -v -t ext4 /dev/<replaceable><xxx></replaceable> $LFS</userinput></screen>
- <para>Replace <replaceable><xxx></replaceable> with the designation of the LFS
- partition.</para>
- <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>
- <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>
- <para>Replace <replaceable><xxx></replaceable> and
- <replaceable><yyy></replaceable> with the appropriate partition
- names.</para>
- <para>Ensure that this new partition is not mounted with permissions that are
- too restrictive (such as the <option>nosuid</option> or
- <option>nodev</option> options). Run the <command>mount</command> command
- without any parameters to see what options are set for the mounted LFS
- partition. If <option>nosuid</option> and/or <option>nodev</option> are set,
- the partition will need to be remounted.</para>
- <warning><para>The above instructions assume that you will not be restarting
- your computer throughout the LFS process. If you shut down your system,
- you will either need to remount the LFS partition each time you restart
- the build process or modify your host system's /etc/fstab file to automatically
- remount it upon boot. For example:
- <screen role="nodump">/dev/<replaceable><xxx></replaceable> /mnt/lfs ext4 defaults 1 1</screen>
- If you use additional optional partitions, be sure to add them also.
- </para></warning>
- <para>If you are using a <systemitem
- class="filesystem">swap</systemitem> partition, ensure that it is enabled
- using the <command>swapon</command> command:</para>
- <screen role="nodump"><userinput>/sbin/swapon -v /dev/<replaceable><zzz></replaceable></userinput></screen>
- <para>Replace <replaceable><zzz></replaceable> with the name of the
- <systemitem class="filesystem">swap</systemitem> partition.</para>
- <para>Now that there is an established place to work, it is time to
- download the packages.</para>
- </sect1>
|