aboutsummaryrefslogtreecommitdiffstats
path: root/chapter03/mounting.xml
blob: 343542301abcb723e1393daeacf3abac97ecaea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<sect1 id="ch04-mounting">
<title>Mounting the new partition</title>
<?dbhtml filename="mounting.html" dir="chapter04"?>

<para>Now that we've created a file system, we want to be able to access
the partition. For that, we need to mount it, and have to choose a mount
point. In this book we assume that the file system is mounted under
<filename>/mnt/lfs</filename>, but it doesn't matter what directory
you choose.</para>

<para>Choose a mount point and assign it to the LFS environment variable
by running:</para>

<para><screen><userinput>export LFS=/mnt/lfs</userinput></screen></para>

<para>Now create the mount point and mount the LFS file system by running:</para>

<para><screen><userinput>mkdir -p $LFS &&
mount /dev/xxx $LFS</userinput></screen></para>

<para>Replace <filename>xxx</filename> with the designation of the LFS
partition.</para>

<para>If you have decided to use multiple partitions for LFS (say one for
<filename>/</filename> and another for <filename>/usr</filename>), mount
them like this:</para>

<para><screen><userinput>mkdir -p $LFS &amp;&amp;
mount /dev/xxx $LFS &amp;&amp;
mkdir $LFS/usr &amp;&amp;
mount /dev/yyy $LFS/usr</userinput></screen></para>

<para>Of course, replace <filename>xxx</filename> and <filename>yyy</filename>
with the appropriate partition names.</para>

<para>Now that we've made ourselves a place to work in, we're ready to begin
assembling the temporary tools in the next chapter.</para>

</sect1>