mounting.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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>See testing</para>
  10. <!--
  11. <para>Now that we've created a file system, we want to be able to access
  12. the partition. For that, we need to mount it, and have to choose a mount
  13. point. In this book we assume that the file system is mounted under
  14. <filename class="directory">/mnt/lfs</filename>, but it doesn't matter what directory
  15. you choose.</para>
  16. <para>Choose a mount point and assign it to the LFS environment variable
  17. by running:</para>
  18. <screen><userinput>export LFS=/mnt/lfs</userinput></screen>
  19. <para>Now create the mount point and mount the LFS file system by 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 you have decided to use multiple partitions for LFS (say one for
  25. <filename class="directory">/</filename> and another for
  26. <filename class="directory">/usr</filename>), mount them like this:</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>Of course, replace <replaceable>[xxx]</replaceable> and
  32. <replaceable>[yyy]</replaceable> with the appropriate partition names.</para>
  33. <para>You should also ensure that this new partition is not mounted with
  34. permissions that are too restrictive (such as the nosuid, nodev or noatime
  35. options). You can run the <command>mount</command> command without any
  36. parameters to see with what options the LFS partition is mounted. If
  37. you see nosuid, nodev or noatime, you will need to remount it.</para>
  38. <para>Now that we've made ourselves a place to work in, we're ready to download
  39. the packages.</para>
  40. -->
  41. </sect1>