From 987aa009028dc0e036b3f40b70452f2fa9161a0c Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Thu, 16 Aug 2001 22:26:29 +0000 Subject: [PATCH] Bug 78: MAKEDEV-1.2 git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@985 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 2 +- chapter06/makedev-exp.xml | 4 +++- chapter06/makedev-inst.xml | 20 +++++++++++++++++--- chapter08/fstab.xml | 14 ++++++++++++++ index.xml | 4 ++-- 5 files changed, 37 insertions(+), 7 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 04a5260b5..4076aa5a8 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -9,7 +9,7 @@ -MAKEDEV-1-1 +MAKEDEV-1.2 autoconf-2.52 automake-1.4-p5 binutils-2.11.2 diff --git a/chapter06/makedev-exp.xml b/chapter06/makedev-exp.xml index 0a41c24bc..377fc42f9 100644 --- a/chapter06/makedev-exp.xml +++ b/chapter06/makedev-exp.xml @@ -4,7 +4,9 @@ ./MAKEDEV -v generic: This creates generic devices. Normally, these devices are all the devices you need. It's possible that you are missing some special devices that are needed for your hardware -configuration. Create them with ./MAKEDEV -v <device>. +configuration. Create them with ./MAKEDEV -v <device>. +The generic-nopty option does a similar job but skips +some devices which are not needed if you are using devpts. diff --git a/chapter06/makedev-inst.xml b/chapter06/makedev-inst.xml index 3ea236280..a7ac2616c 100644 --- a/chapter06/makedev-inst.xml +++ b/chapter06/makedev-inst.xml @@ -8,10 +8,24 @@ won't create a directory for you to cd into. cp MAKEDEV-1.1 /dev/MAKEDEV && cd /dev && -chmod 755 MAKEDEV && -./MAKEDEV -v generic +chmod 755 MAKEDEV -MAKEDEV will create hda[1-20] and hdb[1-20] and such but keep in mind +Now, depending on whether you are going to use devpts or not, you +can run one of two commands: + +If you do not intend to use devpts, run: +./MAKEDEV -v generic + +If you do intend to use devpts, then run: +./MAKEDEV -v generic-nopty + +Note that if you aren't sure, it's best to use +the ./MAKEDEV -v generic command as this will +ensure you have the devices you need. If you are sure you are going to +use devpts however, the other command makes sure that you don't create a +set of devices which you don't require. + +MAKEDEV will create hda[1-20] to hdh[1-20] and such but keep in mind that you may not be able to use all of those devices due to kernel limitations regarding the max. number of partitions. diff --git a/chapter08/fstab.xml b/chapter08/fstab.xml index 27249ff3e..90a772231 100644 --- a/chapter08/fstab.xml +++ b/chapter08/fstab.xml @@ -29,5 +29,19 @@ the end of the line should be replaced with 0 0. For more information on the various fields which are in the fstab file, see man 5 fstab. +There are other lines which you may consider adding to your fstab +file. One example is the line which you must have if you are using +devpts, note that you must also create the /dev/pts directory for this +to work: +none /dev/pts devpts gid=4,mode=620 0 0 + +Another example is a line to use if you intend to use USB +devices. This time, you don't create the directory as it's part of the +proc virtual filesystem: +none /proc/bus/usb usbdevfs defaults 0 0 + +Both of these options will only work if you have the relevant +support compiled into your kernel. + diff --git a/index.xml b/index.xml index 80b5405f3..feaabf374 100644 --- a/index.xml +++ b/index.xml @@ -517,7 +517,7 @@ - + @@ -658,7 +658,7 @@ - +