1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
6 | <sect1 id="space-mounting">
|
---|
7 | <title>Mounting the new partition</title>
|
---|
8 | <?dbhtml filename="mounting.html"?>
|
---|
9 |
|
---|
10 | <para>See testing</para>
|
---|
11 |
|
---|
12 | <!--
|
---|
13 | <para>Now that we've created a file system, we want to be able to access
|
---|
14 | the partition. For that, we need to mount it, and have to choose a mount
|
---|
15 | point. In this book we assume that the file system is mounted under
|
---|
16 | <filename class="directory">/mnt/lfs</filename>, but it doesn't matter what directory
|
---|
17 | you choose.</para>
|
---|
18 |
|
---|
19 | <para>Choose a mount point and assign it to the LFS environment variable
|
---|
20 | by running:</para>
|
---|
21 |
|
---|
22 | <screen><userinput>export LFS=/mnt/lfs</userinput></screen>
|
---|
23 |
|
---|
24 | <para>Now create the mount point and mount the LFS file system by running:</para>
|
---|
25 |
|
---|
26 | <screen><userinput>mkdir -p $LFS
|
---|
27 | mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen>
|
---|
28 |
|
---|
29 | <para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS
|
---|
30 | partition.</para>
|
---|
31 |
|
---|
32 | <para>If you have decided to use multiple partitions for LFS (say one for
|
---|
33 | <filename class="directory">/</filename> and another for
|
---|
34 | <filename class="directory">/usr</filename>), mount them like this:</para>
|
---|
35 |
|
---|
36 | <screen><userinput>mkdir -p $LFS
|
---|
37 | mount /dev/<replaceable>[xxx]</replaceable> $LFS
|
---|
38 | mkdir $LFS/usr
|
---|
39 | mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen>
|
---|
40 |
|
---|
41 | <para>Of course, replace <replaceable>[xxx]</replaceable> and
|
---|
42 | <replaceable>[yyy]</replaceable> with the appropriate partition names.</para>
|
---|
43 |
|
---|
44 | <para>You should also ensure that this new partition is not mounted with
|
---|
45 | permissions that are too restrictive (such as the nosuid, nodev or noatime
|
---|
46 | options). You can run the <command>mount</command> command without any
|
---|
47 | parameters to see with what options the LFS partition is mounted. If
|
---|
48 | you see nosuid, nodev or noatime, you will need to remount it.</para>
|
---|
49 |
|
---|
50 | <para>Now that we've made ourselves a place to work in, we're ready to download
|
---|
51 | the packages.</para>
|
---|
52 | -->
|
---|
53 |
|
---|
54 | </sect1>
|
---|