proc.xml 985 B

1234567891011121314151617181920212223
  1. <sect1 id="ch05-proc">
  2. <title>Mounting $LFS/proc file system</title>
  3. <?dbhtml filename="proc.html" dir="chapter05"?>
  4. <para>In order for certain programs to function properly, the proc file
  5. system must be mounted and available from within the chroot'ed environment
  6. as well. It's not a problem to mount the proc file system (or any other
  7. file system for that matter) twice or even more than that.</para>
  8. <para>If you're still logged in as user "lfs", you should log out and log
  9. in again as user root. The reason for this is simple: only root is allowed
  10. to mount filesystems and to run chroot.</para>
  11. <para>The proc file system is mounted under $LFS/proc by running the
  12. following command. We'll also chown it to user root/group root while we're
  13. at it (the rest of the filesystem is chown'ed to root:root in a minute when
  14. we start with chapter 6).</para>
  15. <para><screen><userinput>chown root:root $LFS/proc &amp;&amp;
  16. mount proc $LFS/proc -t proc</userinput></screen></para>
  17. </sect1>