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