| 12345678910111213141516171819202122232425262728293031323334353637 | <?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" [  <!ENTITY % general-entities SYSTEM "../general.ent">  %general-entities;]><sect1 id="ch-system-kernfs"><title>Mounting Virtual Kernel File Systems</title><?dbhtml filename="kernfs.html"?><para>Various file systems exported by the kernel are used to communicate to andfrom the kernel itself. These file systems are virtual in that no disk space isused for them. The content of the file systems resides in memory.</para><para>Begin by creating directories onto which the file systems will be mounted:</para><screen><userinput>mkdir -p $LFS/{proc,sys}</userinput></screen><para>Now mount the file systems:</para><screen><userinput>mount -t proc proc $LFS/procmount -t sysfs sysfs $LFS/sys</userinput></screen><para>Remember that if for any reason you stop working on the LFSsystem and start again later, it is important to check that these filesystems are mounted again before entering the chrootenvironment.</para><para>Additional file systems will soon be mounted from within thechroot environment. To keep the host up to date, perform a <quote>fakemount</quote> for each of these now:</para><screen><userinput>mount -f -t tmpfs tmpfs $LFS/devmount -f -t tmpfs tmpfs $LFS/dev/shmmount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts</userinput></screen></sect1>
 |