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