Commit | Line | Data |
---|---|---|
70567b1c | 1 | .\" Copyright (c) 1980, 1991 The Regents of the University of California. |
61dbfbf1 | 2 | .\" All rights reserved. |
6f5c285b | 3 | .\" |
31b39933 | 4 | .\" %sccs.include.redist.man% |
61dbfbf1 | 5 | .\" |
70567b1c | 6 | .\" @(#)boot_tahoe.8 6.4 (Berkeley) %G% |
6f5c285b | 7 | .\" |
70567b1c CL |
8 | .Dd |
9 | .Dt REBOOT 8 | |
10 | .Os BSD 4 | |
11 | .Sh NAME | |
12 | .Nm reboot | |
13 | .Nd | |
14 | .Tn UNIX | |
15 | bootstrapping procedures | |
16 | .Sh SYNOPSIS | |
17 | .Nm reboot | |
18 | .Op Fl n | |
19 | .Op Fl q | |
20 | .Sh DESCRIPTION | |
21 | .Pp | |
22 | .Tn UNIX | |
23 | is started by placing it in memory | |
6f5c285b MK |
24 | at location zero and transferring to the entry point. |
25 | Since the system is not reenterable, | |
26 | it is necessary to read it in from disk or tape | |
27 | each time it is to be bootstrapped. | |
70567b1c CL |
28 | .Pp |
29 | .Sy Rebooting a running system . | |
30 | When a | |
31 | .Tn UNIX | |
32 | is running and a reboot is desired, | |
33 | .Xr shutdown 8 | |
6f5c285b MK |
34 | is normally used. |
35 | If there are no users then | |
70567b1c | 36 | .Nm reboot |
6f5c285b MK |
37 | can be used. |
38 | Reboot causes the disks to be synced and allows the system | |
39 | to perform other shutdown activities such as resynchronizing | |
40 | hardware time-of-day clocks. | |
41 | A multi-user reboot (as described below) is then initiated. | |
42 | This causes a system to be | |
43 | booted and an automatic disk check to be performed. If all this succeeds | |
44 | without incident, the system is then brought up for many users. | |
70567b1c | 45 | .Pp |
6f5c285b | 46 | Options to reboot are: |
70567b1c CL |
47 | .Bl -tag -width Ds |
48 | .It Fl n | |
6f5c285b MK |
49 | option avoids the sync. It can be used if a disk or the processor |
50 | is on fire. | |
70567b1c | 51 | .It Fl q |
6f5c285b MK |
52 | reboots quickly and ungracefully, without shutting down running |
53 | processes first. | |
70567b1c CL |
54 | .El |
55 | .Pp | |
56 | .Nm Reboot | |
6f5c285b | 57 | normally logs the reboot using |
70567b1c | 58 | .Xr syslog 8 |
6f5c285b | 59 | and places a shutdown record in the login accounting file |
70567b1c | 60 | .Pa /var/log/wtmp. |
6f5c285b | 61 | These actions are inhibited if the |
70567b1c | 62 | .Fl n |
6f5c285b | 63 | or |
70567b1c | 64 | .Fl q |
6f5c285b | 65 | options are present. |
70567b1c CL |
66 | .Pp |
67 | .Sy Power fail and crash recovery. | |
6f5c285b MK |
68 | Normally, the system will reboot itself at power-up or after crashes. |
69 | An automatic consistency check of the file systems will be performed | |
70 | as described in | |
70567b1c | 71 | .Xr fsck 8 . |
6f5c285b | 72 | and unless this fails, the system will resume multi-user operations. |
70567b1c CL |
73 | .Pp |
74 | .Sy Cold starts . | |
6f5c285b | 75 | These are processor-type dependent. |
70567b1c CL |
76 | On the |
77 | .Tn CCI | |
78 | Power 6/32 and related processors, | |
6f5c285b MK |
79 | the system will do a standard autoboot from drive 0 |
80 | upon power-up or reset. | |
70567b1c CL |
81 | This automatic boot may be cancelled by typing a |
82 | .Ql \&# | |
6f5c285b | 83 | in the first few seconds after reset. |
70567b1c CL |
84 | This enters console mode; the console prompt is |
85 | .Ql > | |
86 | or | |
87 | .Ql \&# . | |
88 | The boot flags can be set to any hexadecimal value | |
89 | .Fl n | |
90 | with the command | |
91 | .Pp | |
92 | .Bd -filled -offset indent -compact | |
93 | .Li \&#> p23 | |
94 | .Ar n . | |
95 | .Ed | |
96 | .Pp | |
6f5c285b MK |
97 | The default device may be examined or set; see the Diagnostics and Debugging |
98 | manual for the processor for details on device naming and syntax. | |
99 | After setting the boot flags and/or device, | |
100 | a bootstrap sequence can be initiated with | |
70567b1c CL |
101 | .Pp |
102 | .Dl #> fb | |
103 | .Pp | |
6f5c285b | 104 | A specific device or bootstrap file may be used; for example, |
70567b1c CL |
105 | .Pp |
106 | .Dl \&#> \&fb xfd(1,0) | |
107 | .Pp | |
108 | would boot from the `a' partition on | |
109 | .Tn XFD | |
110 | drive 1. | |
111 | .Pp | |
6f5c285b | 112 | The file specifications used for the boostrap |
70567b1c CL |
113 | when loaded with the |
114 | .Dq askme | |
115 | flag | |
6f5c285b MK |
116 | (register 23 set to 1 or 3) |
117 | are of the form: | |
70567b1c CL |
118 | .Pp |
119 | .Dl device(adaptor,controller,unit,minor) | |
120 | .Pp | |
6f5c285b | 121 | where |
70567b1c | 122 | .Ar device |
6f5c285b | 123 | is the type of the device to be searched, |
70567b1c CL |
124 | .Ar adaptor |
125 | is number of the | |
126 | .Tn VERSAbus | |
127 | (or | |
128 | .Tn VMEbus ) | |
129 | to which the device is attached, | |
130 | .Ar controller | |
6f5c285b | 131 | is the unit number of the controller on that buss, |
70567b1c | 132 | .Ar unit |
6f5c285b MK |
133 | is the unit number of the disk or tape, |
134 | and | |
70567b1c | 135 | .Ar minor |
6f5c285b MK |
136 | is the disk partition or tape file number. |
137 | Leading adaptor or controller numbers default to 0. | |
138 | Normal line editing characters can be used when typing the file specification. | |
139 | The following list of supported devices may vary from installation to | |
140 | installation: | |
70567b1c CL |
141 | .Pp |
142 | .Bd -unfilled -offset indent -compact | |
143 | dk SMD or ESDI disks on VDDC or SMD-E | |
144 | cy tape on Ciprico Tapemaster controller | |
145 | .Ed | |
146 | .Pp | |
6f5c285b MK |
147 | For example, |
148 | to boot from a file system which starts at cylinder 0 | |
70567b1c CL |
149 | of unit 0 of an |
150 | .Tn SMD-E | |
151 | disk, type | |
152 | .Ql dk(0,0)vmunix | |
153 | to the boot prompt; | |
154 | .Ql dk(2,1,0)vmunix | |
155 | would specify drive 1 on | |
156 | .Tn SMD-E | |
157 | controller 2. | |
158 | .Pp | |
6f5c285b | 159 | In an emergency, the bootstrap methods described in the paper |
70567b1c CL |
160 | .%T "Installing and Operating 4.3 BSD-tahoe UNIX on the Tahoe" |
161 | can be used | |
6f5c285b | 162 | to boot from a distribution tape. |
70567b1c CL |
163 | .Sh FILES |
164 | .Bl -tag -width /vmunix -compact | |
165 | .It Pa /vmunix | |
166 | system code | |
167 | .It Pa /boot | |
168 | system bootstrap | |
169 | .El | |
170 | .Sh SEE ALSO | |
171 | .Xr crash 8 , | |
172 | .Xr disklabel 8 , | |
173 | .Xr fsck 8 , | |
174 | .Xr halt 8 , | |
175 | .Xr init 8 , | |
176 | .Xr rc 8 , | |
177 | .Xr shutdown 8 , | |
178 | .Xr syslogd 8 | |
179 | .Sh BUGS | |
6f5c285b | 180 | The disklabel format used by some versions of the console processor |
70567b1c CL |
181 | is different than the format used by |
182 | .Tn UNIX | |
183 | and the bootstrap. | |
184 | .Sh HISTORY | |
185 | The | |
186 | .Nm | |
187 | command | |
188 | .Ud |