writing 16 bytes per device isn't kulturny. Sam had the right idea.
[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.\"
ca65dd63 5.\" @(#)boot_vax.8 6.5 (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
be1d37d3 21at location zero and transferring to the entry point.
021014a6
KM
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.
13e92b42
MK
33Reboot causes the disks to be synced and allows the system
34to perform other shutdown activities such as resynchronizing
35hardware time-of-day clocks.
36A multi-user reboot (as described below) is then initiated.
37This causes a system to be
021014a6
KM
38booted and an automatic disk check to be performed. If all this succeeds
39without incident, the system is then brought up for many users.
40.PP
41Options to reboot are:
42.TP
43.B \-n
44option avoids the sync. It can be used if a disk or the processor
6f055ecd 45is on fire.
021014a6
KM
46.TP
47.B \-q
48reboots quickly and ungracefully, without shutting down running
49processes first.
50.PP
b77763cc
MK
51.I Reboot
52normally logs the reboot using
53.IR syslog (8)
54and places a shutdown record in the login accounting file
55/usr/adm/wtmp.
56These actions are inhibited if the
57.B \-n
58or
59.B \-q
60options are present.
61.PP
021014a6
KM
62.B "Power fail and crash recovery."
63Normally, the system will reboot itself at power-up or after crashes.
64Provided the auto-restart is enabled on the machine front panel,
be1d37d3
MK
65an automatic consistency check of the file systems will be performed,
66and unless this fails, the system will resume multi-user operations.
021014a6
KM
67.PP
68.B Cold starts.
69These are processor type dependent.
70On an 11/780, there are two floppy files for each disk controller,
71both of which cause boots from unit 0 of the root file system
72of a controller located on mba0 or uba0.
73One gives a single user shell, while the other invokes the multi-user
74automatic reboot. Thus these files are HPS and HPM for the single
75and multi-user boot from MASSBUS RP06/RM03/RM05 disks,
76UPS and UPM for UNIBUS storage module controller and disks
77such as the EMULEX SC-21
78and AMPEX 9300 pair, or HKS and HKM for RK07 disks.
be1d37d3
MK
79There is also a script for booting from the default device,
80which is normally a copy of one of the standard multi-user boot scripts,
81but which may be modified to perform other actions
82or to boot from a different unit.
83The situation on the 8600 is similar, with scripts loaded from the console RL02.
021014a6
KM
84.PP
85Giving the command
86.IP
87>>>BOOT HPM
88.LP
89Would boot the system from (e.g.) an RP06 and run the automatic consistency
90check as described in
91.IR fsck (8).
92(Note that it may
93be necessary to type control-P
be1d37d3 94and halt the processor
021014a6
KM
95to gain the attention of the LSI-11 before getting the >>> prompt.)
96The command
97.IP
98>>>BOOT ANY
99.LP
100invokes a version of the boot program in a way which allows you to
101specify any system as the system to be booted.
102It reads from the console a device specification (see below) followed
103immediately by a pathname.
104.PP
be1d37d3 105The scripts may be modified for local configuration if necessary.
ca65dd63
KB
106The flags are placed in register 11 (as defined in
107.IR <sys/reboot.h> ).
108The boot device is specified in register 10. This register is used
109as four one-byte fields; from least to most significant, they are the
110boot device type (the device major number), disk partition, drive unit,
111and adaptor number (UNIBUS or MASSBUS as appropriate).
be1d37d3 112.PP
021014a6
KM
113On an 11/750, the reset button will boot from the device
114selected by the front panel boot device switch. In systems
115with RK07's, position B normally selects the RK07 for boot.
116This will boot multi-user. To boot from RK07 with boot flags you
117may specify
118.IP
119>>>B/\fIn\fR DMA0
120.LP
121where, giving a \fIn\fR of 1 causes the boot program
122to ask for the name of the system to be bootstrapped,
123giving a \fIn\fR of 2 causes the boot program to come up single
124user, and a \fIn\fR of 3 causes both of these actions to occur.
be1d37d3
MK
125The ``DM'' specifies RK07, the ``A'' represents the adaptor number (UNIBUS
126or MASSBUS), and the ``0'' is the drive unit number.
127Other disk types which may be used are DB (MASSBUS), DD (TU58),
128and DU (UDA-50/RA disk).
129A non-zero disk partition can be used by adding (partition times 1000 hex)
130to \fIn\fR.
021014a6
KM
131.PP
132The 11/750 boot procedure uses the boot roms to load block 0 off of
133the specified device. The /usr/mdec directory contains a number
134of bootstrap programs for the various disks which should be placed
6f055ecd
KM
135in a new pack automatically by
136.IR newfs (8)
137when the ``a'' partition file system on the pack is created.
021014a6 138.PP
be1d37d3 139On any processor, the
021014a6
KM
140.I boot
141program
be1d37d3
MK
142finds the corresponding file on the given device
143.RI ( vmunix
144by default), loads that file
021014a6
KM
145into memory location zero, and starts the program at the entry address
146specified in the program header (after clearing off the high bit
be1d37d3 147of the specified entry address).
021014a6 148.PP
be1d37d3
MK
149The file specifications used with \*(lqBOOT ANY\*(rq or \*(lqB/3\*(rq
150are of the form:
021014a6 151.IP
be1d37d3 152device(unit,minor)
021014a6
KM
153.PP
154where
155.I device
156is the type of the device to be searched,
157.I unit
be1d37d3
MK
158is 8 * the mba or uba number plus
159the unit number of the disk or tape,
021014a6
KM
160and
161.I minor
be1d37d3
MK
162is the disk partition or tape file number.
163Normal line editing characters can be used when typing the file specification.
021014a6
KM
164The following list of supported devices may vary from installation to
165installation:
166.ta 5 10
167.nf
6f055ecd
KM
168 hp MASSBUS disk drive
169 up UNIBUS storage module drive
021014a6 170 ht TE16,TU45,TU77 on MASSBUS
6f055ecd 171 mt TU78 on MASSBUS
021014a6 172 hk RK07 on UNIBUS
6f055ecd
KM
173 ra storage module on a UDA50
174 rb storage module on a 730 IDC
175 rl RL02 on UNIBUS
021014a6
KM
176 tm TM11 emulation tape drives on UNIBUS
177 ts TS11 on UNIBUS
6f055ecd 178 ut UNIBUS TU45 emulator
021014a6
KM
179.fi
180.PP
be1d37d3
MK
181For example,
182to boot from a file system which starts at cylinder 0
183of unit 0 of a MASSBUS disk, type \*(lqhp(0,0)vmunix\*(rq
184to the boot prompt; \*(lqup(0,0)vmunix\*(rq would specify
185a UNIBUS drive, \*(lqhk(0,0)vmunix\*(rq would specify
186an RK07 disk drive, \*(lqra(0,0)vmunix\*(rq would specify a
187UDA50 disk drive, and \*(lqrb(0,0)vmunix\*(rq would specify a
188disk on a 730 IDC.
021014a6
KM
189For tapes, the minor device number gives a file offset.
190.PP
13e92b42
MK
191On an 11/750 with patchable control store,
192microcode patches will be installed by
193.I boot
194if the file
195.I psc750.bin
196exists in the root of the filesystem from which the system is booted.
197.PP
021014a6 198In an emergency, the bootstrap methods described in the paper
be1d37d3 199``Installing and Operating 4.3bsd'' can be used
021014a6
KM
200to boot from a distribution tape.
201.SH FILES
be1d37d3 202.ta \w'/usr/mdec/installboot 'u
021014a6
KM
203/vmunix system code
204.br
205/boot system bootstrap
be1d37d3
MK
206.br
207/usr/mdec/xxboot sector-0 boot block for 750, xx is disk type
208.br
209/usr/mdec/bootxx second-stage boot for 750, xx is disk type
210.br
211/usr/mdec/installboot program to install boot blocks on 750
13e92b42
MK
212.br
213/pcs750.bin microcode patch file on 750
021014a6 214.SH "SEE ALSO"
be1d37d3 215arff(8V),
6f055ecd
KM
216crash(8V),
217fsck(8),
be1d37d3 218halt(8),
6f055ecd 219init(8),
be1d37d3 220newfs(8),
6f055ecd 221rc(8),
b77763cc
MK
222shutdown(8),
223syslogd(8)