diff options
author | Zack Winkles <winkie@linuxfromscratch.org> | 2004-05-03 21:28:58 +0000 |
---|---|---|
committer | Zack Winkles <winkie@linuxfromscratch.org> | 2004-05-03 21:28:58 +0000 |
commit | 9dfc02ff38f26117daffe7d8b822ebb64a3fed04 (patch) | |
tree | c3ea0521973ac75238f6ab5f674d5b4fc4032df8 /chapter06/kernfs.xml | |
parent | 411ceb86b8150183a447f89b4789395bf16fddf0 (diff) |
Current BE-LFS (but w/ GCC 3.3.3) merged -> 6.0 branch
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3445 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/kernfs.xml')
-rw-r--r-- | chapter06/kernfs.xml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/chapter06/kernfs.xml b/chapter06/kernfs.xml new file mode 100644 index 000000000..9b3473303 --- /dev/null +++ b/chapter06/kernfs.xml @@ -0,0 +1,31 @@ +<?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 your +hard 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/proc +mount -t sysfs sysfs $LFS/sys</userinput></screen> + +<para>Remember that if for any reason you stop working on your BE-LFS, and start +again later, it's important to check that these file systems are mounted again +before entering the chroot environment, otherwise problems could occur.</para> + +<para>Shortly, we'll be mounting a few more file systems from within the chroot +environment. 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/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> |