From 07198664797d893d02a96c846ff1603df1e51bb7 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sat, 19 Jun 2004 17:46:53 +0000 Subject: Tags corrections. Finished my firt full review of the XML code and updated prologue/typography.xml acordongly. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3815 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter08/fstab.xml | 25 +++++++++++++------------ chapter08/grub.xml | 32 ++++++++++++++++---------------- chapter08/introduction.xml | 2 +- chapter08/kernel.xml | 12 ++++++------ prologue/typography.xml | 13 +++++-------- 5 files changed, 41 insertions(+), 43 deletions(-) diff --git a/chapter08/fstab.xml b/chapter08/fstab.xml index 5b706eee4..ef811fada 100644 --- a/chapter08/fstab.xml +++ b/chapter08/fstab.xml @@ -14,35 +14,36 @@ determine where file systems are to be mounted by default, which must be checked and in which order. Create a new file systems table like this: -cat > /etc/fstab << "EOF" +cat > /etc/fstab << "EOF" # Begin /etc/fstab # file system mount-point fs-type options dump fsck-order -/dev/xxx / fff defaults 1 1 -/dev/yyy swap swap pri=1 0 0 +/dev/[xxx] / [fff] defaults 1 1 +/dev/[yyy] swap swap pri=1 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0 shm /dev/shm tmpfs defaults 0 0 # End /etc/fstab -EOF +EOF -Of course, replace xxx, yyy -and fff with the values appropriate for your system -- -for example hda2, hda5 and -reiserfs. For all the details on the six fields in this +Of course, replace [xxx], [yyy] +and [fff] with the values appropriate for your system -- +for example hda2, hda5 and +reiserfs. For all the details on the six fields in this table, see man 5 fstab. -When using a reiserfs partition, the 1 1 at the -end of the line should be replaced with 0 0, as such a +When using a reiserfs partition, the 1 1 at the +end of the line should be replaced with 0 0, as such a partition does not need to be dumped or checked -The /dev/shm mount point for tmpfs is included to +The /dev/shm mount point for +tmpfs is included to allow enabling POSIX shared memory. Your kernel must have the required support built into it for this to work -- more about this in the next section. Please note that currently very little software actually uses POSIX shared memory. -Therefore you can consider the /dev/shm mount point +Therefore you can consider the /dev/shm mount point optional. For more information, see Documentation/filesystems/tmpfs.txt in the kernel source tree. diff --git a/chapter08/grub.xml b/chapter08/grub.xml index c8ab79d53..3b67e2896 100644 --- a/chapter08/grub.xml +++ b/chapter08/grub.xml @@ -34,23 +34,23 @@ Insert a blank floppy diskette and run the following commands: dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1 Remove the diskette and store it somewhere safe. Now we'll run the -grub shell: +grub shell: grub Grub uses its own naming structure for drives and partitions, in the form of (hdn,m), where n is the hard drive number, and m the partition number, both starting from zero. This -means, for instance, that partition hda1 is (hd0,0) to -Grub, and hdb2 is (hd1,1). In contrast to Linux, Grub +means, for instance, that partition hda1 is (hd0,0) to +Grub, and hdb2 is (hd1,1). In contrast to Linux, Grub doesn't consider CD-ROM drives to be hard drives, so if you have a CD on -hdb, for example, and a second hard drive on -hdc, that second hard drive would still be (hd1). +hdb, for example, and a second hard drive on +hdc, that second hard drive would still be (hd1). Using the above information, determine the appropriate designator for your root partition (or boot partition, if you use a separate one). For the following example, we'll assume your root (or separate boot) partition is -hda4. +hda4. First, tell Grub where to search for its stage{1,2} files -- you can use the Tab key everywhere to make Grub show the alternatives: @@ -67,19 +67,19 @@ would become: setup (hd0,3). Tell Grub to install itself into the MBR (Master Boot Record) of -hda: +hda: setup (hd0) If all is well, Grub will have reported finding its files in -/boot/grub. That's all there is to it: +/boot/grub. That's all there is to it: quit Now we need to create a menu list file, defining Grub's boot menu: -cat > /boot/grub/menu.lst << "EOF" +cat > /boot/grub/menu.lst << "EOF" # Begin /boot/grub/menu.lst # By default boot the first menu entry. @@ -95,33 +95,33 @@ color green/black light-green/black title LFS &version; root (hd0,3) kernel /boot/lfskernel-&linux-version; root=/dev/hda4 -EOF +EOF -By default, Grub will automatically pass a mem=xxx +By default, Grub will automatically pass a mem=xxx command line argument to the kernel. However, Grub occasionally gets the amount of memory wrong which can lead to problems in some circumstances. It's best to disable this functionality and let the kernel determine the amount of memory -itself, hence the use of the --no-mem-option above. +itself, hence the use of the --no-mem-option above. You may want to add an entry for your host distribution. It might look like this: -cat >> /boot/grub/menu.lst << "EOF" +cat >> /boot/grub/menu.lst << "EOF" title Red Hat root (hd0,2) kernel /boot/kernel-2.4.20 root=/dev/hda3 initrd /boot/initrd-2.4.20 -EOF +EOF Also, if you happen to dual-boot Windows, the following entry should allow booting it: -cat >> /boot/grub/menu.lst << "EOF" +cat >> /boot/grub/menu.lst << "EOF" title Windows rootnoverify (hd0,0) chainloader +1 -EOF +EOF If info grub doesn't tell you all you want to know, you can find more information regarding Grub on its website, located at: diff --git a/chapter08/introduction.xml b/chapter08/introduction.xml index 6d8723909..a879c4a24 100644 --- a/chapter08/introduction.xml +++ b/chapter08/introduction.xml @@ -8,7 +8,7 @@ This chapter will make LFS bootable. This chapter deals with creating a -fstab file, building a +fstab file, building a kernel for the new LFS system and installing the Grub bootloader so that the LFS system can be selected for booting at startup. diff --git a/chapter08/kernel.xml b/chapter08/kernel.xml index ec83aa0d8..27e58abff 100644 --- a/chapter08/kernel.xml +++ b/chapter08/kernel.xml @@ -52,7 +52,7 @@ to userspace until userspace specifies that it is ready: make menuconfig -make oldconfig may be more appropriate in some +make oldconfig may be more appropriate in some situations. See the README file for more information. @@ -69,8 +69,8 @@ scratch. the File systems menu and is normally enabled by default. LFS bootscripts make the assumption that you either compile -both "Support for Host-side USB" and -"USB device filesystem" directly into the kernel, or don't compile them at +both Support for Host-side USB and +USB device filesystem directly into the kernel, or don't compile them at all. Bootscripts will not work properly if it is a module (usbcore.ko). NPTL requires the kernel to be compiled with GCC 3.x, in this case @@ -120,7 +120,7 @@ isn't worth the trouble, but if you're really pressed for space, then have a loo . Kernel compilation has finished but more steps are required to complete -the installation. Some files need to be copied to the /boot +the installation. Some files need to be copied to the /boot directory. The path to the kernel image may vary depending on the platform you're @@ -154,7 +154,7 @@ person would have write access to the kernel source. If you are going to keep the kernel source tree around, you may want to run chown -R 0:0 on the -linux-&linux-version; directory to ensure all files are +linux-&linux-version; directory to ensure all files are owned by user root. @@ -189,7 +189,7 @@ of running scores of programs seemingly at the same time. kernel headers define the interface to the services that the kernel provides. The headers in your system's -include directory should always be +include directory should always be the ones against which Glibc was compiled and should therefore not be replaced when upgrading the kernel. diff --git a/prologue/typography.xml b/prologue/typography.xml index 3a54e8b0c..2a5b638d8 100644 --- a/prologue/typography.xml +++ b/prologue/typography.xml @@ -17,8 +17,7 @@ as seen unless otherwise noted in the surrounding text. It is also used in the explanation sections to identify which of the commands is being referenced. -install-info: unknown option -`--dir-file=/mnt/lfs/usr/info/dir' +install-info: unknown option `--dir-file=/mnt/lfs/usr/info/dir'
This form of text (fixed width text) is showing screen output, probably as the result of commands issued, and is also used to @@ -27,8 +26,7 @@ show filenames, such as /etc/ld.so.conf.
Emphasis
This form of text is used for several purposes in the -book, mainly to emphasize important points, and to give examples of -what to type.
+book, mainly to emphasize important points or items. @@ -36,16 +34,15 @@ what to type. book and to external pages such as HOWTOs, download locations and websites. -cat > $LFS/etc/group << "EOF" +cat > $LFS/etc/group << "EOF" root:x:0: bin:x:1: ...... -EOF - +EOF
This type of section is used mainly when creating configuration files. The first command tells the system to create -the file $LFS/etc/group from whatever is typed on the following lines until +the file $LFS/etc/group from whatever is typed on the following lines until the sequence EOF is encountered. Therefore, this whole section is generally typed as seen.
-- cgit v1.2.3-54-g00ecf