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