aboutsummaryrefslogtreecommitdiffstats
path: root/chapter02/mounting.xml
blob: 52e4409aade78061997f9e19011e934f3c28539b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../general.ent">
  %general-entities;
]>
<sect1 id="space-mounting">
<title>Mounting the new partition</title>
<?dbhtml filename="mounting.html"?>

<para>See testing</para>

<!--
<para>Now that we've created a file system, we want to be able to access
the partition. For that, we need to mount it, and have to choose a mount
point. In this book we assume that the file system is mounted under
<filename class="directory">/mnt/lfs</filename>, but it doesn't matter what directory
you choose.</para>

<para>Choose a mount point and assign it to the LFS environment variable
by running:</para>

<screen><userinput>export LFS=/mnt/lfs</userinput></screen>

<para>Now create the mount point and mount the LFS file system by running:</para>

<screen><userinput>mkdir -p $LFS
mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen>

<para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS
partition.</para>

<para>If you have decided to use multiple partitions for LFS (say one for
<filename class="directory">/</filename> and another for 
<filename class="directory">/usr</filename>), mount them like this:</para>

<screen><userinput>mkdir -p $LFS
mount /dev/<replaceable>[xxx]</replaceable> $LFS
mkdir $LFS/usr
mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen>

<para>Of course, replace <replaceable>[xxx]</replaceable> and
<replaceable>[yyy]</replaceable> with the appropriate partition names.</para>

<para>You should also ensure that this new partition is not mounted with
permissions that are too restrictive (such as the nosuid, nodev or noatime
options). You can run the <command>mount</command> command without any
parameters to see with what options the LFS partition is mounted. If
you see nosuid, nodev or noatime, you will need to remount it.</para>
 
<para>Now that we've made ourselves a place to work in, we're ready to download
the packages.</para>
-->

</sect1>