source: BOOK/partitioning/common/mounting.xml@ d82cfb2

systemd
Last change on this file since d82cfb2 was 3359e39, 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
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
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
15 mounted at a chosen mount point.</para>
16
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>
19
20<screen><userinput>export CLFS=<replaceable>[/mnt/clfs]</replaceable></userinput></screen>
21
22 <para>Next, create the mount point and mount the CLFS file system by
23 running the following commands as
24 <systemitem class="username">root</systemitem>:</para>
25
26<screen><userinput>mkdir -pv ${CLFS}
27mount -v /dev/<replaceable>[xxx]</replaceable> ${CLFS}</userinput></screen>
28
29 <para>Replace <replaceable>[xxx]</replaceable> with the designation of
30 the CLFS partition.</para>
31
32 <para>If using multiple partitions for CLFS (e.g., one for <filename
33 class="directory">/</filename> and another for <filename
34 class="directory">/usr</filename>), mount them as
35 <systemitem class="username">root</systemitem> using:</para>
36
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>
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
47 that are too restrictive (such as the <option>nosuid</option>,
48 <option>nodev</option>, or <option>noatime</option> options).
49 Run <command>mount | grep ${CLFS}</command> 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>
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.