]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/doc/smm/01.setup/1.t
Re-add opencsd as a vendor import from the dist directory
[FreeBSD/FreeBSD.git] / share / doc / smm / 01.setup / 1.t
1 .\" Copyright (c) 1988, 1993 The Regents of the University of California.
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\"    may be used to endorse or promote products derived from this software
14 .\"    without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .\"     @(#)1.t 8.1 (Berkeley) 7/27/93
29 .\"
30 .ds lq ``
31 .ds rq ''
32 .ds LH "Installing/Operating \*(4B
33 .ds RH Introduction
34 .ds CF \*(Dy
35 .LP
36 .bp
37 .Sh 1 "Introduction"
38 .PP
39 This document explains how to install the \*(4B Berkeley
40 version of UNIX on your system.
41 The filesystem format is compatible with \*(Ps
42 and it will only be necessary for you to do a full bootstrap
43 procedure if you are installing the release on a new machine.
44 The object file formats are completely different from the System
45 V release, so the most straightforward procedure for upgrading
46 a System V system is to do a full bootstrap.
47 .PP
48 The full bootstrap procedure
49 is outlined in section 2; the process starts with copying a filesystem
50 image onto a new disk.
51 This filesystem is then booted and used to extract the remainder of the
52 system binaries and sources from the archives on the tape(s).
53 .PP
54 The technique for upgrading a \*(Ps system is described
55 in section 3 of this document.
56 The upgrade procedure involves extracting system binaries
57 onto new root and
58 .Pn /usr
59 filesystems and merging local
60 configuration files into the new system.
61 User filesystems may be upgraded in place.
62 Most \*(Ps binaries may be used with \*(4B in the course
63 of the conversion.
64 It is desirable to recompile local sources after the conversion,
65 as the new compiler (GCC) provides superior code optimization.
66 Consult section 3.5 for a description of some of the differences
67 between \*(Ps and \*(4B.
68 .Sh 2 "Distribution format"
69 .PP
70 The distribution comes in two formats:
71 .DS
72 (3)\0\0 6250bpi 2400' 9-track magnetic tapes, or
73 (1)\0\0 8mm Exabyte tape
74 .DE
75 .PP
76 If you have the facilities, we \fBstrongly\fP recommend copying the
77 magnetic tape(s) in the distribution kit to guard against disaster.
78 The tapes contain \*(Bb-byte records.
79 There are interspersed tape marks;
80 end-of-tape is signaled by a double end-of-file.
81 The first file on the tape is architecture dependent.
82 Additional files on the tape(s)
83 contain tape archive images of the system binaries and sources (see
84 .Xr tar (1)\**).
85 .FS
86 References of the form \fIX\fP(Y) mean the entry named
87 \fIX\fP in section Y of the ``UNIX Programmer's Manual''.
88 .FE
89 See the tape label for a description of the contents
90 and format of each individual tape.
91 .Sh 2 "UNIX device naming"
92 .PP
93 Device names have a different syntax depending on whether you are talking
94 to the standalone system or a running UNIX kernel.
95 The standalone system syntax is currently architecture dependent and is
96 described in the various architecture specific sections as applicable.
97 When not running standalone, devices are available via files in the
98 .Pn /dev/
99 directory.
100 The file name typically encodes the device type, its logical unit and
101 a partition within that unit.
102 For example,
103 .Pn /dev/sd2b
104 refers to the second partition (``b'') of
105 SCSI (``sd'') drive number ``2'', while
106 .Pn /dev/rmt0
107 refers to the raw (``r'') interface of 9-track tape (``mt'') unit ``0''.
108 .PP
109 The mapping of physical addressing information (e.g. controller, target)
110 to a logical unit number is dependent on the system configuration.
111 In all simple cases, where only a single controller is present, a drive
112 with physical unit number 0 (e.g., as determined by its unit
113 specification, either unit plug or other selection mechanism)
114 will be called unit 0 in its UNIX file name.
115 This is not, however, strictly
116 necessary, since the system has a level of indirection in this naming.
117 If there are multiple controllers, the disk unit numbers will normally
118 be counted sequentially across controllers.  This can be taken
119 advantage of to make the system less dependent on the interconnect
120 topology, and to make reconfiguration after hardware failure easier.
121 .PP
122 Each UNIX physical disk is divided into at most 8 logical disk partitions,
123 each of which may occupy any consecutive cylinder range on the physical
124 device.  The cylinders occupied by the 8 partitions for each drive type
125 are specified initially in the disk description file
126 .Pn /etc/disktab
127 (c.f.
128 .Xr disktab (5)).
129 The partition information and description of the
130 drive geometry are written in one of the first sectors of each disk with the
131 .Xr disklabel (8)
132 program.  Each partition may be used for either a
133 raw data area such as a paging area or to store a UNIX filesystem.
134 It is conventional for the first partition on a disk to be used
135 to store a root filesystem, from which UNIX may be bootstrapped.
136 The second partition is traditionally used as a paging area, and the
137 rest of the disk is divided into spaces for additional ``mounted
138 filesystems'' by use of one or more additional partitions.
139 .Sh 2 "UNIX devices: block and raw"
140 .PP
141 UNIX makes a distinction between ``block'' and ``raw'' (character)
142 devices.  Each disk has a block device interface where
143 the system makes the device byte addressable and you can write
144 a single byte in the middle of the disk.  The system will read
145 out the data from the disk sector, insert the byte you gave it
146 and put the modified data back.  The disks with the names
147 .Pn /dev/xx0[a-h] ,
148 etc., are block devices.
149 There are also raw devices available.
150 These have names like
151 .Pn /dev/rxx0[a-h] ,
152 the ``r'' here standing for ``raw''.
153 Raw devices bypass the buffer cache and use DMA directly to/from
154 the program's I/O buffers;
155 they are normally restricted to full-sector transfers.
156 In the bootstrap procedures we
157 will often suggest using the raw devices, because these tend
158 to work faster.
159 Raw devices are used when making new filesystems,
160 when checking unmounted filesystems,
161 or for copying quiescent filesystems.
162 The block devices are used to mount filesystems.
163 .PP
164 You should be aware that it is sometimes important whether to use
165 the character device (for efficiency) or not (because it would not
166 work, e.g. to write a single byte in the middle of a sector).
167 Do not change the instructions by using the wrong type of device
168 indiscriminately.