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