allow the ifa to be specified as well as the ifp on a RTM_CHANGE\;
[unix-history] / usr / src / sbin / reboot / boot_vax.8
CommitLineData
61dbfbf1
KB
1.\" Copyright (c) 1980 The Regents of the University of California.
2.\" All rights reserved.
021014a6 3.\"
31b39933 4.\" %sccs.include.redist.man%
61dbfbf1 5.\"
31b39933 6.\" @(#)boot_vax.8 6.8 (Berkeley) %G%
021014a6 7.\"
d730f4d7 8.TH REBOOT 8 ""
021014a6
KM
9.UC 4
10.SH NAME
11reboot \- UNIX bootstrapping procedures
12.SH SYNOPSIS
31b39933 13.B reboot
021014a6
KM
14[
15.B \-n
16] [
17.B \-q
18]
19.SH DESCRIPTION
20.PP
21UNIX is started by placing it in memory
be1d37d3 22at location zero and transferring to the entry point.
021014a6
KM
23Since the system is not reenterable,
24it is necessary to read it in from disk or tape
25each time it is to be bootstrapped.
26.PP
27.B Rebooting a running system.
28When a UNIX is running and a reboot is desired,
29.IR shutdown (8)
30is normally used.
31If there are no users then
31b39933 32.B reboot
021014a6 33can be used.
13e92b42
MK
34Reboot causes the disks to be synced and allows the system
35to perform other shutdown activities such as resynchronizing
36hardware time-of-day clocks.
37A multi-user reboot (as described below) is then initiated.
38This causes a system to be
021014a6
KM
39booted and an automatic disk check to be performed. If all this succeeds
40without incident, the system is then brought up for many users.
41.PP
42Options to reboot are:
43.TP
44.B \-n
45option avoids the sync. It can be used if a disk or the processor
6f055ecd 46is on fire.
021014a6
KM
47.TP
48.B \-q
49reboots quickly and ungracefully, without shutting down running
50processes first.
51.PP
b77763cc
MK
52.I Reboot
53normally logs the reboot using
54.IR syslog (8)
55and places a shutdown record in the login accounting file
31b39933 56/var/log/wtmp.
b77763cc
MK
57These actions are inhibited if the
58.B \-n
59or
60.B \-q
61options are present.
62.PP
021014a6
KM
63.B "Power fail and crash recovery."
64Normally, the system will reboot itself at power-up or after crashes.
65Provided the auto-restart is enabled on the machine front panel,
be1d37d3
MK
66an automatic consistency check of the file systems will be performed,
67and unless this fails, the system will resume multi-user operations.
021014a6
KM
68.PP
69.B Cold starts.
3dd800de 70These are processor-type dependent.
021014a6
KM
71On an 11/780, there are two floppy files for each disk controller,
72both of which cause boots from unit 0 of the root file system
73of a controller located on mba0 or uba0.
74One gives a single user shell, while the other invokes the multi-user
75automatic reboot. Thus these files are HPS and HPM for the single
76and multi-user boot from MASSBUS RP06/RM03/RM05 disks,
77UPS and UPM for UNIBUS storage module controller and disks
78such as the EMULEX SC-21
3dd800de
MK
79and AMPEX 9300 pair,
80RAS and RAM to boot from MSCP controllers and disks such as the RA81,
81or HKS and HKM for RK07 disks.
be1d37d3
MK
82There is also a script for booting from the default device,
83which is normally a copy of one of the standard multi-user boot scripts,
84but which may be modified to perform other actions
85or to boot from a different unit.
86The situation on the 8600 is similar, with scripts loaded from the console RL02.
021014a6
KM
87.PP
88Giving the command
89.IP
90>>>BOOT HPM
91.LP
3dd800de 92would boot the system from (e.g.) an RP06 and run the automatic consistency
021014a6
KM
93check as described in
94.IR fsck (8).
95(Note that it may
96be necessary to type control-P
be1d37d3 97and halt the processor
021014a6
KM
98to gain the attention of the LSI-11 before getting the >>> prompt.)
99The command
100.IP
101>>>BOOT ANY
102.LP
103invokes a version of the boot program in a way which allows you to
104specify any system as the system to be booted.
105It reads from the console a device specification (see below) followed
106immediately by a pathname.
107.PP
be1d37d3 108The scripts may be modified for local configuration if necessary.
ca65dd63
KB
109The flags are placed in register 11 (as defined in
110.IR <sys/reboot.h> ).
3dd800de
MK
111The boot device is specified in register 10.
112The encoding of this register is also defined in
113.IR <sys/reboot.h> .
114The current encoding has a historical basis, and is shown in the following
115table:
116.LP
117.ta 5 10
118.nf
119 bits usage
120 0-7 boot device type (the device major number)
121 8-15 disk partition
122 16-19 drive unit
123 20-23 controller number
124 24-27 adaptor number (UNIBUS or MASSBUS as appropriate)
125.fi
126.LP
127The adaptor number corresponds to the normal configuration on the 11/750,
128and to the order in which adaptors are found on the 11/780 and 8600
129(generally the same as the numbers used by UNIX).
be1d37d3 130.PP
021014a6
KM
131On an 11/750, the reset button will boot from the device
132selected by the front panel boot device switch. In systems
133with RK07's, position B normally selects the RK07 for boot.
134This will boot multi-user. To boot from RK07 with boot flags you
135may specify
136.IP
137>>>B/\fIn\fR DMA0
138.LP
139where, giving a \fIn\fR of 1 causes the boot program
140to ask for the name of the system to be bootstrapped,
141giving a \fIn\fR of 2 causes the boot program to come up single
142user, and a \fIn\fR of 3 causes both of these actions to occur.
be1d37d3
MK
143The ``DM'' specifies RK07, the ``A'' represents the adaptor number (UNIBUS
144or MASSBUS), and the ``0'' is the drive unit number.
145Other disk types which may be used are DB (MASSBUS), DD (TU58),
146and DU (UDA-50/RA disk).
147A non-zero disk partition can be used by adding (partition times 1000 hex)
148to \fIn\fR.
021014a6 149.PP
3dd800de
MK
150The boot procedure on the MicroVAX II is similar.
151A switch on the back panel sets the power-up action
152to autoboot or to halt.
153When halted, the processor may be booted using the same syntax
154as on the 11/750.
155.PP
021014a6
KM
156The 11/750 boot procedure uses the boot roms to load block 0 off of
157the specified device. The /usr/mdec directory contains a number
158of bootstrap programs for the various disks which should be placed
3dd800de
MK
159in a new pack by
160.IR disklabel (8).
161Similarly, the MicroVAX II boot procedure loads a boot parameter block
162from block 0 of the disk.
163The
164.I rdboot
165``bootstrap'' contains the correct parameters for an MSCP disk such
166as the RD53.
021014a6 167.PP
be1d37d3 168On any processor, the
021014a6
KM
169.I boot
170program
be1d37d3
MK
171finds the corresponding file on the given device
172.RI ( vmunix
173by default), loads that file
021014a6
KM
174into memory location zero, and starts the program at the entry address
175specified in the program header (after clearing off the high bit
be1d37d3 176of the specified entry address).
021014a6 177.PP
be1d37d3
MK
178The file specifications used with \*(lqBOOT ANY\*(rq or \*(lqB/3\*(rq
179are of the form:
021014a6 180.IP
3dd800de 181device(adaptor,controller,unit,minor)
021014a6
KM
182.PP
183where
184.I device
185is the type of the device to be searched,
3dd800de
MK
186.I adaptor
187is the UNIBUS or MASSBUS number of the adaptor to which the device is attached,
188.I controller
189is the unit number of the controller or MASSBUS tape formatter on that adaptor,
021014a6 190.I unit
3dd800de 191is the unit number of the disk or transport slave unit of the tape,
021014a6
KM
192and
193.I minor
be1d37d3 194is the disk partition or tape file number.
3dd800de 195Leading adaptor or controller numbers default to 0.
be1d37d3 196Normal line editing characters can be used when typing the file specification.
021014a6
KM
197The following list of supported devices may vary from installation to
198installation:
3dd800de 199.LP
021014a6
KM
200.ta 5 10
201.nf
6f055ecd
KM
202 hp MASSBUS disk drive
203 up UNIBUS storage module drive
021014a6 204 ht TE16,TU45,TU77 on MASSBUS
3dd800de 205 kra storage module on a KDB50
6f055ecd 206 mt TU78 on MASSBUS
021014a6 207 hk RK07 on UNIBUS
3dd800de 208 ra storage module on a MSCP-compatible UNIBUS controller
6f055ecd
KM
209 rb storage module on a 730 IDC
210 rl RL02 on UNIBUS
021014a6 211 tm TM11 emulation tape drives on UNIBUS
3dd800de 212 tms TMSCP-compatible tape
021014a6 213 ts TS11 on UNIBUS
6f055ecd 214 ut UNIBUS TU45 emulator
021014a6
KM
215.fi
216.PP
be1d37d3
MK
217For example,
218to boot from a file system which starts at cylinder 0
219of unit 0 of a MASSBUS disk, type \*(lqhp(0,0)vmunix\*(rq
3dd800de
MK
220to the boot prompt; \*(lqhp(2,0,1,0)vmunix\*(rq
221would specify drive 1 on MASSBUS adaptor 2;
222\*(lqup(0,0)vmunix\*(rq would specify
be1d37d3 223a UNIBUS drive, \*(lqhk(0,0)vmunix\*(rq would specify
3dd800de
MK
224an RK07 disk drive, \*(lqra(1,0,0,0)vmunix\*(rq would specify a
225UDA50 disk drive on a second UNIBUS, and \*(lqrb(0,0)vmunix\*(rq would specify a
be1d37d3 226disk on a 730 IDC.
3dd800de
MK
227For tapes, the minor device number gives a file offset;
228\*(lqmt(1,2,3,4)\*(rq would specify the fifth file on slave 3 of the formatter
229at \*(lqdrive\*(rq 2 on mba 1.
021014a6 230.PP
13e92b42
MK
231On an 11/750 with patchable control store,
232microcode patches will be installed by
233.I boot
234if the file
235.I psc750.bin
236exists in the root of the filesystem from which the system is booted.
237.PP
021014a6 238In an emergency, the bootstrap methods described in the paper
be1d37d3 239``Installing and Operating 4.3bsd'' can be used
021014a6
KM
240to boot from a distribution tape.
241.SH FILES
3dd800de 242.ta \w'/usr/mdec/bootxx 'u
021014a6
KM
243/vmunix system code
244.br
245/boot system bootstrap
be1d37d3
MK
246.br
247/usr/mdec/xxboot sector-0 boot block for 750, xx is disk type
248.br
249/usr/mdec/bootxx second-stage boot for 750, xx is disk type
250.br
13e92b42 251/pcs750.bin microcode patch file on 750
021014a6 252.SH "SEE ALSO"
be1d37d3 253arff(8V),
6f055ecd 254crash(8V),
3dd800de 255disklabel(8),
6f055ecd 256fsck(8),
be1d37d3 257halt(8),
6f055ecd
KM
258init(8),
259rc(8),
b77763cc
MK
260shutdown(8),
261syslogd(8)