source: chapter06/kernfs.xml@ a8f36125

Last change on this file since a8f36125 was a8f36125, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • (all) Removed all references to the DocBook DTD
  • (docbook.rng) Added the DocBook "Gin" schema
  • (Makefile) Updated with new validation command
  • (prologue/*) Validation fixes

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4329 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 [
3]>
4<sect1 id="ch-system-kernfs">
5<title>Mounting virtual kernel file systems</title>
6<?dbhtml filename="kernfs.html"?>
7
8<para>Various file systems exported by the kernel don't exist at all on your
9hard drive, but are used to communicate things to and from the kernel itself.</para>
10
11<para>Begin by creating directories onto which the file systems will be mounted:</para>
12
13<screen><userinput>mkdir -p $LFS/{proc,sys}</userinput></screen>
14
15<para>Now mount the file systems:</para>
16
17<screen><userinput>mount -t proc proc $LFS/proc
18mount -t sysfs sysfs $LFS/sys</userinput></screen>
19
20<para>Remember that if for any reason you stop working on your LFS, and start
21again later, it's important to check that these file systems are mounted again
22before entering the chroot environment, otherwise problems could occur.</para>
23
24<para>Shortly, we'll be mounting a few more file systems from within the chroot
25environment. To keep the host up-to-date, we'll do a <quote>fake mount</quote>
26for each of these now:</para>
27
28<screen><userinput>mount -f -t ramfs ramfs $LFS/dev
29mount -f -t tmpfs tmpfs $LFS/dev/shm
30mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts</userinput></screen>
31
32</sect1>
Note: See TracBrowser for help on using the repository browser.