diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2002-10-18 17:00:20 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2002-10-18 17:00:20 +0000 |
commit | 8b5830cecaeff2cae91b3690d3b45cb4d0376979 (patch) | |
tree | 5de4e0d945a51407bf65f433461561732bc1ec69 /chapter03/mounting.xml | |
parent | b60ca14d6c885f123ac4a242529d036134737d7d (diff) |
Applied Alex patch rewriting the chapter
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2174 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter03/mounting.xml')
-rw-r--r-- | chapter03/mounting.xml | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/chapter03/mounting.xml b/chapter03/mounting.xml index 838f1567b..0a6b4d252 100644 --- a/chapter03/mounting.xml +++ b/chapter03/mounting.xml @@ -1,39 +1,40 @@ <sect1 id="ch04-mounting"> -<title>Mounting the new partition</title> +<title>Mounting the new file system</title> <?dbhtml filename="mounting.html" dir="chapter04"?> -<para>Now that we have created a file system, it is ready for use. All we have -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 -directory is chosen, just make sure you remember what you chose.</para> +<para>Now that we've created a file system, we want to be able to access it. +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>Create the /mnt/lfs directory by running:</para> +<para>Choose a mount point and assign it to the LFS environment variable +by running:</para> -<para><screen><userinput>mkdir -p /mnt/lfs</userinput></screen></para> +<para><screen><userinput>export LFS=/mnt/lfs</userinput></screen></para> -<para>Now mount the LFS partition by running:</para> +<para>Now create the mount point and mount the LFS file system by running:</para> -<para><screen><userinput>mount /dev/xxx /mnt/lfs</userinput></screen></para> +<para><screen><userinput>mkdir -p $LFS && +mount /dev/xxx $LFS</userinput></screen></para> -<para>Replace <quote>xxx</quote> by the partition's designation (like hda11).</para> +<para>Replace <filename>xxx</filename> with the designation of the LFS +partition.</para> -<para>This directory (/mnt/lfs) is the LFS variable you have read about -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> +<para>(If you decided to use multiple partitions for LFS (say one for +<filename>/</filename> and another for <filename>/usr</filename>), mount +them like this:</para> -<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 $LFS && +mount /dev/xxx $LFS && +mkdir $LFS/usr && +mount /dev/yyy $LFS/usr</userinput></screen></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 <filename>xxx</filename> and <filename>yyy</filename> +with the appropriate partition names.)</para> -<para>Of course, replace /dev/xxx and /dev/yyy with the appropriate -partition designations.</para> +<para>Now that we've made ourselves a place to work in, we're ready to begin +assembling the temporary tools in the next chapter.</para> </sect1> |