1 .\" Copyright (c) 1999 Robert Nordier
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
17 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
18 .\" OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
19 .\" OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
20 .\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
22 .\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
23 .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 .\" $FreeBSD: src/usr.sbin/boot0cfg/boot0cfg.8,v 1.5.2.6 2003/03/12 22:08:13 trhodes Exp $
26 .\" $DragonFly: src/usr.sbin/boot0cfg/boot0cfg.8,v 1.3 2004/03/11 12:28:58 hmp Exp $
33 .Nd boot manager installation/configuration utility
49 boot manager permits the operator to select from which disk and
50 slice an i386 machine (PC) is booted.
52 Note that what are referred to here as
58 documentation relating to the PC.
59 Typically, only non-removable disks are sliced.
63 utility optionally installs the
65 boot manager on the specified
67 and allows various operational parameters to be configured.
69 On PCs, a boot manager typically occupies sector 0 of a disk, which is
70 known as the Master Boot Record (MBR).
71 The MBR contains both code (to which control is passed by the PC BIOS)
72 and data (an embedded table of defined slices).
75 .Bl -tag -width indent
80 This option causes MBR code to be replaced, without
81 affecting the embedded slice table.
83 Verbose: display information about the slices defined, etc.
91 Specify the drive number used by the PC BIOS in referencing the drive
92 which contains the specified
94 Typically this will be 0x80 for the first hard drive, 0x81 for the
95 second hard drive, and so on; however any integer between 0 and 0xff
98 Specify that a backup copy of the preexisting MBR should be written to
100 This file is created if it does not exist, and replaced if it does.
102 Specify slices to be enabled/disabled, where
104 is an integer between 0 (no slices enabled) and 0xf (all four slices
107 A comma-separated string of any of the following options may be
110 prepended as necessary):
111 .Bl -tag -width indent
113 Use the disk packet (BIOS Int 0x13 extensions) interface, as
114 as opposed to the legacy (CHS) interface, when doing disk I/O.
115 This allows booting above cylinder 1023, but requires specific
120 Forces the drive containing the disk to be referenced using drive
121 number definable by means of the -d option.
125 Allow the MBR to be updated by the boot manager.
126 (The MBR may be updated to flag slices as
128 and to save slice selection information.)
129 This is the default; a
131 option causes the MBR to be treated as read-only.
134 Set the default boot selection to
136 Values between 1 and 4 refer to slices; a value of 5 refers to the
137 option of booting from a second disk.
138 This would normally be used in conjunction with the
142 Set the timeout value to
144 (There are approximately 18.2 ticks per second.)
147 .Bl -tag -width /boot/boot0 -compact
154 The following is an example of a typical usage
157 utility to affect the next boot:
159 .Dl "boot0cfg -s 2 ad0"
166 .An Robert Nordier Aq rnordier@FreeBSD.org .
172 to fail, depending on the nature of BIOS support.
176 option with an incorrect -d operand may cause the MBR to be written