Files
lfs/chapter02/mounting.xml
2004-08-08 02:10:00 +00:00

57 lines
2.1 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;
]>
<sect1 id="space-mounting">
<title>Mounting the New Partition</title>
<?dbhtml filename="mounting.html"?>
<para>Now that a file system has been created, the partition needs to
be made accessible. In order to do this, the partition needs to be
mounted at a chosen mount point. For the purposes of this book, it is
assumed that the file system is mounted under <filename
class="directory">/mnt/lfs</filename>, but the directory choice is up
to you.</para>
<para>Choose a mount point and assign it to the LFS environment
variable by running:</para>
<screen><userinput>export LFS=/mnt/lfs</userinput></screen>
<para>Next, create the mount point and mount the LFS file system by
running:</para>
<screen><userinput>mkdir -p $LFS
mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen>
<para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS
partition.</para>
<para>If using multiple partitions for LFS (e.g., one for <filename
class="directory">/</filename> and another for <filename
class="directory">/usr</filename>), mount them using:</para>
<screen><userinput>mkdir -p $LFS
mount /dev/<replaceable>[xxx]</replaceable> $LFS
mkdir $LFS/usr
mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen>
<para>Replace <replaceable>[xxx]</replaceable> and
<replaceable>[yyy]</replaceable> with the appropriate partition
names.</para>
<para>Ensure that this new partition is not mounted with permissions
that are too restrictive (such as the nosuid, nodev, or noatime
options). Run the <command>mount</command> command without any
parameters to see with what options are set for the mounted LFS
partition. If <emphasis>nosuid</emphasis>, <emphasis>nodev</emphasis>,
and/or <emphasis>noatime</emphasis> are set, the partition will need
to be remounted.</para>
<para>Now that there is an established place to work, it's time to
download the packages.</para>
</sect1>