2002-12-11 02:00:18 +00:00
|
|
|
<sect1 id="ch03-mounting">
|
2002-10-18 18:30:01 +01:00
|
|
|
<title>Mounting the new partition</title>
|
2002-12-11 02:00:18 +00:00
|
|
|
<?dbhtml filename="mounting.html" dir="chapter03"?>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-10-18 18:31:36 +01:00
|
|
|
<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
|
2002-10-18 18:00:20 +01:00
|
|
|
<filename>/mnt/lfs</filename>, but it doesn't matter what directory
|
|
|
|
you choose.</para>
|
2001-07-22 20:45:10 +01:00
|
|
|
|
2002-10-18 18:00:20 +01:00
|
|
|
<para>Choose a mount point and assign it to the LFS environment variable
|
|
|
|
by running:</para>
|
2001-07-22 20:45:10 +01:00
|
|
|
|
2002-10-18 18:00:20 +01:00
|
|
|
<para><screen><userinput>export LFS=/mnt/lfs</userinput></screen></para>
|
2001-07-22 20:45:10 +01:00
|
|
|
|
2002-10-18 18:00:20 +01:00
|
|
|
<para>Now create the mount point and mount the LFS file system by running:</para>
|
2001-07-22 20:45:10 +01:00
|
|
|
|
2003-05-13 08:38:47 +01:00
|
|
|
<para><screen><userinput>mkdir -p $LFS
|
2002-10-18 18:00:20 +01:00
|
|
|
mount /dev/xxx $LFS</userinput></screen></para>
|
2001-07-22 20:45:10 +01:00
|
|
|
|
2002-10-18 18:00:20 +01:00
|
|
|
<para>Replace <filename>xxx</filename> with the designation of the LFS
|
|
|
|
partition.</para>
|
2001-07-22 20:45:10 +01:00
|
|
|
|
2002-10-18 18:32:29 +01:00
|
|
|
<para>If you have decided to use multiple partitions for LFS (say one for
|
2002-10-18 18:00:20 +01:00
|
|
|
<filename>/</filename> and another for <filename>/usr</filename>), mount
|
|
|
|
them like this:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-05-13 08:38:47 +01:00
|
|
|
<para><screen><userinput>mkdir -p $LFS
|
|
|
|
mount /dev/xxx $LFS
|
|
|
|
mkdir $LFS/usr
|
2002-10-18 18:00:20 +01:00
|
|
|
mount /dev/yyy $LFS/usr</userinput></screen></para>
|
2002-04-04 00:17:34 +01:00
|
|
|
|
2002-10-18 18:00:20 +01:00
|
|
|
<para>Of course, replace <filename>xxx</filename> and <filename>yyy</filename>
|
2002-10-18 18:32:29 +01:00
|
|
|
with the appropriate partition names.</para>
|
2002-04-04 00:17:34 +01:00
|
|
|
|
2003-08-26 21:57:05 +01:00
|
|
|
<para>You should also ensure that this new partition doesn't mount with
|
|
|
|
permissions which are too restrictive (such as the nosuid or nodev options).
|
|
|
|
You can run the mount command with no parameters to see what options are in use.
|
|
|
|
If you see nosuid or nodev on the LFS partition, you need to change your mount
|
|
|
|
options.</para>
|
|
|
|
|
2002-12-15 23:06:30 +00:00
|
|
|
<para>Now that we've made ourselves a place to work in, we're ready to download
|
|
|
|
the packages.</para>
|
2002-04-04 00:17:34 +01:00
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect1>
|
|
|
|
|