xref: /original-bsd/share/man/man4/man4.hp300/rd.4 (revision 3705696b)
1.\" Copyright (c) 1990, 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Systems Programming Group of the University of Utah Computer
6.\" Science Department.
7.\"
8.\" %sccs.include.redist.man%
9.\"
10.\"     @(#)rd.4	8.1 (Berkeley) 06/09/93
11.\"
12.Dd
13.Dt RD 4 hp300
14.Os
15.Sh NAME
16.Nm rd
17.Nd
18.Tn CS/80
19disk interface
20.Sh SYNOPSIS
21.Cd "master hpib? at scode?"
22.Cd "disk rd? at hpib? slave?"
23.Sh DESCRIPTION
24This is a generic
25.Tn CS/80
26disk driver.
27Only a small number of possible
28.Tn CS/80
29drives are supported,
30but others can easily be added by adding tables to the driver.
31It is a typical block-device driver; see
32.Xr physio 4 .
33.Pp
34The script
35.Xr MAKEDEV 8
36should be used to create the
37.Nm rd
38special files; consult
39.Xr mknod 8
40if a special file needs to be made manually.
41.Sh DISK SUPPORT
42The driver interrogates the controller
43to determine the type of drive attached.
44The driver recognizes the following drives:
457912, 7914, 7933, 7936, 7937, 7945,
46.Tn 757A/B ,
47.Tn 7958A/B ,
48.Tn 7959B,
497962, 7963, 9122, 9134, 7912, 7936,
50and 9122,
51not all of which have been tested.
52Special file names begin with
53.Sq Li rd
54and
55.Sq Li rrd
56for the block and character files respectively. The second
57component of the name, a drive unit number in the range of zero to
58seven, is represented by a
59.Sq Li ?
60in the disk layouts below. The last component of the name is the
61file system partition
62and is designated
63by a letter from
64.Sq Li a
65to
66.Sq Li h
67which also corresponds to a minor device number sets: zero to seven,
68eight to 15, 16 to 23 and so forth for drive zero, drive two and drive
69three respectively
70(see physio 4 ) .
71The location and size (in sectors) of the
72partitions for these drives:
73.Bl -column header diskx undefined length
74.Tn 7945/7946 No partitions:
75.Sy	disk	start	length	cyls
76	rd?a	112	15904	1-142
77	rd?b	16016	20160	143-322
78	rd?c	0	108416	0-967
79	rd?d	16016	40320	143-502
80	rd?e	undefined
81	rd?f	undefined
82	rd?g	36176	72240	323-967
83	rd?h	56336	52080	503-967
84
85.Tn 9134D No partitions:
86.Sy	disk	start	length	cyls
87	rd?a	96	15936	1-166
88	rd?b	16032	13056	167-302
89	rd?c	0	29088	0-302
90	rd?d	undefined
91	rd?e	undefined
92	rd?f	undefined
93	rd?g	undefined
94	rd?h	undefined
95
96.Tn 9122S No partitions:
97.Sy	disk	start	length	cyls
98	rd?a	undefined
99	rd?b	undefined
100	rd?c	0	1232	0-76
101	rd?d	undefined
102	rd?e	undefined
103	rd?f	undefined
104	rd?g	undefined
105	rd?h	undefined
106
107.Tn 7912P No partitions:
108.Sy	disk	start	length	cyls
109	rd?a	0	15904	0-70
110	rd?b	16128	22400	72-171
111	rd?c	0	128128	0-571
112	rd?d	16128	42560	72-261
113	rd?e	undefined
114	rd?f	undefined
115	rd?g	38528	89600	172-571
116	rd?h	58688	69440	262-571
117
118.Tn 7914CT/P No partitions:
119.Sy	disk	start	length	cyls
120	rd?a	224	15904	1-71
121	rd?b	16128	40320	72-251
122	rd?c	0	258048	0-1151
123	rd?d	16128	64960	72-361
124	rd?e	81088	98560	362-801
125	rd?f	179648	78400	802-1151
126	rd?g	56448	201600	252-1151
127	rd?h	81088	176960	362-1151
128
129.Tn 7958A No partitions:
130.Sy	disk	start	length	cyls
131	rd?a	252	16128	1-64
132	rd?b	16380	32256	65-192
133	rd?c	0	255276	0-1012
134	rd?d	16380	48384	65-256
135	rd?e	64764	100800	257-656
136	rd?f	165564	89712	657-1012
137	rd?g	48636	206640	193-1012
138	rd?h	64764	190512	257-1012
139
140.Tn 7957A No partitions:
141.Sy	disk	start	length	cyls
142	rd?a	154	16016	1-104
143	rd?b	16170	24640	105-264
144	rd?c	0	159544	0-1035
145	rd?d	16170	42350	105-379
146	rd?e	58520	54824	380-735
147	rd?f	113344	46200	736-1035
148	rd?g	40810	118734	265-1035
149	rd?h	58520	101024	380-1035
150
151.Tn 7933H No partitions:
152.Sy	disk	start	length	cyls
153	rd?a	598	16146	1-27
154	rd?b	16744	66976	28-139
155	rd?c	0	789958	0-1320
156	rd?d	83720	16146	140-166
157	rd?e	99866	165646	167-443
158	rd?f	265512	165646	444-720
159	rd?g	83720	706238	140-1320
160	rd?h	431158	358800	721-1320
161
162.Tn 9134L No partitions:
163.Sy	disk	start	length	cyls
164	rd?a	80	15920	1-199
165	rd?b	16000	20000	200-449
166	rd?c	0	77840	0-972
167	rd?d	16000	32000	200-599
168	rd?e	undefined
169	rd?f	undefined
170	rd?g	36000	41840	450-972
171	rd?h	48000	29840	600-972
172
173.Tn 7936H No partitions:
174.Sy	disk	start	length	cyls
175	rd?a	861	16359	1-19
176	rd?b	17220	67158	20-97
177	rd?c	0	600978	0-697
178	rd?d	84378	16359	98-116
179	rd?e	100737	120540	117-256
180	rd?f	220416	120540	256-395
181	rd?g	84378	516600	98-697
182	rd?h	341817	259161	397-697
183
184.Tn 7937H No partitions:
185.Sy	disk	start	length	cyls
186	rd?a	1599	15990	1-10
187	rd?b	17589	67158	11-52
188	rd?c	0	1116102	0-697
189	rd?d	84747	15990	53-62
190	rd?e	100737	246246	63-216
191	rd?f	346983	246246	217-370
192	rd?g	84747	1031355	53-697
193	rd?h	593229	522873	371-697
194
195.Tn 7957B/7961B No partitions:
196.Sy	disk	start	length	cyls
197	rd?a	126	16002	1-127
198	rd?b	16128	32760	128-387
199	rd?c	0	159894	0-1268
200	rd?d	16128	49140	128-517
201	rd?e	65268	50400	518-917
202	rd?f	115668	44226	918-1268
203	rd?g	48888	111006	388-1268
204	rd?h	65268	94626	518-1268
205
206.Tn 7958B/7962B No partitions:
207.Sy	disk	start	length	cyls
208	rd?a	378	16254	1-43
209	rd?b	16632	32886	44-130
210	rd?c	0	297108	0-785
211	rd?d	16632	49140	44-173
212	rd?e	65772	121716	174-495
213	rd?f	187488	109620	496-785
214	rd?g	49518	247590	131-785
215	rd?h	65772	231336	174-785
216
217.Tn 7959B/7963B No partitions:
218.Sy	disk	start	length	cyls
219	rd?a	378	16254	1-43
220	rd?b	16632	49140	44-173
221	rd?c	0	594216	0-1571
222	rd?d	16632	65772	44-217
223	rd?e	82404	303912	218-1021
224	rd?f	386316	207900	1022-1571
225	rd?g	65772	528444	174-1571
226	rd?h	82404	511812	218-1571
227.El
228.Pp
229The eight partitions as given support four basic, non-overlapping layouts,
230though not all partitions exist on all drive types.
231.Pp
232In the first layout there are three partitions and a ``bootblock'' area.
233The bootblock area is at the beginning of the disk and holds
234the standalone disk boot program.
235The
236.Pa rd?a
237partition is for the root file system,
238.Pa rd?b
239is a paging/swapping area, and
240.Pa rd?g
241is for everything else.
242.Pp
243The second layout is the same idea,
244but has a larger paging/swapping partition
245.Pq Pa rd?d
246and
247a smaller ``everything else'' partition
248.Pq Pa rd?h .
249This layout is better for environments which run many large processes.
250.Pp
251The third layout is a variation of the second,
252but breaks the
253.Pa rd?h
254partition into two partitions,
255.Pa rd?e
256and
257.Pa rd?f .
258.Pp
259The final layout is intended for a large, single file system second disk.
260It is also used when writing out the boot program since it is the only
261partition mapping the bootblock area.
262.Sh FILES
263.Bl -tag -width /dev/rrd[0-7][a-h] -compact
264.It Pa /dev/rd[0-7][a-h]
265block files
266.It Pa /dev/rrd[0-7][a-h]
267raw files
268.El
269.Sh DIAGNOSTICS
270.Bl -diag
271.It "rd%d err: v%d u%d, R0x%x F0x%x A0x%x I0x%x, block %d"
272An unrecoverable data error occurred during transfer of the
273specified block on the specified disk.
274.El
275.Sh BUGS
276The current disk partitioning is totally bogus.
277.Tn CS/80
278drives have 256 byte sectors which are mapped to 512 byte
279``sectors'' by the driver.
280Since some
281.Tn CS/80
282drives have an odd number of sectors per cylinder,
283the disk geometry used is not always accurate.
284.Pp
285The partition tables for the file systems should be read off of each pack,
286as they are never quite what any single installation would prefer,
287and this would make packs more portable.
288.Pp
289A program to analyze the logged error information (even in its
290present reduced form) is needed.
291