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