1.\" $NetBSD: boot.8,v 1.14 2003/08/07 10:31:28 agc 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. Neither the name of the University nor the names of its contributors 15.\" may be used to endorse or promote products derived from this software 16.\" without specific prior written permission. 17.\" 18.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 19.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" SUCH DAMAGE. 29.\" 30.\" @(#)boot_sparc.8 8.2 (Berkeley) 4/19/94 31.\" 32.Dd April 8, 2003 33.Dt BOOT 8 sun3 34.Os 35.Sh NAME 36.Nm boot 37.Nd system bootstrapping procedures 38.\" .Sh SYNOPSIS 39.\" .Nm reboot 40.\" .Op Fl n 41.\" .Op Fl q 42.\" .Oo 43.\" .Ar -- <boot string> 44.\" .Oc 45.Sh DESCRIPTION 46.Ss Power fail and crash recovery 47Normally, the system will reboot itself at power-up or after crashes. 48An automatic consistency check of the file systems will be performed 49as described in 50.Xr fsck 8 , 51and unless this fails, the system will resume multi-user operations. 52.Ss Cold starts 53A disk-boot program 54.Pa ( /usr/mdec/ufsboot ) 55will attempt to load 56.Pa netbsd 57from partition A of the boot device, 58which must currently be an 59.Dq sd 60disk. 61Alternatively, network boot program 62.Pa ( /usr/mdec/netboot ) 63will load 64.Pa netbsd 65from the NFS root as determined by the procedure described in 66.Xr diskless 8 . 67.Ss Boot program options 68.Bl -tag -width xxx 69.It Fl a 70Prompt for the root file system device, the system crash dump 71device, and the path to 72.Xr init 8 . 73.It Fl d 74Bring the system up in debug mode. 75Here it waits for a kernel debugger connect; see 76.Xr ddb 4 . 77.It Fl q 78Boot the system in quiet mode. 79.It Fl s 80Bring the system up in single-user mode. 81.It Fl v 82Boot the system in verbose mode. 83.El 84.Pp 85Any extra flags or arguments, or the 86.Aq Ar boot string 87after the -- separator are passed to the boot PROM. 88Other flags are currently ignored. 89.Pp 90At any time you can break back to the ROM by pressing the 91.Sq L1 92and 93.Sq a 94keys at the same time (if the console is a serial port the same is 95achieved by sending a 96.Sq break ) . 97If you do this accidentally you can continue whatever was in progress 98by typing 99.Sq c 100followed 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 disklabel 8 , 116.Xr fsck 8 , 117.Xr halt 8 , 118.Xr init 8 , 119.Xr rc 8 , 120.Xr shutdown 8 , 121.Xr syslogd 8 122