1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3CR2//EN" "http://www.docbook.org/xml/4.3CR2/docbookx.dtd">
3 <sect1 id="ch03-mounting">
4 <title>Mounting the new partition</title>
5 <?dbhtml filename="mounting.html"?>
7 <para>Now that we've created a file system, we want to be able to access
8 the partition. For that, we need to mount it, and have to choose a mount
9 point. In this book we assume that the file system is mounted under
10 <filename>/mnt/lfs</filename>, but it doesn't matter what directory
13 <para>Choose a mount point and assign it to the LFS environment variable
16 <screen><userinput>export LFS=/mnt/lfs</userinput></screen>
18 <para>Now create the mount point and mount the LFS file system by running:</para>
20 <screen><userinput>mkdir -p $LFS
21 mount /dev/xxx $LFS</userinput></screen>
23 <para>Replace <filename>xxx</filename> with the designation of the LFS
26 <para>If you have decided to use multiple partitions for LFS (say one for
27 <filename>/</filename> and another for <filename>/usr</filename>), mount
28 them like this:</para>
30 <screen><userinput>mkdir -p $LFS
33 mount /dev/yyy $LFS/usr</userinput></screen>
35 <para>Of course, replace <filename>xxx</filename> and <filename>yyy</filename>
36 with the appropriate partition names.</para>
38 <para>You should also ensure that this new partition is not mounted with
39 permissions that are too restrictive (such as the nosuid, nodev or noatime
40 options). You can run the <userinput>mount</userinput> command without any
41 parameters to see with what options the LFS partition is mounted. If
42 you see nosuid, nodev or noatime, you will need to remount it.</para>
44 <para>Now that we've made ourselves a place to work in, we're ready to download