1 .\" $NetBSD: boot.8,v 1.11 2009/03/11 19:01:29 joerg Exp $
3 .\" Copyright (c) 1991, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" This code is derived from software written and contributed
7 .\" to Berkeley by William Jolitz.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
17 .\" 3. Neither the name of the University nor the names of its contributors
18 .\" may be used to endorse or promote products derived from this software
19 .\" without specific prior written permission.
21 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 .\" @(#)boot_i386.8 8.2 (Berkeley) 4/19/94
41 system bootstrapping procedures
43 This document provides information on using common features in the
46 Additional information may be found in
53 boot protocol, options are passed from the boot loader
54 to the kernel via flag bits in the
59 In interactive mode, the boot loader will present a prompt, allowing
60 input of these commands:
61 .\" NOTE: much of this text is duplicated in architecture-specific
62 .\" man pages (man8/man8.*/*boot*.8);
63 .\" please try to keep all relevant files synchronized.
64 .Bl -tag -width 04n -offset 04n
65 .It Ic boot Oo Va device : Ns Oc Oo Va filename Oc Oo Fl 1234abcdmqsvxz Oc
68 will be set to the disk that the boot loader was
70 To boot from an alternate disk, the full name of the device should
71 be given at the prompt.
79 is the device from which to boot,
81 is the unit number, and
83 is the partition letter.
85 The following list of supported devices may vary from installation to
99 if the boot loader fails to successfully
100 open that image, it then tries
102 (expected to be a kernel image compressed by gzip), followed by
108 Alternate system images can be loaded by just specifying the name of the image.
113 Sets the machine-dependent flag
118 Sets the machine-dependent flag
123 Sets the machine-dependent flag
128 Sets the machine-dependent flag
137 This causes the kernel to prompt for the root file system device,
138 the system crash dump device, and the path to
145 This causes subsequent reboot attempts to halt instead of rebooting.
151 This causes the kernel to enter the
153 device configuration manager as soon as possible during the boot.
155 allows devices to be enabled or disabled, and allows device locators
156 (such as hardware addresses or bus numbers)
157 to be modified before the kernel attempts to attach the devices.
163 Requests the kernel to enter debug mode, in which it
164 waits for a connection from a kernel debugger; see
171 Informs the kernel that a mini-root file system is present in memory.
177 Boot the system in quiet mode.
183 Boot the system in single-user mode.
189 Boot the system in verbose mode.
195 Boot the system with debug messages enabled.
201 Boot the system in silent mode.
203 .It Ic consdev Va dev
204 Immediately switch the console to the specified device
206 and reprint the banner.
209 .\" .Bl -item -width com[0123]kbd -offset indent -compact
210 .Ar pc , com0 , com1 , com2 ,
211 .Ar com3 , com0kbd , com1kbd , com2kbd ,
216 .Sx Console Selection Policy
219 .It Ic dev Op Va device
220 Set the default drive and partition for subsequent filesystem
222 Without an argument, print the current setting.
224 is of the form specified in
227 Print an overview about commands and arguments.
228 .\" .It Ic load Va module Op Va arguments
231 Print a directory listing of
233 containing inode number, filename, and file type.
235 can contain a device specification.
236 .\" .It Ic multiboot Va kernel Op Va arguments
242 In an emergency, the bootstrap methods described in the
244 installation notes for the specific architecture
247 .Bl -tag -width /usr/mdec/bootxx_fstype -compact
249 boot program code loaded by the primary bootstrap
251 .\" optional configuration file
252 .\" (used only on i386 and amd64 architectures)
256 gzip-compressed system code
257 .It Pa /usr/mdec/boot
258 master copy of the boot program (copy to /boot)
259 .It Pa /usr/mdec/bootxx_fstype
260 primary bootstrap for filesystem type fstype, copied to the start of
267 Architecture-specific
280 The kernel file name must be specified before, not after, the boot options.
283 specified after the boot options, e.g.:
285 .Bd -unfilled -offset indent -compact
286 .Cm boot -d netbsd.test
289 is ignored, and the default kernel is booted.