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