source: BOOK/partitioning/common/mounting.xml@ 77e1959e

sysvinit
Last change on this file since 77e1959e was 2c6590d, checked in by Chris Staub <chris@…>, 10 years ago

More additions to specify running commands as root

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[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
[c07fa0e]15 mounted at a chosen mount point.</para>
[3f8be484]16
[2c6590d]17 <para>As the <systemitem class="username">root</systemitem> user, ensure the
18 <envar>CLFS</envar> variable is set, if you haven't already:</para>
[3f8be484]19
[c07fa0e]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
[2c6590d]23 running the following commands as
24 <systemitem class="username">root</systemitem>:</para>
[3f8be484]25
[040521bc]26<screen><userinput>mkdir -pv ${CLFS}
27mount -v /dev/<replaceable>[xxx]</replaceable> ${CLFS}</userinput></screen>
[3f8be484]28
29 <para>Replace <replaceable>[xxx]</replaceable> with the designation of
[a8f30b25]30 the CLFS partition.</para>
[3f8be484]31
[fb40919]32 <para>If using multiple partitions for CLFS (e.g., one for <filename
[3f8be484]33 class="directory">/</filename> and another for <filename
[2c6590d]34 class="directory">/usr</filename>), mount them as
35 <systemitem class="username">root</systemitem> using:</para>
[3f8be484]36
[040521bc]37<screen><userinput>mkdir -pv ${CLFS}
38mount -v /dev/<replaceable>[xxx]</replaceable> ${CLFS}
39mkdir -v ${CLFS}/usr
40mount -v /dev/<replaceable>[yyy]</replaceable> ${CLFS}/usr</userinput></screen>
[3f8be484]41
42 <para>Replace <replaceable>[xxx]</replaceable> and
43 <replaceable>[yyy]</replaceable> with the appropriate partition
44 names.</para>
45
46 <para>Ensure that this new partition is not mounted with permissions
[cedee4d]47 that are too restrictive (such as the <option>nosuid</option>,
48 <option>nodev</option>, or <option>noatime</option> options).
[1d6cb8e]49 Run <command>mount | grep ${CLFS}</command> to see
[a8f30b25]50 what options are set for the mounted CLFS partition. If
[3f8be484]51 <option>nosuid</option>, <option>nodev</option>, and/or
52 <option>noatime</option> are set, the partition will need to be
53 remounted.</para>
54
55 <para>Now that there is an established place to work, it is time to
56 download the packages.</para>
57
58</sect1>
Note: See TracBrowser for help on using the repository browser.