Changeset 0719866
- Timestamp:
- 06/19/2004 05:46:53 PM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 0816921
- Parents:
- 8250be1
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/fstab.xml
r8250be1 r0719866 15 15 this:</para> 16 16 17 <screen><userinput>cat > /etc/fstab << "EOF" </userinput>17 <screen><userinput>cat > /etc/fstab << "EOF" 18 18 # Begin /etc/fstab 19 19 20 20 # file system mount-point fs-type options dump fsck-order 21 21 22 /dev/ xxx / fffdefaults 1 123 /dev/ yyyswap swap pri=1 0 022 /dev/<replaceable>[xxx]</replaceable> / <replaceable>[fff]</replaceable> defaults 1 1 23 /dev/<replaceable>[yyy]</replaceable> swap swap pri=1 0 0 24 24 proc /proc proc defaults 0 0 25 25 sysfs /sys sysfs defaults 0 0 … … 27 27 shm /dev/shm tmpfs defaults 0 0 28 28 # End /etc/fstab 29 <userinput>EOF</userinput></screen>29 EOF</userinput></screen> 30 30 31 <para>Of course, replace < filename>xxx</filename>, <filename>yyy</filename>32 and < filename>fff</filename> with the values appropriate for your system --33 for example <filename >hda2</filename>, <filename>hda5</filename> and34 < filename>reiserfs</filename>. For all the details on the six fields in this31 <para>Of course, replace <replaceable>[xxx]</replaceable>, <replaceable>[yyy]</replaceable> 32 and <replaceable>[fff]</replaceable> with the values appropriate for your system -- 33 for example <filename class="partition">hda2</filename>, <filename class="partition">hda5</filename> and 34 <systemitem class="filesystem">reiserfs</systemitem>. For all the details on the six fields in this 35 35 table, see <command>man 5 fstab</command>.</para> 36 36 37 <para>When using a reiserfs partition, the < emphasis>1 1</emphasis> at the38 end of the line should be replaced with < emphasis>0 0</emphasis>, as such a37 <para>When using a reiserfs partition, the <parameter>1 1</parameter> at the 38 end of the line should be replaced with <parameter>0 0</parameter>, as such a 39 39 partition does not need to be dumped or checked</para> 40 40 41 <para>The <filename>/dev/shm</filename> mount point for tmpfs is included to 41 <para>The <filename class="directory">/dev/shm</filename> mount point for 42 <systemitem class="filesystem">tmpfs</systemitem> is included to 42 43 allow enabling POSIX shared memory. Your kernel must have the required support 43 44 built into it for this to work -- more about this in the next section. Please 44 45 note that currently very little software actually uses POSIX shared memory. 45 Therefore you can consider the <filename >/dev/shm</filename> mount point46 Therefore you can consider the <filename class="directory">/dev/shm</filename> mount point 46 47 optional. For more information, see 47 48 <filename>Documentation/filesystems/tmpfs.txt</filename> in the kernel source -
chapter08/grub.xml
r8250be1 r0719866 35 35 36 36 <para>Remove the diskette and store it somewhere safe. Now we'll run the 37 < userinput>grub</userinput> shell:</para>37 <command>grub</command> shell:</para> 38 38 39 39 <screen><userinput>grub</userinput></screen> … … 42 42 of (hdn,m), where <emphasis>n</emphasis> is the hard drive number, and 43 43 <emphasis>m</emphasis> the partition number, both starting from zero. This 44 means, for instance, that partition <filename >hda1</filename> is (hd0,0) to45 Grub, and <filename >hdb2</filename> is (hd1,1). In contrast to Linux, Grub44 means, for instance, that partition <filename class="partition">hda1</filename> is (hd0,0) to 45 Grub, and <filename class="partition">hdb2</filename> is (hd1,1). In contrast to Linux, Grub 46 46 doesn't consider CD-ROM drives to be hard drives, so if you have a CD on 47 <filename >hdb</filename>, for example, and a second hard drive on48 <filename >hdc</filename>, that second hard drive would still be (hd1).</para>47 <filename class="partition">hdb</filename>, for example, and a second hard drive on 48 <filename class="partition">hdc</filename>, that second hard drive would still be (hd1).</para> 49 49 50 50 <para>Using the above information, determine the appropriate designator for 51 51 your root partition (or boot partition, if you use a separate one). For the 52 52 following example, we'll assume your root (or separate boot) partition is 53 <filename >hda4</filename>.</para>53 <filename class="partition">hda4</filename>.</para> 54 54 55 55 <para>First, tell Grub where to search for its <filename>stage{1,2}</filename> … … 68 68 69 69 <para>Tell Grub to install itself into the MBR (Master Boot Record) of 70 <filename >hda</filename>:</para>70 <filename class="partition">hda</filename>:</para> 71 71 72 72 <screen><userinput>setup (hd0)</userinput></screen> 73 73 74 74 <para>If all is well, Grub will have reported finding its files in 75 <filename >/boot/grub</filename>. That's all there is to it:</para>75 <filename class="directory">/boot/grub</filename>. That's all there is to it:</para> 76 76 77 77 <screen><userinput>quit</userinput></screen> … … 80 80 boot menu:</para> 81 81 82 <screen><userinput>cat > /boot/grub/menu.lst << "EOF" </userinput>82 <screen><userinput>cat > /boot/grub/menu.lst << "EOF" 83 83 # Begin /boot/grub/menu.lst 84 84 … … 96 96 root (hd0,3) 97 97 kernel /boot/lfskernel-&linux-version; root=/dev/hda4 98 <userinput>EOF</userinput></screen>98 EOF</userinput></screen> 99 99 100 <note><para>By default, Grub will automatically pass a < quote>mem=xxx</quote>100 <note><para>By default, Grub will automatically pass a <parameter>mem=xxx</parameter> 101 101 command line argument to the kernel. However, Grub occasionally gets the amount 102 102 of memory wrong which can lead to problems in some circumstances. It's best to 103 103 disable this functionality and let the kernel determine the amount of memory 104 itself, hence the use of the < emphasis>--no-mem-option</emphasis> above.</para>104 itself, hence the use of the <parameter>--no-mem-option</parameter> above.</para> 105 105 </note> 106 106 … … 108 108 like this:</para> 109 109 110 <screen><userinput>cat >> /boot/grub/menu.lst << "EOF" </userinput>110 <screen><userinput>cat >> /boot/grub/menu.lst << "EOF" 111 111 title Red Hat 112 112 root (hd0,2) 113 113 kernel /boot/kernel-2.4.20 root=/dev/hda3 114 114 initrd /boot/initrd-2.4.20 115 <userinput>EOF</userinput></screen>115 EOF</userinput></screen> 116 116 117 117 <para>Also, if you happen to dual-boot Windows, the following entry should 118 118 allow booting it:</para> 119 119 120 <screen><userinput>cat >> /boot/grub/menu.lst << "EOF" </userinput>120 <screen><userinput>cat >> /boot/grub/menu.lst << "EOF" 121 121 title Windows 122 122 rootnoverify (hd0,0) 123 123 chainloader +1 124 <userinput>EOF</userinput></screen>124 EOF</userinput></screen> 125 125 126 126 <para>If <command>info grub</command> doesn't tell you all you want to -
chapter08/introduction.xml
r8250be1 r0719866 9 9 10 10 <para>This chapter will make LFS bootable. This chapter deals with creating a 11 fstabfile, building a11 <filename>fstab</filename> file, building a 12 12 kernel for the new LFS system and installing the Grub bootloader 13 13 so that the LFS system can be selected for booting at startup.</para> -
chapter08/kernel.xml
r8250be1 r0719866 53 53 <screen><userinput>make menuconfig</userinput></screen> 54 54 55 <para>< userinput>make oldconfig</userinput> may be more appropriate in some55 <para><command>make oldconfig</command> may be more appropriate in some 56 56 situations. See the <filename>README</filename> file for more 57 57 information.</para> … … 70 70 71 71 <para>LFS bootscripts make the assumption that you either compile 72 both "Support for Host-side USB"and73 "USB device filesystem"directly into the kernel, or don't compile them at72 both <quote>Support for Host-side USB</quote> and 73 <quote>USB device filesystem</quote> directly into the kernel, or don't compile them at 74 74 all. Bootscripts will not work properly if it is a module (usbcore.ko).</para> 75 75 … … 121 121 122 122 <para>Kernel compilation has finished but more steps are required to complete 123 the installation. Some files need to be copied to the <filename >/boot</filename>123 the installation. Some files need to be copied to the <filename class="directory">/boot</filename> 124 124 directory.</para> 125 125 … … 155 155 <para>If you are going to keep the kernel source tree around, you may want to 156 156 run <userinput>chown -R 0:0</userinput> on the 157 <filename >linux-&linux-version;</filename> directory to ensure all files are157 <filename class="directory">linux-&linux-version;</filename> directory to ensure all files are 158 158 owned by user <emphasis>root</emphasis>.</para> 159 159 … … 190 190 <para>define the interface to the 191 191 services that the kernel provides. The headers in your system's 192 <filename >include</filename> directory should <emphasis>always</emphasis> be192 <filename class="directory">include</filename> directory should <emphasis>always</emphasis> be 193 193 the ones against which Glibc was compiled and should therefore 194 194 <emphasis>not</emphasis> be replaced when upgrading the kernel.</para> -
prologue/typography.xml
r8250be1 r0719866 18 18 referenced.</para></blockquote> 19 19 20 <para><filename>install-info: unknown option 21 `--dir-file=/mnt/lfs/usr/info/dir'</filename></para> 20 <screen><computeroutput>install-info: unknown option `--dir-file=/mnt/lfs/usr/info/dir'</computeroutput></screen> 22 21 23 22 <blockquote><para>This form of text (fixed width text) is showing screen … … 28 27 29 28 <blockquote><para>This form of text is used for several purposes in the 30 book, mainly to emphasize important points, and to give examples of 31 what to type.</para></blockquote> 29 book, mainly to emphasize important points or items.</para></blockquote> 32 30 33 31 <para><ulink url="&lfs-root;"/></para> … … 37 35 websites.</para></blockquote> 38 36 39 <screen><userinput>cat > $LFS/etc/group << "EOF" </userinput>37 <screen><userinput>cat > $LFS/etc/group << "EOF" 40 38 root:x:0: 41 39 bin:x:1: 42 40 ...... 43 <userinput>EOF</userinput> 44 </screen> 41 EOF</userinput></screen> 45 42 46 43 <blockquote><para>This type of section is used mainly when creating 47 44 configuration files. The first command tells the system to create 48 the file $LFS/etc/groupfrom whatever is typed on the following lines until45 the file <filename>$LFS/etc/group</filename> from whatever is typed on the following lines until 49 46 the sequence EOF is encountered. Therefore, this whole section is generally 50 47 typed as seen.</para></blockquote>
Note:
See TracChangeset
for help on using the changeset viewer.