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