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>
|
2001-09-26 00:48:31 +01:00
|
|
|
<?dbhtml filename="mounting.html" dir="chapter04"?>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Now that we have created a file system, it is ready for use. All we have
|
2001-04-14 02:10:15 +01:00
|
|
|
to do to be able to access the partition (as in reading data from and writing
|
|
|
|
data to) is mount it. If it is mounted under /mnt/lfs, this partition can
|
|
|
|
be accessed by cd'ing to the /mnt/lfs directory. This book will assume
|
|
|
|
that the partition was mounted under /mnt/lfs. It doesn't matter which
|
2001-07-22 20:45:10 +01:00
|
|
|
directory is chosen, just make sure you remember what you chose.</para>
|
|
|
|
|
|
|
|
<para>Create the /mnt/lfs directory by running:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>mkdir -p /mnt/lfs</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Now mount the LFS partition by running:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>mount /dev/xxx /mnt/lfs</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Replace <quote>xxx</quote> by the partition's designation (like hda11).</para>
|
|
|
|
|
|
|
|
<para>This directory (/mnt/lfs) is the $LFS variable you have read about
|
2001-08-29 18:13:41 +01:00
|
|
|
back in chapter 2. 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
|
|
|
|
2002-04-04 00:17:34 +01:00
|
|
|
<para>If you decided to create multiple partitions for LFS (say $LFS and
|
|
|
|
$LFS/usr), mount them like this:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>mkdir -p /mnt/lfs &&
|
|
|
|
mount /dev/xxx /mnt/lfs &&
|
|
|
|
mkdir /mnt/lfs/usr &&
|
|
|
|
mount /dev/yyy /mnt/lfs/usr</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Of course, replace /dev/xxx and /dev/yyy with the appropriate
|
|
|
|
partition designations.</para>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect1>
|
|
|
|
|