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>
|
---|
22 | This section is really about creating a <emphasis>rescue</emphasis>
|
---|
23 | device. As the name <emphasis>rescue</emphasis> implies, the host
|
---|
24 | system has a problem, often lost partition information or corrupted file
|
---|
25 | systems, that prevents it from booting and/or operating normally. For
|
---|
26 | this reason, you <emphasis>must not</emphasis> depend on resources from
|
---|
27 | the host being "rescued". To presume that any given partition or hard
|
---|
28 | drive <emphasis>will</emphasis> be available is a risky presumption.
|
---|
29 | </para>
|
---|
30 |
|
---|
31 | <para>
|
---|
32 | In a modern system, there are many devices that can be used as a
|
---|
33 | rescue device: floppy, cdrom, usb drive, or even a network card.
|
---|
34 | Which one you use depends on your hardware and your BIOS. In the past,
|
---|
35 | a rescue device was thought to be a floppy disk. Today, many
|
---|
36 | systems do not even have a floppy drive.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | <para>
|
---|
40 | Building a complete rescue device is a challenging task. In many
|
---|
41 | ways, it is equivalent to building an entire LFS system.
|
---|
42 | In addition, it would be a repetition of information already available.
|
---|
43 | For these reasons, the procedures for a rescue device image are not
|
---|
44 | presented here.
|
---|
45 | </para>
|
---|
46 |
|
---|
47 | </sect2>
|
---|
48 |
|
---|
49 | <sect2>
|
---|
50 | <title>Creating a Rescue Floppy</title>
|
---|
51 |
|
---|
52 | <para>
|
---|
53 | The software of today's systems has grown large. Linux 2.6 no longer
|
---|
54 | supports booting directly from a floppy. In spite of this, there are
|
---|
55 | solutions available using older versions of Linux. One of the best is
|
---|
56 | Tom's Root/Boot Disk available at <ulink
|
---|
57 | url='http://www.toms.net/rb/'/>. This will provide a minimal Linux
|
---|
58 | system on a single floppy disk and provides the ability to customize
|
---|
59 | the contents of your disk if necessary.
|
---|
60 | </para>
|
---|
61 |
|
---|
62 | </sect2>
|
---|
63 |
|
---|
64 | <sect2>
|
---|
65 | <title>Creating a Bootable CD-ROM</title>
|
---|
66 |
|
---|
67 | <para>
|
---|
68 | There are several sources that can be used for a rescue CD-ROM.
|
---|
69 | Just about any commercial distribution's installation CD-ROMs or
|
---|
70 | DVDs will work. These include RedHat, Ubuntu, and SuSE. One
|
---|
71 | very popular option is Knoppix.
|
---|
72 | </para>
|
---|
73 |
|
---|
74 | <para>
|
---|
75 | Also, the LFS Community has developed its own LiveCD available at
|
---|
76 | <ulink url='http://www.&lfs-domainname;/livecd/'/>. This LiveCD, is no
|
---|
77 | longer capable of building an entire LFS/BLFS system, but is still a
|
---|
78 | good rescue CD-ROM. If you download the
|
---|
79 | ISO image, use <xref linkend="xorriso"/> to copy the image to a
|
---|
80 | CD-ROM.
|
---|
81 | </para>
|
---|
82 |
|
---|
83 | <para>
|
---|
84 | The instructions for using GRUB2 to make a custom rescue CD-ROM are
|
---|
85 | also available in <ulink
|
---|
86 | url='http://www.&lfs-domainname;/lfs/view/stable/chapter10/grub.html'>LFS
|
---|
87 | Chapter 10</ulink>.
|
---|
88 | </para>
|
---|
89 |
|
---|
90 | </sect2>
|
---|
91 |
|
---|
92 | <sect2>
|
---|
93 | <title>Creating a Bootable USB Drive</title>
|
---|
94 |
|
---|
95 | <para>
|
---|
96 | A USB Pen drive, sometimes called a Thumb drive, is recognized by Linux
|
---|
97 | as a SCSI device. Using one of these devices as a rescue device has
|
---|
98 | the advantage that it is usually large enough to hold more than a
|
---|
99 | minimal boot image. You can save critical data to the drive as well
|
---|
100 | as use it to diagnose and recover a damaged system. Booting such a
|
---|
101 | drive requires BIOS support, but building the system consists of
|
---|
102 | formatting the drive, adding <application>GRUB</application> as well
|
---|
103 | as the Linux kernel and supporting files.
|
---|
104 | </para>
|
---|
105 |
|
---|
106 | <para condition="html" role="usernotes">User Notes:
|
---|
107 | <ulink url='&blfs-wiki;/CreatingaCustomBootDevice'/>
|
---|
108 | </para>
|
---|
109 |
|
---|
110 | </sect2>
|
---|
111 | </sect1>
|
---|