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