Debian Codegraph @

README

raw
1 A replacement master boot record
2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 Contents
4 ~~~~~~~~
5 1. Copyright
6 2. Introduction
7 3. Basic Installation
8 4. The boot process
9 5. Configuration
10 6. Acknowledgements
11
12 1. Copyright
13 ~~~~~~~~~~~~
14
15 Copyright (C) 1995, 1999 Neil Turton
16
17 This program is free software; you can redistribute it and/or modify
18 it under the terms of the GNU General Public License as published by
19 the Free Software Foundation; either version 2 of the License, or
20 (at your option) any later version.
21
22 This program is distributed in the hope that it will be useful,
23 but WITHOUT ANY WARRANTY; without even the implied warranty of
24 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 GNU General Public License for more details.
26
27 You should have received a copy of the GNU General Public License
28 along with this program; if not, write to the Free Software
29 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30
31 See file COPYING for details
32
33 2. Introduction
34 ~~~~~~~~~~~~~~~
35
36 When a PC is reset, it goes through a series of self tests, and then
37 attempts to load an operating system. The loading process requires a
38 number of steps. When booting from a hard disk, these are to read and
39 execute the first sector of the first hard disk, called the master
40 boot record, which in turn, reads and executes the first sector of one
41 of the partitions on that disk, called a boot sector. The program
42 code on this sector then loads the operating system. The standard MBR
43 (master boot record) which comes with MSDOS is fairly simple, and
44 limited in a number of ways. The MSDOS MBR is also non-free which
45 means that it cannot form part of a completely free system. This MBR
46 is more complicated, and aims to overcome these limitations.
47
48 3. Basic Installation
49 ~~~~~~~~~~~~~~~~~~~~~
50
51 See the file 'INSTALL' for generic building instructions. By default
52 this package installs the program install-mbr in /usr/local/sbin.
53 This program is used to install the MBR and contains a copy of the
54 MBR within itself.
55
56 Before you begin, make sure you have an alternative way of booting
57 your computer (ie. boot floppy). When all fails and your computer
58 sits there asking you to insert a system disk, you'll be stuck if you
59 don't have one.
60
61 Installation is done using the program called install-mbr. If this
62 program is not on your path, you will have to invoke it as
63 <dir>/install-mbr (./install-mbr if it is in the current directory).
64 It is recomended that you test the master boot record with your system
65 before you install it on the first sector of your hard disk. You may
66 wish to skip this step if you took my earlier advice and made a boot
67 floppy. To do this, put a blank floppy disk in your first disk drive,
68 and type the command:
69 install-mbr /dev/fd0 -T /dev/hda
70
71 If your primary disk is a SCSI disk, you will have to replace hda in
72 the command above with sda. This command tells install-mbr to install
73 it's built-in copy of the master boot record on the first floppy drive
74 (/dev/fd0), taking the partition table from the first IDE hard disk
75 (/dev/hda). Booting from the floppy disk should load your operating
76 system as usual.
77
78 Once the master boot record has been tested, you can install it on
79 your hard disk using the following command:
80 install-mbr /dev/hda
81
82 4. The boot process
83 ~~~~~~~~~~~~~~~~~~~
84
85 When the MBR is first loaded it waits for a configurable length of
86 time (1 second by default), monitoring the keyboard, for key presses.
87 If the MBR detects a key press, it will interrupt the boot process,
88 and display it's prompt. Otherwise, it will load the first sector of
89 the default partition, and execute it. If a disk error occours, the
90 MBR will display it's prompt.
91
92 4.1 The boot prompt
93 ~~~~~~~~~~~~~~~~~~~
94
95 The boot prompt looks something like this:
96
97 14FA:
98
99 This is the list of valid keys which may be pressed. This means that
100 partitions 1, and 4 can be booted, also the first floppy drive
101 (F). The 'A' means that 'advanced' mode may be entered, in which any
102 partition may be booted. The prompt for this mode looks like this:
103
104 1234F:
105
106 The only other valid key which may be pressed is RETURN, which
107 continues booting with the default partition.
108
109 5. Acknowledgements
110 ~~~~~~~~~~~~~~~~~~~
111 Many thanks to all who have contributed to this package. Please read
112 the AUTHORS file.