mounting.xml 1.3 KB

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