From 73aedd1d35747ff2fad4ddf514dca810721a612a Mon Sep 17 00:00:00 2001 From: Alex Gronenwoud Date: Sat, 1 Nov 2003 22:31:50 +0000 Subject: Merging caption and installation sections for all packages in chapters 5 and 6. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3052 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/makedev.xml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) (limited to 'chapter06/makedev.xml') diff --git a/chapter06/makedev.xml b/chapter06/makedev.xml index e7005e574..acb766683 100644 --- a/chapter06/makedev.xml +++ b/chapter06/makedev.xml @@ -7,7 +7,65 @@ Estimated required disk space: &makedev-compsize; &aa-makedev-shortdesc; &aa-makedev-dep; -&c6-makedev-inst; + +   + + +Creating devices + +Note that unpacking the MAKEDEV-&makedev-version;.bz2 +file doesn't create a directory for you to cd into, as +the file contains only a shell script. + +Install the MAKEDEV script: + +bzcat MAKEDEV-&makedev-version;.bz2 > /dev/MAKEDEV +chmod 754 /dev/MAKEDEV + +Run the script to create the device files: + +cd /dev +./MAKEDEV -v generic-nopty + +The meaning of the arguments: + + +-v: This tells the script to run in +verbose mode. + +generic-nopty: This instructs +MAKEDEV to create a generic selection of commonly used +device special files, except for the ptyXX and ttyXX range of files. We don't +need those files because we are going to use Unix98 PTYs via the +devpts file system. + + +If it turns out that some special device zzz that +you need is missing, try running ./MAKEDEV -v zzz. +Alternatively, you may create devices via the mknod +program. Please refer to its man and info pages if you need more +information. + +Additionally, if you were unable to mount the devpts filesystem earlier in +the "Mounting the proc and devpts file systems" section, now is the time to +try the alternatives. If your kernel supports the devfs file system, run the +following command to mount devfs: + +mount -t devfs devfs /dev + +This will mount the devfs file system over the top of the new static +/dev structure. This poses no problems, as the device nodes +created are still present, they are just hidden by the new devfs +filesystem. + +If this still doesn't work, the only option left is to use the MAKEDEV +script to create the ptyXX and ttyXX range of files that would otherwise not be +needed. Ensure you are still in the /dev directory then run +./MAKEDEV -v pty. The downside of this is, we are +creating an extra 512 device special files which will not be needed when we +finally boot into the finished LFS system. + + -- cgit v1.2.3-54-g00ecf