<?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="ch-partitioning-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.</para>

  <para>As the <systemitem class="username">root</systemitem> user, ensure the
  <envar>CLFS</envar> variable is set, if you haven't already:</para>

<screen><userinput>export CLFS=<replaceable>[/mnt/clfs]</replaceable></userinput></screen>

  <para>Next, create the mount point and mount the CLFS file system by
  running the following commands as
  <systemitem class="username">root</systemitem>:</para>

<screen><userinput>mkdir -pv ${CLFS}
mount -v /dev/<replaceable>[xxx]</replaceable> ${CLFS}</userinput></screen>

  <para>Replace <replaceable>[xxx]</replaceable> with the designation of
  the CLFS partition.</para>

  <para>If using multiple partitions for CLFS (e.g., one for <filename
  class="directory">/</filename> and another for <filename
  class="directory">/usr</filename>), mount them as
  <systemitem class="username">root</systemitem> using:</para>

<screen><userinput>mkdir -pv ${CLFS}
mount -v /dev/<replaceable>[xxx]</replaceable> ${CLFS}
mkdir -v ${CLFS}/usr
mount -v /dev/<replaceable>[yyy]</replaceable> ${CLFS}/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>,
  <option>nodev</option>, or <option>noatime</option> options).
  Run <command>mount | grep ${CLFS}</command> to see
  what options are set for the mounted CLFS partition. If
  <option>nosuid</option>, <option>nodev</option>, and/or
  <option>noatime</option> 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>
