diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2005-02-19 22:16:42 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2005-02-19 22:16:42 +0000 |
commit | 81fd230419b0cfd052b08fc1ed352bb7d49975df (patch) | |
tree | 24c98d2876e5b457dcb88d39e7cca4905f58691a /chapter02/mounting.xml | |
parent | 2f9131f8390243dbc350fe2eeb9e1d58f0264888 (diff) |
Trunk is now identical to Testing
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4648 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter02/mounting.xml')
-rw-r--r-- | chapter02/mounting.xml | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/chapter02/mounting.xml b/chapter02/mounting.xml index fb31964a7..0ac3f91bf 100644 --- a/chapter02/mounting.xml +++ b/chapter02/mounting.xml @@ -7,6 +7,50 @@ <title>Mounting the New Partition</title> <?dbhtml filename="mounting.html"?> -<para>See testing</para> +<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 <filename +class="directory">/mnt/lfs</filename>, but the directory choice is up +to you.</para> + +<para>Choose a mount point and assign it to the <envar>LFS</envar> +environment variable by running:</para> + +<screen><userinput>export LFS=/mnt/lfs</userinput></screen> + +<para>Next, create the mount point and mount the LFS file system by +running:</para> + +<screen><userinput>mkdir -p $LFS +mount /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><userinput>mkdir -p $LFS +mount /dev/<replaceable>[xxx]</replaceable> $LFS +mkdir $LFS/usr +mount /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 nosuid, nodev, or noatime +options). Run the <command>mount</command> command without any +parameters to see what options are set for the mounted LFS +partition. If <parameter>nosuid</parameter>, <parameter>nodev</parameter>, +and/or <parameter>noatime</parameter> are set, the partition will need +to be remounted.</para> + +<para>Now that there is an established place to work, it is time to +download the packages.</para> </sect1> + |