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