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