From 5c0b6e70bdc05dc9ebc73711bef2df033e1c8c2d Mon Sep 17 00:00:00 2001 From: Jeremy Utley Date: Fri, 5 Sep 2003 02:06:21 +0000 Subject: Added mounting the devpts filesystem into the new LFS partition git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2735 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/mountproc.xml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) (limited to 'chapter06/mountproc.xml') diff --git a/chapter06/mountproc.xml b/chapter06/mountproc.xml index e959d151e..66446e4a0 100644 --- a/chapter06/mountproc.xml +++ b/chapter06/mountproc.xml @@ -1,13 +1,13 @@ -Mounting the proc file system +Mounting the proc and devpts file systems -In order for certain programs to function properly, the proc file -system must be available within the chroot environment. +In order for certain programs to function properly, the proc and devpts +file systems must be available within the chroot environment. As a file system can be mounted as many times and in as many places -as you like, it's not a problem that the proc file system is already -mounted on your host system -- especially so because proc is a -virtual file system. +as you like, it's not a problem that the these file systems are already +mounted on your host system -- especially so because they are virtual +file systems. The proc file system is mounted under /proc by running the @@ -15,6 +15,25 @@ following command: mount proc /proc -t proc +The devpts file system is mounted to /dev/pts + by running: + +mount devpts /dev/pts -t devpts + + +Should this command fail with an error to the effect of: + +
filesystem devpts not supported by kernel
+ +It means that your host system does not support devpts. You have two +options at this point. You can either not worry about it, in which case some +of the tests we will run later will fail, or you can use the following command +from a terminal not in chroot to put your host's pts system into your new +LFS's filesystem: + +mount --bind /dev/pts $LFS/dev/pts + + You might get warning messages from the mount command, such as these: @@ -30,7 +49,7 @@ on your system configuration (such as the host system's Glibc version that was used to compile the mount program with). Remember, if for any reason you stop working on your LFS, and -start again later, it's important to check that the proc filesystem is still +start again later, it's important to check that these filesystems are still mounted inside the chroot enviornment. Otherwise, some programs might end up compiled incorrectly. -- cgit v1.2.3-54-g00ecf