[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-partitioning-mounting">
|
---|
| 9 | <?dbhtml filename="mounting.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Mounting the New Partition</title>
|
---|
| 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
|
---|
[f35f6d9] | 15 | mounted at a chosen mount point.</para>
|
---|
[3f8be484] | 16 |
|
---|
[f35f6d9] | 17 | <para>If you haven't already, choose a mount point and assign it to the
|
---|
| 18 | <envar>CLFS</envar> environment variable by running:</para>
|
---|
[3f8be484] | 19 |
|
---|
[f35f6d9] | 20 | <screen><userinput>export CLFS=<replaceable>[/mnt/clfs]</replaceable></userinput></screen>
|
---|
[3f8be484] | 21 |
|
---|
[a8f30b25] | 22 | <para>Next, create the mount point and mount the CLFS file system by
|
---|
[3f8be484] | 23 | running:</para>
|
---|
| 24 |
|
---|
[040521bc] | 25 | <screen><userinput>mkdir -pv ${CLFS}
|
---|
| 26 | mount -v /dev/<replaceable>[xxx]</replaceable> ${CLFS}</userinput></screen>
|
---|
[3f8be484] | 27 |
|
---|
| 28 | <para>Replace <replaceable>[xxx]</replaceable> with the designation of
|
---|
[a8f30b25] | 29 | the CLFS partition.</para>
|
---|
[3f8be484] | 30 |
|
---|
[fb40919] | 31 | <para>If using multiple partitions for CLFS (e.g., one for <filename
|
---|
[3f8be484] | 32 | class="directory">/</filename> and another for <filename
|
---|
| 33 | class="directory">/usr</filename>), mount them using:</para>
|
---|
| 34 |
|
---|
[040521bc] | 35 | <screen><userinput>mkdir -pv ${CLFS}
|
---|
| 36 | mount -v /dev/<replaceable>[xxx]</replaceable> ${CLFS}
|
---|
| 37 | mkdir -v ${CLFS}/usr
|
---|
| 38 | mount -v /dev/<replaceable>[yyy]</replaceable> ${CLFS}/usr</userinput></screen>
|
---|
[3f8be484] | 39 |
|
---|
| 40 | <para>Replace <replaceable>[xxx]</replaceable> and
|
---|
| 41 | <replaceable>[yyy]</replaceable> with the appropriate partition
|
---|
| 42 | names.</para>
|
---|
| 43 |
|
---|
| 44 | <para>Ensure that this new partition is not mounted with permissions
|
---|
[a4e81f7] | 45 | that are too restrictive (such as the <option>nosuid</option>,
|
---|
| 46 | <option>nodev</option>, or <option>noatime</option> options).
|
---|
[e2ebd22] | 47 | Run <command>mount | grep ${CLFS}</command> to see
|
---|
[a8f30b25] | 48 | what options are set for the mounted CLFS partition. If
|
---|
[3f8be484] | 49 | <option>nosuid</option>, <option>nodev</option>, and/or
|
---|
| 50 | <option>noatime</option> are set, the partition will need to be
|
---|
| 51 | remounted.</para>
|
---|
| 52 |
|
---|
| 53 | <para>Now that there is an established place to work, it is time to
|
---|
| 54 | download the packages.</para>
|
---|
| 55 |
|
---|
| 56 | </sect1>
|
---|