1.\" Copyright (c) 1990, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Systems Programming Group of the University of Utah Computer 6.\" Science Department. 7.\" 8.\" Redistribution and use in source and binary forms, with or without 9.\" modification, are permitted provided that the following conditions 10.\" are met: 11.\" 1. Redistributions of source code must retain the above copyright 12.\" notice, this list of conditions and the following disclaimer. 13.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" notice, this list of conditions and the following disclaimer in the 15.\" documentation and/or other materials provided with the distribution. 16.\" 3. All advertising materials mentioning features or use of this software 17.\" must display the following acknowledgement: 18.\" This product includes software developed by the University of 19.\" California, Berkeley and its contributors. 20.\" 4. Neither the name of the University nor the names of its contributors 21.\" may be used to endorse or promote products derived from this software 22.\" without specific prior written permission. 23.\" 24.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)boot_hp300.8 8.2 (Berkeley) 4/19/94 37.\" 38.Dd April 19, 1994 39.Dt BOOT_HP300 8 hp300 40.Os 41.Sh NAME 42.Nm boot 43.Nd 44system bootstrapping procedures 45.Sh DESCRIPTION 46.Sy 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, 49and unless this fails, the system will resume multi-user operations. 50.Pp 51.Sy Cold starts. 52On an HP300, the boot procedure uses the boot ROM to load a boot program 53from an 54.Tn LIF 55format directory at the beginning of an attached disk. 56The 57.Pa /usr/mdec 58directory contains a disk boot programs which should be placed in a 59new pack automatically by 60.Xr newfs 8 61when the ``a'' partition file system on the pack is created. 62.Pp 63This 64.Em boot 65program 66finds the corresponding file on the given device 67.Pf ( Ar netbsd 68by default), 69loads that file into memory, 70and starts the program at the entry address specified in the program header. 71.Pp 72The boot program can be interrupted by typing `^C' (ctrl-C). 73This will force the boot program to interactively prompt for a system to boot. 74If not interrupted, it will boot from the device from which the boot 75program itself was loaded. 76.Pp 77The file specifications used for an interactive boot are of the form: 78.Pp 79.Dl device(unit, minor) 80.Pp 81where 82.Ar device 83is the type of the device to be searched, 84.Ar unit 85is 8 * the hpib number plus the unit number of the disk or tape, 86and 87.Ar minor 88is the disk partition or tape file number. 89Normal line editing characters can be used when typing the file specification. 90Currently, ``rd'' and ``sd'' are the only valid 91.Ar device 92specifiers. 93.Pp 94For example, 95to boot from the `a' file system of unit 0 on HP-IB 2, 96type 97.Ql rd(16, 0)netbsd 98to the boot prompt. 99For tapes, the minor device number gives a file offset. 100.Pp 101In an emergency, the bootstrap methods described in the paper 102.%T Installing 4.3bsd on the HP300 103can be used to boot from a distribution tape. 104.Sh FILES 105.Bl -tag -width /usr/mdec/installboot -compact 106.It Pa /netbsd 107system code 108.It Pa /usr/mdec/bootrd 109.Tn LIF 110format boot block 111.It Pa /usr/mdec/installboot 112program to install boot blocks 113.El 114.Sh SEE ALSO 115.Xr halt 8 , 116.Xr reboot 8 , 117.Xr shutdown 8 118