Changeset 60efb6b in clfs-embedded for BOOK


Ignore:
Timestamp:
Jun 17, 2013, 1:14:26 PM (11 years ago)
Author:
Andrew Bradford <andrew@…>
Branches:
master
Children:
2116d25
Parents:
4b2d59c
Message:

Change mounting to creating a build dir

Needs to be moved into final prep, soon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/partitioning/common/mounting.xml

    r4b2d59c r60efb6b  
    99  <?dbhtml filename="mounting.html"?>
    1010
    11   <title>Mounting the New Partition</title>
     11  <title>Creating a Build Directory</title>
    1212
    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 <filename
    17   class="directory">/mnt/clfs</filename>, but the directory choice is up
    18   to you.</para>
     13  <para> Create a directory for the CLFS build (the exact location is up to
     14    you): </para>
    1915
    20   <para>Choose a mount point and assign it to the <envar>CLFS</envar>
    21   environment variable by running:</para>
     16<screen><userinput>mkdir -p /mnt/clfs</userinput></screen>
     17
     18  <para>Assign it to the <envar>CLFS</envar> environment variable:</para>
    2219
    2320<screen><userinput>export CLFS=/mnt/clfs</userinput></screen>
    2421
    25   <para>Next, create the mount point and mount the CLFS file system by
    26   running:</para>
     22  <para>Ensure that this new directory has permissions that are too restrictive
     23    such that you can write to it as a non-root user.</para>
    2724
    28 <screen><userinput>mkdir -pv ${CLFS}
    29 mount -v /dev/<replaceable>[xxx]</replaceable> ${CLFS}</userinput></screen>
    30 
    31   <para>Replace <replaceable>[xxx]</replaceable> with the designation of
    32   the CLFS partition.</para>
    33 
    34   <para>If using multiple partitions for CLFS (e.g., one for <filename
    35   class="directory">/</filename> and another for <filename
    36   class="directory">/usr</filename>), mount them using:</para>
    37 
    38 <screen><userinput>mkdir -pv ${CLFS}
    39 mount -v /dev/<replaceable>[xxx]</replaceable> ${CLFS}
    40 mkdir -v ${CLFS}/usr
    41 mount -v /dev/<replaceable>[yyy]</replaceable> ${CLFS}/usr</userinput></screen>
    42 
    43   <para>Replace <replaceable>[xxx]</replaceable> and
    44   <replaceable>[yyy]</replaceable> with the appropriate partition
    45   names.</para>
    46 
    47   <para>Ensure that this new partition is not mounted with permissions
    48   that are too restrictive (such as the nosuid, nodev, or noatime options).
    49   Run the <command>mount</command> command without any parameters to see
    50   what options are set for the mounted CLFS partition. If
    51   <option>nosuid</option>, <option>nodev</option>, and/or
    52   <option>noatime</option> are set, the partition will need to be
    53   remounted.</para>
     25<screen><userinput>chmod 777 $CLFS</userinput></screen>
    5426
    5527  <para>Now that there is an established place to work, it is time to
Note: See TracChangeset for help on using the changeset viewer.