mounting.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/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 we've created a file system, we want to be able to access
  10. the partition. For that, we need to mount it, and have to choose a mount
  11. point. In this book we assume that the file system is mounted under
  12. <filename class="directory">/mnt/lfs</filename>, but it doesn't matter what directory
  13. you choose.</para>
  14. <para>Choose a mount point and assign it to the LFS environment variable
  15. by running:</para>
  16. <screen><userinput>export LFS=/mnt/lfs</userinput></screen>
  17. <para>Now create the mount point and mount the LFS file system by running:</para>
  18. <screen><userinput>mkdir -p $LFS
  19. mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen>
  20. <para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS
  21. partition.</para>
  22. <para>If you have decided to use multiple partitions for LFS (say one for
  23. <filename class="directory">/</filename> and another for
  24. <filename class="directory">/usr</filename>), mount them like this:</para>
  25. <screen><userinput>mkdir -p $LFS
  26. mount /dev/<replaceable>[xxx]</replaceable> $LFS
  27. mkdir $LFS/usr
  28. mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen>
  29. <para>Of course, replace <replaceable>[xxx]</replaceable> and
  30. <replaceable>[yyy]</replaceable> with the appropriate partition names.</para>
  31. <para>You should also ensure that this new partition is not mounted with
  32. permissions that are too restrictive (such as the nosuid, nodev or noatime
  33. options). You can run the <command>mount</command> command without any
  34. parameters to see with what options the LFS partition is mounted. If
  35. you see nosuid, nodev or noatime, you will need to remount it.</para>
  36. <para>Now that we've made ourselves a place to work in, we're ready to download
  37. the packages.</para>
  38. </sect1>