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