1.\" $NetBSD: boot.8,v 1.9 2002/02/13 08:18:31 ross Exp $ 2.\" 3.\" Copyright (c) 1992, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgement: 16.\" This product includes software developed by the University of 17.\" California, Berkeley and its contributors. 18.\" 4. Neither the name of the University nor the names of its contributors 19.\" may be used to endorse or promote products derived from this software 20.\" without specific prior written permission. 21.\" 22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" SUCH DAMAGE. 33.\" 34.\" @(#)boot_sparc.8 8.2 (Berkeley) 4/19/94 35.\" 36.Dd April 19, 1994 37.Dt BOOT 8 sun3 38.Os 39.Sh NAME 40.Nm boot 41.Nd 42system bootstrapping procedures 43.\" .Sh SYNOPSIS 44.\" .Nm reboot 45.\" .Op Fl n 46.\" .Op Fl q 47.\" .Oo 48.\" .Ar -- <boot string> 49.\" .Oc 50.Sh DESCRIPTION 51.Ss Power fail and crash recovery 52Normally, the system will reboot itself at power-up or after crashes. 53An automatic consistency check of the file systems will be performed 54as described in 55.Xr fsck 8 . 56and unless this fails, the system will resume multi-user operations. 57.Ss Cold starts 58A disk-boot program 59.Pa ( /usr/mdec/ufsboot ) 60will attempt to load 61.Pa netbsd 62from partition A of the boot device, 63which must currently be an 64.Dq sd 65disk. 66Alternatively, network boot program 67.Pa ( /usr/mdec/netboot ) 68will load 69.Pa netbsd 70from the NFS root as determined by the procedure described in 71.Xr diskless 8 . 72.Pp 73The 74.Fl s 75flag to the boot loader will bring the system up in single-user mode. 76The 77.Fl a 78flag instructs the system to prompt for the location of the root filesystem 79and the primary swap partition. 80The 81.Fl d 82flag to the boot loader will bring the system up in debug mode. 83Here it waits for a kernel debugger connect; see 84.Xr ddb 4 . 85The 86.Fl q 87flag to the boot loader would boot the system in 88quiet mode, 89.Fl v 90in verbose mode. 91Any extra flags or arguments, the after the -- separator, 92.Ar \*[Lt]boot string\*[Gt] 93are passed to the boot prom. 94Other flags are currently ignored. 95.Pp 96At any time you can break back to the rom by pressing the `L1' and `a' 97keys at the same time (if the console is a serial port the same is 98achieved by sending a `break'). 99If you do this accidentally you can continue whatever was in progress 100by typing `c' followed by the return key. 101.Sh FILES 102.Bl -tag -width /usr/mdec/installboot -compact 103.It Pa /netbsd 104system code 105.It Pa /usr/mdec/bootxx 106first-level boot block for disks 107.It Pa /usr/mdec/netboot 108boot program for NFS (diskless) boot 109.It Pa /usr/mdec/ufsboot 110second-level boot program for UFS disks 111.It Pa /usr/mdec/installboot 112program to install bootxx on a disk 113.El 114.Sh SEE ALSO 115.Xr crash 8 , 116.Xr disklabel 8 , 117.Xr fsck 8 , 118.Xr halt 8 , 119.Xr init 8 , 120.Xr rc 8 , 121.Xr shutdown 8 , 122.Xr syslogd 8 123