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 you mount it under /mnt/lfs, you can access this partition
  7. by going to the /mnt/lfs directory and then do whatever you need to do. This
  8. book will assume that you have mounted the partition on a subdirectory
  9. under /mnt. It doesn't matter which directory you choose, just make sure
  10. you remember what you chose.
  11. </para>
  12. <para>
  13. Create the /mnt/lfs directory by runnning:
  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 your partition's designation.
  26. </para>
  27. <para>
  28. This directory (/mnt/lfs) is the $LFS variable you have read about earlier.
  29. So if you read somewhere to "cp inittab $LFS/etc" you actually will type
  30. <quote>cp inittab /mnt/lfs/etc</quote>. Or if you want to use the $LFS
  31. environment variable, execute <userinput>export LFS=/mnt/lfs</userinput>
  32. now.
  33. </para>
  34. </sect1>