[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[522b09f] | 2 | <!DOCTYPE section [
|
---|
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[522b09f] | 6 | <section xmlns="http://docbook.org/docbook-ng"
|
---|
| 7 | xml:id="space-mounting">
|
---|
| 8 | <info><title>Mounting the new partition</title></info>
|
---|
[673b0d8] | 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
|
---|
[55851d6] | 14 | <filename class="directory">/mnt/lfs</filename>, but it doesn't matter what directory
|
---|
[673b0d8] | 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
|
---|
[55851d6] | 25 | mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen>
|
---|
[673b0d8] | 26 |
|
---|
[55851d6] | 27 | <para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS
|
---|
[673b0d8] | 28 | partition.</para>
|
---|
| 29 |
|
---|
| 30 | <para>If you have decided to use multiple partitions for LFS (say one for
|
---|
[55851d6] | 31 | <filename class="directory">/</filename> and another for
|
---|
| 32 | <filename class="directory">/usr</filename>), mount them like this:</para>
|
---|
[673b0d8] | 33 |
|
---|
| 34 | <screen><userinput>mkdir -p $LFS
|
---|
[55851d6] | 35 | mount /dev/<replaceable>[xxx]</replaceable> $LFS
|
---|
[673b0d8] | 36 | mkdir $LFS/usr
|
---|
[55851d6] | 37 | mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen>
|
---|
[673b0d8] | 38 |
|
---|
[55851d6] | 39 | <para>Of course, replace <replaceable>[xxx]</replaceable> and
|
---|
| 40 | <replaceable>[yyy]</replaceable> with the appropriate partition names.</para>
|
---|
[673b0d8] | 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 |
|
---|
[522b09f] | 51 | </section>
|
---|