[f8d632ac] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/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
|
---|
[98078a63] | 24 | systems, that prevents it from booting and/or operating normally. For
|
---|
[1e247d1] | 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
|
---|
[481b3e8] | 30 | used as a rescue device: floppy, cdrom, usb drive, or even a network card.
|
---|
[1e247d1] | 31 | Which one you use depends on your hardware and your BIOS. In the past,
|
---|
[ec64d28] | 32 | a rescue device was thought to be a floppy disk. Today, many
|
---|
[1e247d1] | 33 | systems do not even have a floppy drive.</para>
|
---|
| 34 |
|
---|
[481b3e8] | 35 | <para>Building a complete rescue device is a challenging task. In many
|
---|
| 36 | ways, it is equivalent to building an entire LFS system.
|
---|
[bfb7882] | 37 | In addition, it would be a repetition of information already available.
|
---|
[1e247d1] | 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
|
---|
[da822b6] | 48 | available using older versions of Linux. One of the best is Tom's Root/Boot
|
---|
[1e247d1] | 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
|
---|
[481b3e8] | 60 | DVDs will work. These include RedHat, Mandrake, and SuSE. One
|
---|
[1e247d1] | 61 | very popular option is Knoppix.</para>
|
---|
| 62 |
|
---|
[8b36866] | 63 | <para>Also, the LFS Community has developed its own LiveCD available at
|
---|
[0e959c63] | 64 | <ulink url='http://www.&lfs-domainname;/livecd/'/>. This LiveCD, is no
|
---|
[a407a1c] | 65 | longer capable of building an entire LFS/BLFS system, but is still a
|
---|
[0e959c63] | 66 | good rescue CD-ROM. If you download the
|
---|
| 67 | ISO image, use <xref linkend="xorriso"/> to copy the image to a
|
---|
| 68 | CD-ROM.</para>
|
---|
| 69 |
|
---|
| 70 | <para>The instructions for using GRUB2 to make a custom rescue CD-ROM are
|
---|
| 71 | also available in <ulink
|
---|
| 72 | url='http://www.&lfs-domainname;/lfs/view/stable/chapter08/grub.html'>LFS
|
---|
| 73 | Chapter 8</ulink>.</para>
|
---|
[8b36866] | 74 |
|
---|
[1e247d1] | 75 | </sect2>
|
---|
| 76 |
|
---|
| 77 | <sect2>
|
---|
| 78 | <title>Creating a Bootable USB Drive</title>
|
---|
| 79 |
|
---|
| 80 | <para>A USB Pen drive, sometimes called a Thumb drive, is recognized by Linux as
|
---|
| 81 | a SCSI device. Using one of these devices as a rescue device has the advantage
|
---|
| 82 | that it is usually large enough to hold more than a minimal boot image. You
|
---|
| 83 | can save critical data to the drive as well as use it to diagnose and recover
|
---|
| 84 | a damaged system. Booting such a drive requires BIOS support, but building the
|
---|
[da822b6] | 85 | system consists of formatting the drive, adding <application>GRUB</application>
|
---|
| 86 | as well as the Linux kernel and supporting files.</para>
|
---|
[1e247d1] | 87 |
|
---|
[6473e74] | 88 | <para condition="html" role="usernotes">User Notes:
|
---|
[1663c2b5] | 89 | <ulink url='&blfs-wiki;/CreatingaCustomBootDevice'/></para>
|
---|
[6473e74] | 90 |
|
---|
[1e247d1] | 91 | </sect2>
|
---|
| 92 | </sect1>
|
---|