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