aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/proc.xml
blob: 56231f0e405e316e9f3896c0a40dbf3fce108a6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<sect1 id="ch05-proc">
<title>Mounting $LFS/proc file system</title>
<?dbhtml filename="proc.html" dir="chapter05"?>

<para>In order for certain programs to function properly, the proc file
system must be mounted and available from within the chroot'ed environment
as well. It's not a problem to mount the proc file system (or any other
file system for that matter) twice or even more than that.</para>

<para>If you're still logged in as user "lfs", you should log out and log
in again as user root. The reason for this is simple: only root is allowed
to mount filesystems and to run chroot.</para>

<para>The proc file system is mounted under $LFS/proc by running the
following command. We'll also chown it to user root/group root while we're
at it (the rest of the filesystem is chown'ed to root:root in a minute when
we start with chapter 6).</para>

<para><screen><userinput>chown root:root $LFS/proc &amp;&amp;
mount proc $LFS/proc -t proc</userinput></screen></para>

</sect1>