[f8d632ac] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[f8d632ac] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[46b900a] | 8 | <sect1 id="postlfs-config-bootdisk" xreflabel="Creating a Custom Boot Device">
|
---|
[1e247d1] | 9 | <?dbhtml filename="bootdisk.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info>
|
---|
| 12 | <othername>$LastChangedBy$</othername>
|
---|
| 13 | <date>$Date$</date>
|
---|
| 14 | </sect1info>
|
---|
| 15 |
|
---|
| 16 | <title>Creating a Custom Boot Device</title>
|
---|
| 17 |
|
---|
| 18 | <sect2>
|
---|
| 19 | <title>Decent Rescue Boot Device Needs</title>
|
---|
| 20 |
|
---|
| 21 | <para>This section is really about creating a <emphasis>rescue</emphasis>
|
---|
| 22 | device. As the name <emphasis>rescue</emphasis> implies, the host
|
---|
| 23 | system has a problem, often lost partition information or corrupted file
|
---|
| 24 | systems, that prevent it from booting and/or operating normally. For
|
---|
| 25 | this reason, you <emphasis>must not</emphasis> depend on resources from
|
---|
| 26 | the host being "rescued". To presume that any given partition or hard
|
---|
| 27 | drive <emphasis>will</emphasis> be available is a risky presumption.</para>
|
---|
| 28 |
|
---|
| 29 | <para>In a modern system, there are many devices that can be
|
---|
| 30 | used as a rescue device: floppy, cdrom, usb drive, or even a network card.
|
---|
| 31 | Which one you use depends on your hardware and your BIOS. In the past,
|
---|
| 32 | we usually thought of rescue device as a floppy disk. Today, many
|
---|
| 33 | systems do not even have a floppy drive.</para>
|
---|
| 34 |
|
---|
| 35 | <para>Building a complete rescue device is a challenging task. In many
|
---|
| 36 | ways, it is equivalent to building an entire <acronym>LFS</acronym> system.
|
---|
| 37 | In addition, it would be a repitition of information already available.
|
---|
| 38 | For these reasons, the procedures for a rescue device image are not
|
---|
| 39 | presented here.</para>
|
---|
| 40 |
|
---|
| 41 | </sect2>
|
---|
| 42 |
|
---|
| 43 | <sect2>
|
---|
| 44 | <title>Creating a Rescue Floppy</title>
|
---|
| 45 |
|
---|
| 46 | <para>The software of today's systems has grown large. Linux 2.6 no longer
|
---|
| 47 | supports booting directly from a floppy. In spite of this, there are solutions
|
---|
| 48 | available using older version of Linux. One of the best is Tom's Root/Boot
|
---|
| 49 | Disk available at <ulink url='http://www.toms.net/rb/'/>. This will provide a
|
---|
| 50 | minimal Linux system on a single floppy disk and provides the ability to
|
---|
| 51 | customize the contents of your disk if necessary.</para>
|
---|
| 52 |
|
---|
| 53 | </sect2>
|
---|
| 54 |
|
---|
| 55 | <sect2>
|
---|
| 56 | <title>Creating a Bootable CD-ROM</title>
|
---|
| 57 |
|
---|
| 58 | <para>There are several sources that can be used for a rescue CD-ROM.
|
---|
| 59 | Just about any commercial distribution's installation CD-ROMs or
|
---|
| 60 | DVDs will work. These include RedHat, Mandrake, and SuSE. One
|
---|
| 61 | very popular option is Knoppix.</para>
|
---|
| 62 |
|
---|
| 63 | <para>In addition, the LFS Community has developed its own Boot
|
---|
| 64 | CD-ROM available at <ulink url='ftp://anduin.linuxfromscratch.org/isos/'/>.
|
---|
| 65 | A copy of this CD-ROM is available with the printed version of the Linux
|
---|
| 66 | From Scratch book. If you download the ISO image, use <xref linkend='cdrecord'/> to
|
---|
| 67 | copy the image to a CD-ROM.</para>
|
---|
| 68 |
|
---|
| 69 | <para>In the future, the build instructions for this CD-ROM will be presented,
|
---|
| 70 | but they are not available at this writing.</para>
|
---|
| 71 |
|
---|
| 72 | </sect2>
|
---|
| 73 |
|
---|
| 74 | <sect2>
|
---|
| 75 | <title>Creating a Bootable USB Drive</title>
|
---|
| 76 |
|
---|
| 77 | <para>A USB Pen drive, sometimes called a Thumb drive, is recognized by Linux as
|
---|
| 78 | a SCSI device. Using one of these devices as a rescue device has the advantage
|
---|
| 79 | that it is usually large enough to hold more than a minimal boot image. You
|
---|
| 80 | can save critical data to the drive as well as use it to diagnose and recover
|
---|
| 81 | a damaged system. Booting such a drive requires BIOS support, but building the
|
---|
| 82 | system consists of formatting the drive, adding <application>grub</application>
|
---|
| 83 | as well as the kernel and supporting files.</para>
|
---|
| 84 |
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | </sect1>
|
---|