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