2004-05-03 22:28:58 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
|
|
|
|
<sect1 id="ch-system-kernfs">
|
|
|
|
<title>Mounting virtual kernel file systems</title>
|
|
|
|
<?dbhtml filename="kernfs.html"?>
|
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Create the dirs:</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>
|
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Do some <quote>fake mounts</quote>:</para>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
|
|
|
<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>
|