source: BOOK/chroot/common/kernfs.xml@ e85b53d

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since e85b53d was 2df5a38, checked in by Jim Gifford <clfs@…>, 19 years ago

r2391@server (orig r1193): chris | 2006-02-21 20:23:08 -0800
Updated sed instructions to install HTML docs, and added a few more -v switches

  • Property mode set to 100644
File size: 1.8 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 <para>From this point on, we will be running all commands as the
14 <systemitem class="username">root</systemitem> user. So begin by
15 exiting from the <command>su</command> as <systemitem
16 class="username">lfs</systemitem>.</para>
17
18<screen role="nodump"><userinput>exit</userinput></screen>
19
20 <para>Various file systems exported by the kernel are used to communicate
21 to and from the kernel itself. These file systems are virtual in that no
22 disk space is used for them. The content of the file systems resides in
23 memory.</para>
24
25 <para>Begin by creating directories onto which the file systems will
26 be mounted:</para>
27
28<screen><userinput>mkdir -pv $LFS/{proc,sys}</userinput></screen>
29
30 <para>Now mount the file systems:</para>
31
32<screen><userinput>mount -vt proc proc $LFS/proc
33mount -vt sysfs sysfs $LFS/sys</userinput></screen>
34
35 <para>Remember that if for any reason you stop working on the LFS system
36 and start again later, it is important to check that these file systems
37 are mounted again before entering the chroot environment.</para>
38
39 <para>Additional file systems will soon be mounted from within the
40 chroot environment. To keep the host up to date, perform a <quote>fake
41 mount</quote> for each of these now:</para>
42
43<screen><userinput>mount -f -vt tmpfs tmpfs $LFS/dev
44mount -f -vt tmpfs tmpfs $LFS/dev/shm
45mount -f -vt devpts -o gid=10,mode=620 devpts $LFS/dev/pts</userinput></screen>
46
47</sect1>
Note: See TracBrowser for help on using the repository browser.