mounting.xml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <sect1 id="ch04-mounting">
  2. <title>Mounting the new partition</title>
  3. <para>
  4. Now that we have created a file system, it is ready for use. All we have
  5. to do to be able to access it (as in reading data from and writing data to
  6. it) is mount it. If it is mounted under /mnt/lfs, this partition can
  7. be accessed by going to the /mnt/lfs directory and then doing whatever
  8. needed to do. This book will assume that the partition was mounted
  9. under /mnt/lfs. It doesn't matter which directory is chosen, the
  10. user just has to make sure that he remembers what he chose.
  11. </para>
  12. <para>
  13. Create the /mnt/lfs directory by running:
  14. </para>
  15. <blockquote><literallayout>
  16. <userinput>mkdir -p /mnt/lfs</userinput>
  17. </literallayout></blockquote>
  18. <para>
  19. Now mount the LFS partition by running:
  20. </para>
  21. <blockquote><literallayout>
  22. <userinput>mount /dev/xxx /mnt/lfs</userinput>
  23. </literallayout></blockquote>
  24. <para>
  25. Replace <quote>xxx</quote> by the partition's designation (like hda11).
  26. </para>
  27. <para>
  28. This directory (/mnt/lfs) is the $LFS variable you have read about earlier.
  29. If you were planning to make use of the $LFS environment variable,
  30. <userinput>export LFS=/mnt/lfs</userinput> has to be executed now.
  31. </para>
  32. </sect1>