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 | .\" | |
d730f4d7 | 5 | .\" @(#)boot_vax.8 6.1 (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 | |
21 | at location zero and transferring to zero. | |
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 | |
48 | .B "Power fail and crash recovery." | |
49 | Normally, the system will reboot itself at power-up or after crashes. | |
50 | Provided the auto-restart is enabled on the machine front panel, | |
51 | an automatic consistency check of the file systems will be performed | |
52 | then and unless this fails the system will resume multi-user operations. | |
53 | .PP | |
54 | .B Cold starts. | |
55 | These are processor type dependent. | |
56 | On an 11/780, there are two floppy files for each disk controller, | |
57 | both of which cause boots from unit 0 of the root file system | |
58 | of a controller located on mba0 or uba0. | |
59 | One gives a single user shell, while the other invokes the multi-user | |
60 | automatic reboot. Thus these files are HPS and HPM for the single | |
61 | and multi-user boot from MASSBUS RP06/RM03/RM05 disks, | |
62 | UPS and UPM for UNIBUS storage module controller and disks | |
63 | such as the EMULEX SC-21 | |
64 | and AMPEX 9300 pair, or HKS and HKM for RK07 disks. | |
65 | .PP | |
66 | Giving the command | |
67 | .IP | |
68 | >>>BOOT HPM | |
69 | .LP | |
70 | Would boot the system from (e.g.) an RP06 and run the automatic consistency | |
71 | check as described in | |
72 | .IR fsck (8). | |
73 | (Note that it may | |
74 | be necessary to type control-P | |
75 | to gain the attention of the LSI-11 before getting the >>> prompt.) | |
76 | The command | |
77 | .IP | |
78 | >>>BOOT ANY | |
79 | .LP | |
80 | invokes a version of the boot program in a way which allows you to | |
81 | specify any system as the system to be booted. | |
82 | It reads from the console a device specification (see below) followed | |
83 | immediately by a pathname. | |
84 | .PP | |
85 | On an 11/750, the reset button will boot from the device | |
86 | selected by the front panel boot device switch. In systems | |
87 | with RK07's, position B normally selects the RK07 for boot. | |
88 | This will boot multi-user. To boot from RK07 with boot flags you | |
89 | may specify | |
90 | .IP | |
91 | >>>B/\fIn\fR DMA0 | |
92 | .LP | |
93 | where, giving a \fIn\fR of 1 causes the boot program | |
94 | to ask for the name of the system to be bootstrapped, | |
95 | giving a \fIn\fR of 2 causes the boot program to come up single | |
96 | user, and a \fIn\fR of 3 causes both of these actions to occur. | |
97 | .PP | |
98 | The 11/750 boot procedure uses the boot roms to load block 0 off of | |
99 | the specified device. The /usr/mdec directory contains a number | |
100 | of bootstrap programs for the various disks which should be placed | |
6f055ecd KM |
101 | in a new pack automatically by |
102 | .IR newfs (8) | |
103 | when the ``a'' partition file system on the pack is created. | |
021014a6 KM |
104 | .PP |
105 | On both processors, the | |
106 | .I boot | |
107 | program | |
108 | finds the corresponding file on the given device, loads that file | |
109 | into memory location zero, and starts the program at the entry address | |
110 | specified in the program header (after clearing off the high bit | |
111 | of the specified entry address.) | |
112 | Normal line editing characters can be used in specifying the pathname. | |
113 | .PP | |
6f055ecd KM |
114 | If you have a MASSBUS disk |
115 | and wish to boot off of a file | |
116 | system which starts at cylinder 0 | |
117 | of unit 0, you can type \*(lqhp(0,0)vmunix\*(rq | |
021014a6 | 118 | to the boot prompt; \*(lqup(0,0)vmunix\*(rq would specify |
6f055ecd KM |
119 | a UNIBUS drive, ``hk(0,0)vmunix'' would specify |
120 | an RK07 disk drive, ``ra(0,0)vmunix'' would specify a | |
121 | UDA50 disk drive, and ``rb(0,0)vmunix'' would specify a | |
122 | disk on a 730 IDC. | |
021014a6 KM |
123 | .PP |
124 | A device specification has the following form: | |
125 | .IP | |
126 | device(unit, minor) | |
127 | .PP | |
128 | where | |
129 | .I device | |
130 | is the type of the device to be searched, | |
131 | .I unit | |
132 | is 8* the mba or uba number plus | |
133 | the unit number of the device, | |
134 | and | |
135 | .I minor | |
136 | is the minor device index. | |
137 | The following list of supported devices may vary from installation to | |
138 | installation: | |
139 | .ta 5 10 | |
140 | .nf | |
6f055ecd KM |
141 | hp MASSBUS disk drive |
142 | up UNIBUS storage module drive | |
021014a6 | 143 | ht TE16,TU45,TU77 on MASSBUS |
6f055ecd | 144 | mt TU78 on MASSBUS |
021014a6 | 145 | hk RK07 on UNIBUS |
6f055ecd KM |
146 | ra storage module on a UDA50 |
147 | rb storage module on a 730 IDC | |
148 | rl RL02 on UNIBUS | |
021014a6 KM |
149 | tm TM11 emulation tape drives on UNIBUS |
150 | ts TS11 on UNIBUS | |
6f055ecd | 151 | ut UNIBUS TU45 emulator |
021014a6 KM |
152 | .fi |
153 | .PP | |
154 | For tapes, the minor device number gives a file offset. | |
155 | .PP | |
156 | In an emergency, the bootstrap methods described in the paper | |
6f055ecd | 157 | ``Installing and Operating 4.2bsd'' can be used |
021014a6 KM |
158 | to boot from a distribution tape. |
159 | .SH FILES | |
160 | .ta \w'/usr/mdec/mboot 'u | |
161 | /vmunix system code | |
162 | .br | |
163 | /boot system bootstrap | |
164 | .SH "SEE ALSO" | |
6f055ecd KM |
165 | crash(8V), |
166 | fsck(8), | |
167 | init(8), | |
168 | rc(8), | |
169 | shutdown(8), | |
170 | halt(8), | |
171 | newfs(8) |