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>Now that we've created a file system, we want to be able to access
|
---|
11 | the partition. For that, we need to mount it, and have to choose a mount
|
---|
12 | point. In this book we assume that the file system is mounted under
|
---|
13 | <filename>/mnt/lfs</filename>, but it doesn't matter what directory
|
---|
14 | you choose.</para>
|
---|
15 |
|
---|
16 | <para>Choose a mount point and assign it to the LFS environment variable
|
---|
17 | by running:</para>
|
---|
18 |
|
---|
19 | <screen><userinput>export LFS=/mnt/lfs</userinput></screen>
|
---|
20 |
|
---|
21 | <para>Now create the mount point and mount the LFS file system by running:</para>
|
---|
22 |
|
---|
23 | <screen><userinput>mkdir -p $LFS
|
---|
24 | mount /dev/xxx $LFS</userinput></screen>
|
---|
25 |
|
---|
26 | <para>Replace <filename>xxx</filename> with the designation of the LFS
|
---|
27 | partition.</para>
|
---|
28 |
|
---|
29 | <para>If you have decided to use multiple partitions for LFS (say one for
|
---|
30 | <filename>/</filename> and another for <filename>/usr</filename>), mount
|
---|
31 | them like this:</para>
|
---|
32 |
|
---|
33 | <screen><userinput>mkdir -p $LFS
|
---|
34 | mount /dev/xxx $LFS
|
---|
35 | mkdir $LFS/usr
|
---|
36 | mount /dev/yyy $LFS/usr</userinput></screen>
|
---|
37 |
|
---|
38 | <para>Of course, replace <filename>xxx</filename> and <filename>yyy</filename>
|
---|
39 | with the appropriate partition names.</para>
|
---|
40 |
|
---|
41 | <para>You should also ensure that this new partition is not mounted with
|
---|
42 | permissions that are too restrictive (such as the nosuid, nodev or noatime
|
---|
43 | options). You can run the <command>mount</command> command without any
|
---|
44 | parameters to see with what options the LFS partition is mounted. If
|
---|
45 | you see nosuid, nodev or noatime, you will need to remount it.</para>
|
---|
46 |
|
---|
47 | <para>Now that we've made ourselves a place to work in, we're ready to download
|
---|
48 | the packages.</para>
|
---|
49 |
|
---|
50 | </sect1>
|
---|