xref: /netbsd-src/share/man/man8/boot.8 (revision 8b0f9554ff8762542c4defc4f70e1eb76fb508fa)
1.\"	$NetBSD: boot.8,v 1.6 2007/12/14 12:03:53 apb Exp $
2.\"
3.\" Copyright (c) 1991, 1993
4.\"	The Regents of the University of California.  All rights reserved.
5.\"
6.\" This code is derived from software written and contributed
7.\" to Berkeley by William Jolitz.
8.\"
9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions
11.\" are met:
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.
20.\"
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
31.\" SUCH DAMAGE.
32.\"
33.\"     @(#)boot_i386.8	8.2 (Berkeley) 4/19/94
34.\"
35.Dd December 14, 2007
36.Os
37.Dt BOOT 8
38.Sh NAME
39.Nm boot
40.Nd
41system bootstrapping procedures
42.Sh DESCRIPTION
43This document provides information on using common features in the
44.Nx
45boot loader.
46Additional information may be found in
47architecture-specific
48.Xr boot 8
49manual pages.
50.Ss Interactive mode
51In interactive mode, the boot loader will present a prompt, allowing
52input of these commands:
53.\" NOTE: much of this text is duplicated in architecture-specific
54.\" man pages (man8/man8.*/*boot*.8);
55.\" please try to keep all relevant files synchronized.
56.Bl -tag -width 04n -offset 04n
57.It Xo Ic boot
58.Op Va device : Ns
59.Op Va filename
60.Op Fl acdqsvxz
61.Xc
62The default
63.Va device
64will be set to the disk that the boot loader was
65loaded from.
66To boot from an alternate disk, the full name of the device should
67be given at the prompt.
68.Va device
69is of the form
70.Xo Va xd
71.Op Va N Ns Op Va x
72.Xc
73where
74.Va xd
75is the device from which to boot,
76.Va N
77is the unit number, and
78.Va x
79is the partition letter.
80.Pp
81The following list of supported devices may vary from installation to
82installation:
83.Pp
84.Bl -hang -compact
85.It hd
86Hard disks.
87.It fd
88Floppy drives.
89.El
90.Pp
91The default
92.Va filename
93is
94.Pa netbsd ;
95if the boot loader fails to successfully
96open that image, it then tries
97.Pa netbsd.gz
98(expected to be a kernel image compressed by gzip), followed by
99.Pa netbsd.old ,
100.Pa netbsd.old.gz ,
101.Pa onetbsd ,
102and finally
103.Pa onetbsd.gz .
104Alternate system images can be loaded by just specifying the name of the image.
105.Pp
106Options are:
107.Bl -tag -width xxx
108.It Fl a
109Prompt for the root file system device, the system crash dump
110device, and the path to
111.Xr init 8 .
112.It Fl c
113Bring the system up into the device configuration manager.
114From here the device locators can be tuned to the hardware; see
115.Xr userconf 4 .
116.It Fl d
117Bring the system up in debug mode.
118Here it waits for a kernel debugger connect; see
119.Xr ddb 4 .
120.It Fl q
121Boot the system in quiet mode.
122.It Fl s
123Bring the system up in single-user mode.
124.It Fl v
125Boot the system in verbose mode.
126.It Fl x
127Boot the system with debug messages enabled.
128.It Fl z
129Boot the system in silent mode.
130.El
131.It Ic consdev Va dev
132Immediately switch the console to the specified device
133.Va dev
134and reprint the banner.
135.Va dev
136must be one of
137.\" .Bl -item -width com[0123]kbd -offset indent -compact
138.Ar pc , com0 , com1 , com2 ,
139.Ar com3 , com0kbd , com1kbd , com2kbd ,
140.Ar com3kbd ,
141or
142.Ar auto .
143See
144.Sx Console Selection Policy
145in
146.Xr boot_console 8 .
147.It Ic dev Op Va device
148Set the default drive and partition for subsequent filesystem
149operations.
150Without an argument, print the current setting.
151.Va device
152is of the form specified in
153.Cm boot .
154.It Ic help
155Print an overview about commands and arguments.
156.It Ic ls Op Pa path
157Print a directory listing of
158.Pa path ,
159containing inode number, filename, and file type.
160.Pa path
161can contain a device specification.
162.It Ic quit
163Reboot the system.
164.El
165.Pp
166In an emergency, the bootstrap methods described in the
167.Nx
168installation notes for the specific architecture
169can be used.
170.Sh FILES
171.Bl -tag -width /usr/mdec/bootxx_fstype -compact
172.It Pa /boot
173boot program code loaded by the primary bootstrap
174.\" .It Pa /boot.cfg
175.\" optional configuration file
176.\" (used only on i386 and amd64 architectures)
177.It Pa /netbsd
178system code
179.It Pa /netbsd.gz
180gzip-compressed system code
181.It Pa /usr/mdec/boot
182master copy of the boot program (copy to /boot)
183.It Pa /usr/mdec/bootxx_fstype
184primary bootstrap for filesystem type fstype, copied to the start of
185the
186.Nx
187partition by
188.Xr installboot 8 .
189.El
190.Sh SEE ALSO
191Architecture-specific
192.Xr boot 8
193manual pages,
194.Xr ddb 4 ,
195.Xr userconf 4 ,
196.\" .Xr boot.cfg 5 ,
197.Xr boot_console 8 ,
198.Xr halt 8 ,
199.Xr installboot 8 ,
200.Xr reboot 8 ,
201.Xr shutdown 8
202.Sh BUGS
203Any
204.Ar filename
205specified after the boot options, e.g.:
206.Pp
207.Bd -unfilled -offset indent -compact
208.Cm boot -d netbsd.test
209.Ed
210.Pp
211is ignored, and the default kernel is booted.
212