mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 21:49:13 +00:00
69a7180b3a
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2680 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
47 lines
1.7 KiB
XML
47 lines
1.7 KiB
XML
<sect1 id="ch03-mounting">
|
|
<title>Mounting the new partition</title>
|
|
<?dbhtml filename="mounting.html" dir="chapter03"?>
|
|
|
|
<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
|
|
mount /dev/xxx $LFS
|
|
mkdir $LFS/usr
|
|
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>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>
|
|
|
|
<para>Now that we've made ourselves a place to work in, we're ready to download
|
|
the packages.</para>
|
|
|
|
</sect1>
|
|
|