diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2004-05-03 10:59:46 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2004-05-03 10:59:46 +0000 |
commit | 673b0d84ba9591e07c0bdf0ee49d92eba10f502c (patch) | |
tree | 129e27a1450727b440da4378e0117a468eb9c25e /chapter02/mounting.xml | |
parent | 287ea55da70ceb1f0990554b7db921d525fef816 (diff) |
* Merged newxml into HEAD
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3435 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter02/mounting.xml')
-rw-r--r-- | chapter02/mounting.xml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/chapter02/mounting.xml b/chapter02/mounting.xml new file mode 100644 index 000000000..610ccf652 --- /dev/null +++ b/chapter02/mounting.xml @@ -0,0 +1,50 @@ +<?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 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> + +<screen><userinput>export LFS=/mnt/lfs</userinput></screen> + +<para>Now create the mount point and mount the LFS file system by running:</para> + +<screen><userinput>mkdir -p $LFS +mount /dev/xxx $LFS</userinput></screen> + +<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> + +<screen><userinput>mkdir -p $LFS +mount /dev/xxx $LFS +mkdir $LFS/usr +mount /dev/yyy $LFS/usr</userinput></screen> + +<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 is not mounted with +permissions that are too restrictive (such as the nosuid, nodev or noatime +options). You can run the <command>mount</command> command without any +parameters to see with what options the LFS partition is mounted. If +you see nosuid, nodev or noatime, you will need to remount it.</para> + +<para>Now that we've made ourselves a place to work in, we're ready to download +the packages.</para> + +</sect1> |