2001-03-23 03:13:31 +00:00
|
|
|
<sect1 id="ch04-mounting">
|
2001-01-24 00:31:17 +00:00
|
|
|
<title>Mounting the new partition</title>
|
|
|
|
|
|
|
|
<para>
|
2001-03-23 03:13:31 +00:00
|
|
|
Now that we have created a file system, it is ready for use. All we have
|
|
|
|
to do to be able to access it (as in reading data from and writing data to
|
|
|
|
it) is mounting it. If it is mounted under /mnt/lfs, this partition can
|
|
|
|
be accessed by going to the /mnt/lfs directory and then doing whatever
|
|
|
|
needed to do. This book will assume that the partition was mounted
|
|
|
|
under /mnt/lfs. It doesn't matter which directory is chosen, the
|
|
|
|
user just has to make sure that he remembers what he chose.
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Create the /mnt/lfs directory by runnning:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<blockquote><literallayout>
|
|
|
|
|
|
|
|
<userinput>mkdir -p /mnt/lfs</userinput>
|
|
|
|
|
|
|
|
</literallayout></blockquote>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now mount the LFS partition by running:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<blockquote><literallayout>
|
|
|
|
|
|
|
|
<userinput>mount /dev/xxx /mnt/lfs</userinput>
|
|
|
|
|
|
|
|
</literallayout></blockquote>
|
|
|
|
|
|
|
|
<para>
|
2001-03-23 03:13:31 +00:00
|
|
|
Replace <quote>xxx</quote> by the partition's designation (like hda11).
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2001-03-23 03:13:31 +00:00
|
|
|
This directory (/mnt/lfs) is the $LFS variable you have read about earlier.
|
|
|
|
If you were planning to make use of the $LFS environment variable,
|
|
|
|
<userinput>export LFS=/mnt/lfs</userinput> has to be executed now.
|
|
|
|
</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|