more updates
[unix-history] / usr / src / sbin / reboot / boot_vax.8
CommitLineData
021014a6
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
d730f4d7 5.\" @(#)boot_vax.8 6.1 (Berkeley) %G%
021014a6 6.\"
d730f4d7 7.TH REBOOT 8 ""
021014a6
KM
8.UC 4
9.SH NAME
10reboot \- UNIX bootstrapping procedures
11.SH SYNOPSIS
12.B /etc/reboot
13[
14.B \-n
15] [
16.B \-q
17]
18.SH DESCRIPTION
19.PP
20UNIX is started by placing it in memory
21at location zero and transferring to zero.
22Since the system is not reenterable,
23it is necessary to read it in from disk or tape
24each time it is to be bootstrapped.
25.PP
26.B Rebooting a running system.
27When a UNIX is running and a reboot is desired,
28.IR shutdown (8)
29is normally used.
30If there are no users then
31.B /etc/reboot
32can be used.
33Reboot causes the disks to be synced, and then a multi-user
34reboot (as described below) is initiated. This causes a system to be
35booted and an automatic disk check to be performed. If all this succeeds
36without incident, the system is then brought up for many users.
37.PP
38Options to reboot are:
39.TP
40.B \-n
41option avoids the sync. It can be used if a disk or the processor
6f055ecd 42is on fire.
021014a6
KM
43.TP
44.B \-q
45reboots quickly and ungracefully, without shutting down running
46processes first.
47.PP
48.B "Power fail and crash recovery."
49Normally, the system will reboot itself at power-up or after crashes.
50Provided the auto-restart is enabled on the machine front panel,
51an automatic consistency check of the file systems will be performed
52then and unless this fails the system will resume multi-user operations.
53.PP
54.B Cold starts.
55These are processor type dependent.
56On an 11/780, there are two floppy files for each disk controller,
57both of which cause boots from unit 0 of the root file system
58of a controller located on mba0 or uba0.
59One gives a single user shell, while the other invokes the multi-user
60automatic reboot. Thus these files are HPS and HPM for the single
61and multi-user boot from MASSBUS RP06/RM03/RM05 disks,
62UPS and UPM for UNIBUS storage module controller and disks
63such as the EMULEX SC-21
64and AMPEX 9300 pair, or HKS and HKM for RK07 disks.
65.PP
66Giving the command
67.IP
68>>>BOOT HPM
69.LP
70Would boot the system from (e.g.) an RP06 and run the automatic consistency
71check as described in
72.IR fsck (8).
73(Note that it may
74be necessary to type control-P
75to gain the attention of the LSI-11 before getting the >>> prompt.)
76The command
77.IP
78>>>BOOT ANY
79.LP
80invokes a version of the boot program in a way which allows you to
81specify any system as the system to be booted.
82It reads from the console a device specification (see below) followed
83immediately by a pathname.
84.PP
85On an 11/750, the reset button will boot from the device
86selected by the front panel boot device switch. In systems
87with RK07's, position B normally selects the RK07 for boot.
88This will boot multi-user. To boot from RK07 with boot flags you
89may specify
90.IP
91>>>B/\fIn\fR DMA0
92.LP
93where, giving a \fIn\fR of 1 causes the boot program
94to ask for the name of the system to be bootstrapped,
95giving a \fIn\fR of 2 causes the boot program to come up single
96user, and a \fIn\fR of 3 causes both of these actions to occur.
97.PP
98The 11/750 boot procedure uses the boot roms to load block 0 off of
99the specified device. The /usr/mdec directory contains a number
100of bootstrap programs for the various disks which should be placed
6f055ecd
KM
101in a new pack automatically by
102.IR newfs (8)
103when the ``a'' partition file system on the pack is created.
021014a6
KM
104.PP
105On both processors, the
106.I boot
107program
108finds the corresponding file on the given device, loads that file
109into memory location zero, and starts the program at the entry address
110specified in the program header (after clearing off the high bit
111of the specified entry address.)
112Normal line editing characters can be used in specifying the pathname.
113.PP
6f055ecd
KM
114If you have a MASSBUS disk
115and wish to boot off of a file
116system which starts at cylinder 0
117of unit 0, you can type \*(lqhp(0,0)vmunix\*(rq
021014a6 118to the boot prompt; \*(lqup(0,0)vmunix\*(rq would specify
6f055ecd
KM
119a UNIBUS drive, ``hk(0,0)vmunix'' would specify
120an RK07 disk drive, ``ra(0,0)vmunix'' would specify a
121UDA50 disk drive, and ``rb(0,0)vmunix'' would specify a
122disk on a 730 IDC.
021014a6
KM
123.PP
124A device specification has the following form:
125.IP
126device(unit, minor)
127.PP
128where
129.I device
130is the type of the device to be searched,
131.I unit
132is 8* the mba or uba number plus
133the unit number of the device,
134and
135.I minor
136is the minor device index.
137The following list of supported devices may vary from installation to
138installation:
139.ta 5 10
140.nf
6f055ecd
KM
141 hp MASSBUS disk drive
142 up UNIBUS storage module drive
021014a6 143 ht TE16,TU45,TU77 on MASSBUS
6f055ecd 144 mt TU78 on MASSBUS
021014a6 145 hk RK07 on UNIBUS
6f055ecd
KM
146 ra storage module on a UDA50
147 rb storage module on a 730 IDC
148 rl RL02 on UNIBUS
021014a6
KM
149 tm TM11 emulation tape drives on UNIBUS
150 ts TS11 on UNIBUS
6f055ecd 151 ut UNIBUS TU45 emulator
021014a6
KM
152.fi
153.PP
154For tapes, the minor device number gives a file offset.
155.PP
156In an emergency, the bootstrap methods described in the paper
6f055ecd 157``Installing and Operating 4.2bsd'' can be used
021014a6
KM
158to boot from a distribution tape.
159.SH FILES
160.ta \w'/usr/mdec/mboot 'u
161/vmunix system code
162.br
163/boot system bootstrap
164.SH "SEE ALSO"
6f055ecd
KM
165crash(8V),
166fsck(8),
167init(8),
168rc(8),
169shutdown(8),
170halt(8),
171newfs(8)