- Timestamp:
- Jun 17, 2013, 1:14:26 PM (11 years ago)
- Branches:
- master
- Children:
- 2116d25
- Parents:
- 4b2d59c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/partitioning/common/mounting.xml
r4b2d59c r60efb6b 9 9 <?dbhtml filename="mounting.html"?> 10 10 11 <title> Mounting the New Partition</title>11 <title>Creating a Build Directory</title> 12 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 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> 19 15 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> 22 19 23 20 <screen><userinput>export CLFS=/mnt/clfs</userinput></screen> 24 21 25 <para> Next, create the mount point and mount the CLFS file system by26 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> 27 24 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> 54 26 55 27 <para>Now that there is an established place to work, it is time to
Note:
See TracChangeset
for help on using the changeset viewer.