aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/kernfs.xml
blob: a82a03b96dbdb320444ab2e6e491f1ffa7411029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<sect1 id="ch-system-kernfs">
<title>Mounting Virtual Kernel File Systems</title>
<?dbhtml filename="kernfs.html"?>

<para>Create the dirs:</para>

<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>

<para>Do some <quote>fake mounts</quote>:</para>

<screen><userinput>mount -f -t ramfs ramfs $LFS/dev
mount -f -t tmpfs tmpfs $LFS/dev/shm
mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts</userinput></screen>

</sect1>