1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="postlfs-config-bootdisk" xreflabel="Creating a Custom Boot Device">
|
---|
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 prevents 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 | a rescue device was thought to be 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 LFS system.
|
---|
37 | In addition, it would be a repetition 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 versions 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>Also, the LFS Community has developed its own LiveCD available at
|
---|
64 | <ulink url='http://www.&lfs-domainname;/livecd/'/>. This LiveCD, is no
|
---|
65 | longer capable of building an entire LFS/BLFS system, but is still a
|
---|
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>
|
---|
74 |
|
---|
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
|
---|
85 | system consists of formatting the drive, adding <application>GRUB</application>
|
---|
86 | as well as the Linux kernel and supporting files.</para>
|
---|
87 |
|
---|
88 | <para condition="html" role="usernotes">User Notes:
|
---|
89 | <ulink url='&blfs-wiki;/CreatingaCustomBootDevice'/></para>
|
---|
90 |
|
---|
91 | </sect2>
|
---|
92 | </sect1>
|
---|