[673b0d8] | 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
|
---|
[55851d6] | 13 | <filename class="directory">/mnt/lfs</filename>, but it doesn't matter what directory
|
---|
[673b0d8] | 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
|
---|
[55851d6] | 24 | mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen>
|
---|
[673b0d8] | 25 |
|
---|
[55851d6] | 26 | <para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS
|
---|
[673b0d8] | 27 | partition.</para>
|
---|
| 28 |
|
---|
| 29 | <para>If you have decided to use multiple partitions for LFS (say one for
|
---|
[55851d6] | 30 | <filename class="directory">/</filename> and another for
|
---|
| 31 | <filename class="directory">/usr</filename>), mount them like this:</para>
|
---|
[673b0d8] | 32 |
|
---|
| 33 | <screen><userinput>mkdir -p $LFS
|
---|
[55851d6] | 34 | mount /dev/<replaceable>[xxx]</replaceable> $LFS
|
---|
[673b0d8] | 35 | mkdir $LFS/usr
|
---|
[55851d6] | 36 | mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen>
|
---|
[673b0d8] | 37 |
|
---|
[55851d6] | 38 | <para>Of course, replace <replaceable>[xxx]</replaceable> and
|
---|
| 39 | <replaceable>[yyy]</replaceable> with the appropriate partition names.</para>
|
---|
[673b0d8] | 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>
|
---|