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