source: postlfs/config/bootdisk.xml@ e1100da

basic
Last change on this file since e1100da was e1100da, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Initial commit of basic branch

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/basic@20509 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.4 KB
Line 
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 creating 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, Ubuntu, 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 ISO image, use <ulink url="&blfs-book;multimedia/libisoburn.html">xorriso</ulink>
69 to copy the image to a CD-ROM.</para>
70
71 <para>The instructions for using GRUB2 to make a custom rescue CD-ROM are
72 also available in <ulink
73 url='http://www.&lfs-domainname;/lfs/view/stable/chapter08/grub.html'>LFS
74 Chapter 8</ulink>.</para>
75
76 </sect2>
77
78 <sect2>
79 <title>Creating a Bootable USB Drive</title>
80
81 <para>A USB pen drive, sometimes called a thumb drive, is recognized by Linux as
82 a SCSI device. Using one of these devices as a rescue device has the advantage
83 that it is usually large enough to hold more than a minimal boot image. You
84 can save critical data to the drive as well as use it to diagnose and recover
85 a damaged system. Booting such a drive requires BIOS support, but building the
86 system consists of formatting the drive, adding <application>GRUB</application>
87 as well as the Linux kernel and supporting files.</para>
88
89 <para>Creating a bootable USB drive from a downloaded iso file is
90 relatively simple. For example, if the iso file is some-rescue.iso and when
91 inserting a usb drive into the system the drive is recognized as /dev/sdg,
92 the file can be copied to the drive (as the root user) with:</para>
93
94<screen><userinput>dd of=/dev/sdg bs=8M status=progress oflag=direct if=some-rescue.iso</userinput></screen>
95
96 <para condition="html" role="usernotes">User Notes:
97 <ulink url='&blfs-wiki;/CreatingaCustomBootDevice'/></para>
98
99 </sect2>
100</sect1>
Note: See TracBrowser for help on using the repository browser.