source: BOOK/chroot/common/kernfs.xml @ 13bd751

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 13bd751 was 13bd751, checked in by Jim Gifford <clfs@…>, 18 years ago

r3574@server (orig r1630): chris | 2006-05-19 21:38:38 -0700
Clarified the note about becoming root in the chroot section by replacing it with an xinclude to the boot section

  • Property mode set to 100644
File size: 1.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4  <!ENTITY % general-entities SYSTEM "../../general.ent">
5  %general-entities;
6]>
7
8<sect1 id="ch-chroot-kernfs">
9  <?dbhtml filename="kernfs.html"?>
10
11  <title>Mounting Virtual Kernel File Systems</title>
12
13    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
14    href="../../boot/common/devices.xml"
15    xpointer="xpointer(//*[@os='a'])"/>
16
17  <para>Various file systems exported by the kernel are used to communicate
18  to and from the kernel itself. These file systems are virtual in that no
19  disk space is used for them. The content of the file systems resides in
20  memory.</para>
21
22  <para>Begin by creating directories onto which the file systems will
23  be mounted:</para>
24
25<screen><userinput>mkdir -pv $LFS/{proc,sys}</userinput></screen>
26
27  <para>Now mount the file systems:</para>
28
29<screen><userinput>mount -vt proc proc $LFS/proc
30mount -vt sysfs sysfs $LFS/sys</userinput></screen>
31
32  <para>Remember that if for any reason you stop working on the LFS system
33  and start again later, it is important to check that these file systems
34  are mounted again before entering the chroot environment.</para>
35
36  <para>Additional file systems will soon be mounted from within the
37  chroot environment. To keep the host up to date, perform a <quote>fake
38  mount</quote> for each of these now:</para>
39
40<screen><userinput>mount -f -vt tmpfs tmpfs $LFS/dev
41mount -f -vt tmpfs tmpfs $LFS/dev/shm
42mount -f -vt devpts -o gid=10,mode=620 devpts $LFS/dev/pts</userinput></screen>
43
44</sect1>
Note: See TracBrowser for help on using the repository browser.