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