mounting.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="space-mounting">
  7. <title>Mounting the New Partition</title>
  8. <?dbhtml filename="mounting.html"?>
  9. <para>Now that a file system has been created, the partition needs to
  10. be made accessible. In order to do this, the partition needs to be
  11. mounted at a chosen mount point. For the purposes of this book, it is
  12. assumed that the file system is mounted under <filename
  13. class="directory">/mnt/lfs</filename>, but the directory choice is up
  14. to you.</para>
  15. <para>Choose a mount point and assign it to the <envar>LFS</envar>
  16. environment variable by running:</para>
  17. <screen><userinput>export LFS=/mnt/lfs</userinput></screen>
  18. <para>Next, create the mount point and mount the LFS file system by
  19. running:</para>
  20. <screen><userinput>mkdir -p $LFS
  21. mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen>
  22. <para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS
  23. partition.</para>
  24. <para>If using multiple partitions for LFS (e.g., one for <filename
  25. class="directory">/</filename> and another for <filename
  26. class="directory">/usr</filename>), mount them using:</para>
  27. <screen><userinput>mkdir -p $LFS
  28. mount /dev/<replaceable>[xxx]</replaceable> $LFS
  29. mkdir $LFS/usr
  30. mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen>
  31. <para>Replace <replaceable>[xxx]</replaceable> and
  32. <replaceable>[yyy]</replaceable> with the appropriate partition
  33. names.</para>
  34. <para>Ensure that this new partition is not mounted with permissions
  35. that are too restrictive (such as the nosuid, nodev, or noatime
  36. options). Run the <command>mount</command> command without any
  37. parameters to see what options are set for the mounted LFS
  38. partition. If <parameter>nosuid</parameter>, <parameter>nodev</parameter>,
  39. and/or <parameter>noatime</parameter> are set, the partition will need
  40. to be remounted.</para>
  41. <para>Now that there is an established place to work, it is time to
  42. download the packages.</para>
  43. </sect1>