| 12345678910111213141516171819202122232425262728293031 | <?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"?><para>Various file systems exported by the kernel don't exist at all on yourhard drive, but are used to communicate things to and from the kernel itself.</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 your LFS, and startagain later, it's important to check that these file systems are mounted againbefore entering the chroot environment, otherwise problems could occur.</para><para>Shortly, we'll be mounting a few more file systems from within the chrootenvironment. To keep the host up-to-date, we'll do a <quote>fake mount</quote>for each of these now:</para><screen><userinput>mount -f -t ramfs ramfs $LFS/devmount -f -t tmpfs tmpfs $LFS/dev/shmmount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts</userinput></screen></sect1>
 |