2004-05-03 22:28:58 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-02-19 22:16:42 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2004-05-03 22:28:58 +01:00
|
|
|
<sect1 id="ch-system-kernfs">
|
2005-01-30 11:27:57 +00:00
|
|
|
<title>Mounting Virtual Kernel File Systems</title>
|
2004-05-03 22:28:58 +01:00
|
|
|
<?dbhtml filename="kernfs.html"?>
|
|
|
|
|
2005-07-02 00:36:35 +01:00
|
|
|
<para>Various file systems exported by the kernel are used to communicate to and
|
|
|
|
from the kernel itself. These file systems are virtual in that no disk space is
|
2005-07-02 00:49:23 +01:00
|
|
|
used for them. The content of the file systems resides in memory.</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<para>Begin by creating directories onto which the file systems will be mounted:</para>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
|
|
|
<screen><userinput>mkdir -p $LFS/{proc,sys}</userinput></screen>
|
|
|
|
|
|
|
|
<para>Now mount the file systems:</para>
|
|
|
|
|
|
|
|
<screen><userinput>mount -t proc proc $LFS/proc
|
|
|
|
mount -t sysfs sysfs $LFS/sys</userinput></screen>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>Remember that if for any reason you stop working on the LFS
|
|
|
|
system and start again later, it is important to check that these file
|
|
|
|
systems are mounted again before entering the chroot
|
|
|
|
environment.</para>
|
|
|
|
|
|
|
|
<para>Additional file systems will soon be mounted from within the
|
|
|
|
chroot environment. To keep the host up to date, perform a <quote>fake
|
|
|
|
mount</quote> for each of these now:</para>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2005-06-28 18:50:11 +01:00
|
|
|
<screen><userinput>mount -f -t tmpfs tmpfs $LFS/dev
|
2004-05-03 22:28:58 +01:00
|
|
|
mount -f -t tmpfs tmpfs $LFS/dev/shm
|
|
|
|
mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts</userinput></screen>
|
|
|
|
|
|
|
|
</sect1>
|
2005-02-19 22:16:42 +00:00
|
|
|
|