| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 | <?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 accessthe partition. For that, we need to mount it, and have to choose a mountpoint. In this book we assume that the file system is mounted under<filename>/mnt/lfs</filename>, but it doesn't matter what directoryyou choose.</para><para>Choose a mount point and assign it to the LFS environment variableby 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 $LFSmount /dev/xxx $LFS</userinput></screen><para>Replace <filename>xxx</filename> with the designation of the LFSpartition.</para><para>If you have decided to use multiple partitions for LFS (say one for<filename>/</filename> and another for <filename>/usr</filename>), mountthem like this:</para><screen><userinput>mkdir -p $LFSmount /dev/xxx $LFSmkdir $LFS/usrmount /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 withpermissions that are too restrictive (such as the nosuid, nodev or noatimeoptions). You can run the <command>mount</command> command without anyparameters to see with what options the LFS partition is mounted. Ifyou 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 downloadthe packages.</para></sect1>
 |