Ignore:
Timestamp:
10/14/2003 04:25:20 PM (21 years ago)
Author:
Larry Lawrence <larry@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_0, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
9dc71fc
Parents:
27d830e
Message:

whitespace patches, bootdisk patch

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1384 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/config/bootdisk.xml

    r27d830e ra4acd463  
    9595instead in any commands that include "rescueimage".</para>
    9696
    97 <para>If you can not get your kernel down to the size needed to allow
     97<para>If you can not get your rescueimage down to the size needed to allow
    9898all you need on the ramdisk image, don't fret.  You can always build a
    9999two diskette set, one boot and one root diskette.  The kernel will prompt
    100100you to insert the root file system diskette.  This will allow room for a
    101 compressed ramdisk image of 1440 blocks and a kernel of the same
     101compressed ramdisk image of 1440 blocks and a rescueimage of the same
    102102size.</para>
    103103
    104 <para>The kernel size limits given above are likely to vary as
     104<para>The rescueimage size limits given above are likely to vary as
    105105local system-specific configurations change.  Use them only as a
    106 guideline and not as gospel.  The size of the kernel image as shown by
     106guideline and not as gospel.  The size of rescueimage as shown by
    107107<command>ls -sk</command> is only an approximation because of some
    108108"overhead".  On the system used to develop this version of these
     
    124124<listitem><para>add components to the file system</para></listitem>
    125125<listitem><para>make the compressed initrd</para></listitem>
    126 <listitem><para>join a kernel image and initrd onto a diskette</para></listitem>
     126<listitem><para>join rescueimage and initrd onto a diskette</para></listitem>
    127127</itemizedlist>
    128128
     
    238238to minimize wasting space with unneeded inodes.</para>
    239239
    240 <para><emphasis>You must modify this to suit your kernel configuration and
     240<para><emphasis>You must modify this to suit your rescueimage configuration and
    241241other needs.</emphasis>  For example, you may need
    242242<acronym>SCSI</acronym> devices and may not need
     
    376376basic utilities.  A file system package, like <application><ulink
    377377url="http://freshmeat.net/projects/e2fsprogs/">e2fsprogs</ulink></application>, or
    378 a package for the file system you are using will provide a minimal
     378a package for the file system you are using, will provide a minimal
    379379set of utilities for file system checking and reconstruction.  The whole
    380380package will not be installed, but only certain needed components.</para>
     
    438438
    439439<para>There are two very useful utilities that any rescue disk should
    440 have to help in faster and more accurate recovery.  The first is a
     440have, to help in faster and more accurate recovery.  The first is a
    441441partitioning utility.  The <command>sfdisk</command> program is
    442442used here because of its small size and great power.  Be warned though -
     
    523523ls -l /tmp/rootfs.gz</command></userinput></screen> 
    524524
    525 <para><emphasis>Join a kernel image and initrd onto a diskette</emphasis></para>
    526 
    527 <para>Now the kernel image and initial ramdisk image will be written to
     525<para><emphasis>Join rescueimage and initrd onto a diskette</emphasis></para>
     526
     527<para>Now the rescueimage and initial ramdisk image will be written to
    528528the boot diskette.  Before doing this, calculate the number of blocks
    529 needed for the kernel and for the initrd, individually, by dividing each
     529needed for rescueimage and for <filename>/tmp/rootfs.gz</filename>
     530(the initial ramdisk), individually, by dividing each
    530531size by 1024 and adding one if there is any remainder.  Add these two
    531532results together.  They must total 1,440 or fewer blocks.  If they total
    532533more than this, don't worry too much.  Changes to make a two-diskette
    533534set are presented later.  Of course, you could reexamine your choices and
    534 try to shrink either the kernel or the initial ramdisk image.</para>
     535try to shrink either the rescueimage or the initial ramdisk image.</para>
    535536
    536537<para>To make a single-floppy rescue, using devfs, use the following
     
    572573Make sure that this number, which may be different for you, matches your
    573574calculations from above.  You need to calculate a "magic number" now
    574 that will be inserted into the kernel image.  The value consists of three
     575that will be inserted into rescueimage.  The value consists of three
    575576significant parts.  Two are discussed here.  The third is touched upon
    576577later.</para>
    577578
    578 <para>Bits 0 - 10 will contain the size of the kernel image, in blocks,
     579<para>Bits 0 - 10 will contain the size of rescueimage, in blocks,
    579580that you calculated above, and which should match the results from the
    580581dd above. Bit 14 (the 15th bit, which is 2 to the 14th power, or 16,384)
    581582is a flag that, when set to 1, tells the kernel an initial ramdisk is to
    582583be loaded. So for the single-floppy rescue diskette, the two numbers
    583 16,384 and 481 (or whatever number is right for your kernel size) are
     58416,384 and 481 (or whatever number is right for your rescueimage size) are
    584585added together to produce a decimal value, like 16865. This value is
    585 inserted into the proper place in the kernel image by the
     586inserted into the proper place in rescueimage by the
    586587<command>rdev</command> command done next.</para>
    587588
    588 <para>Insert the "magic number" into the kernel image and then write the
    589 root file system right after the kernel on the floppy by executing the
     589<para>Insert the "magic number" into rescueimage and then write the
     590root file system right after rescueimage on the floppy by executing the
    590591following commands, with the proper numbers inserted. Notice that the
    591592<command>seek</command> parameter's number must be the size, in blocks,
    592 of your kernel image. If you use the static <filename class="directory">/dev</filename>
     593of your rescueimage. If you use the static <filename class="directory">/dev</filename>
    593594setup, use <filename>/dev/fd0</filename> in the commands below, instead
    594595of <filename>/dev/floppy/0</filename>.</para>
     
    598599
    599600<para>In this command, <command>seek</command> was used to position to
    600 the block following the end of the kernel (480+1) and begin writing the
     601the block following the end of the rescueimage (480+1) and begin writing the
    601602root file system to the floppy.</para>
    602603</sect3>
     
    615616<para>Modify the above instructions as follows. First a different magic
    616617number is needed. The 15th bit (bit 14) still needs to be set, but the
    617 size of the kernel image, in blocks, is replaced with a zero.  The third
     618size of the rescueimage, in blocks, is replaced with a zero.  The third
    618619component, which was not discussed above, is now used. This is the 16th
    619620bit (bit 15) of the "magic number". When set, it tells the kernel to ask
    620621the user to insert the "root" floppy. It then loads the initrd image
    621 from that diskette.  Because the size of the kernel image was replaced
     622from that diskette.  Because the size of the rescueimage was replaced
    622623by zero, the kernel starts loading from the "zero'th" block (the first
    623624one) on the second diskette.</para>
     
    627628value tells the kernel to prompt for, and then load, an initial ramdisk
    628629image from the first block on the inserted floppy.  So your first
    629 modification is to the command to write the "magic number" to the kernel
     630modification is to the command to write the "magic number" to the rescueimage
    630631image on the diskette.</para>
    631632
Note: See TracChangeset for help on using the changeset viewer.