1*28a4f359Swiz.\" $NetBSD: rd.4,v 1.12 2009/04/12 16:43:05 wiz Exp $ 29a6b94bdSmrg.\" 39a6b94bdSmrg.\" Copyright (c) 1990, 1991, 1993 49a6b94bdSmrg.\" The Regents of the University of California. All rights reserved. 561f28255Scgd.\" 661f28255Scgd.\" This code is derived from software contributed to Berkeley by 761f28255Scgd.\" the Systems Programming Group of the University of Utah Computer 861f28255Scgd.\" Science Department. 99a6b94bdSmrg.\" 1061f28255Scgd.\" Redistribution and use in source and binary forms, with or without 1161f28255Scgd.\" modification, are permitted provided that the following conditions 1261f28255Scgd.\" are met: 1361f28255Scgd.\" 1. Redistributions of source code must retain the above copyright 1461f28255Scgd.\" notice, this list of conditions and the following disclaimer. 1561f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright 1661f28255Scgd.\" notice, this list of conditions and the following disclaimer in the 1761f28255Scgd.\" documentation and/or other materials provided with the distribution. 18075022b3Sagc.\" 3. Neither the name of the University nor the names of its contributors 1961f28255Scgd.\" may be used to endorse or promote products derived from this software 2061f28255Scgd.\" without specific prior written permission. 2161f28255Scgd.\" 2261f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2361f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2461f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2561f28255Scgd.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2661f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2761f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2861f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2961f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3061f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3161f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3261f28255Scgd.\" SUCH DAMAGE. 3361f28255Scgd.\" 349a6b94bdSmrg.\" from: @(#)rd.4 8.1 (Berkeley) 6/9/93 3561f28255Scgd.\" 369a6b94bdSmrg.Dd June 9, 1993 3761f28255Scgd.Dt RD 4 hp300 3861f28255Scgd.Os 3961f28255Scgd.Sh NAME 4061f28255Scgd.Nm rd 4161f28255Scgd.Nd 4261f28255Scgd.Tn CS/80 4361f28255Scgddisk interface 4461f28255Scgd.Sh SYNOPSIS 45b4f31e9eSgmcgarry.Cd "rd* at hpibbus? slave?" 4661f28255Scgd.Sh DESCRIPTION 4761f28255ScgdThis is a generic 4861f28255Scgd.Tn CS/80 4961f28255Scgddisk driver. 5061f28255ScgdOnly a small number of possible 5161f28255Scgd.Tn CS/80 5261f28255Scgddrives are supported, 5361f28255Scgdbut others can easily be added by adding tables to the driver. 5461f28255ScgdIt is a typical block-device driver; see 5561f28255Scgd.Xr physio 4 . 5661f28255Scgd.Pp 5761f28255ScgdThe script 5861f28255Scgd.Xr MAKEDEV 8 5961f28255Scgdshould be used to create the 6061f28255Scgd.Nm rd 6161f28255Scgdspecial files; consult 6261f28255Scgd.Xr mknod 8 6361f28255Scgdif a special file needs to be made manually. 6461f28255Scgd.Sh DISK SUPPORT 6561f28255ScgdThe driver interrogates the controller 6661f28255Scgdto determine the type of drive attached. 6761f28255ScgdThe driver recognizes the following drives: 6861f28255Scgd7912, 7914, 7933, 7936, 7937, 7945, 6961f28255Scgd.Tn 757A/B , 7061f28255Scgd.Tn 7958A/B , 7161f28255Scgd.Tn 7959B , 7261f28255Scgd7962, 7963, 9122, 9134, 7912, 7936, 7361f28255Scgdand 9122, 7461f28255Scgdnot all of which have been tested. 7561f28255ScgdSpecial file names begin with 7661f28255Scgd.Sq Li rd 7761f28255Scgdand 7861f28255Scgd.Sq Li rrd 79*28a4f359Swizfor the block and character files respectively. 80*28a4f359SwizThe second component of the name, a drive unit number in the range 81*28a4f359Swizof zero to seven, is represented by a 822f782e07Swiz.Sq Li \&? 83*28a4f359Swizin the disk layouts below. 84*28a4f359SwizThe last component of the name is the file system partition and is 85*28a4f359Swizdesignated by a letter from 8661f28255Scgd.Sq Li a 8761f28255Scgdto 8861f28255Scgd.Sq Li h 8961f28255Scgdwhich also corresponds to a minor device number sets: zero to seven, 9061f28255Scgdeight to 15, 16 to 23 and so forth for drive zero, drive two and drive 9161f28255Scgdthree respectively 922f782e07Swiz(see 932f782e07Swiz.Xr physio 4 ) . 9461f28255ScgdThe location and size (in sectors) of the 9561f28255Scgdpartitions for these drives: 96c8a90aaaSjoerg.Bl -hang 97c8a90aaaSjoerg.It Tn 7945/7946 No partitions : 98c8a90aaaSjoerg.Bl -column diskx undefined length "xxx-yyyy" -compact 99c8a90aaaSjoerg.It Sy disk start length cyls 100c8a90aaaSjoerg.It rd?a 112 15904 1-142 101c8a90aaaSjoerg.It rd?b 16016 20160 143-322 102c8a90aaaSjoerg.It rd?c 0 108416 0-967 103c8a90aaaSjoerg.It rd?d 16016 40320 143-502 104c8a90aaaSjoerg.It rd?e undefined Ta "" Ta "" 105c8a90aaaSjoerg.It rd?f undefined Ta "" Ta "" 106c8a90aaaSjoerg.It rd?g 36176 72240 323-967 107c8a90aaaSjoerg.It rd?h 56336 52080 503-967 108c8a90aaaSjoerg.El 109c8a90aaaSjoerg.It Tn 9134D No partitions : 110c8a90aaaSjoerg.Bl -column diskx undefined length "xxx-yyyy" -compact 111c8a90aaaSjoerg.It Sy disk start length cyls 112c8a90aaaSjoerg.It rd?a 96 15936 1-166 113c8a90aaaSjoerg.It rd?b 16032 13056 167-302 114c8a90aaaSjoerg.It rd?c 0 29088 0-302 115c8a90aaaSjoerg.It rd?d undefined Ta "" Ta "" 116c8a90aaaSjoerg.It rd?e undefined Ta "" Ta "" 117c8a90aaaSjoerg.It rd?f undefined Ta "" Ta "" 118c8a90aaaSjoerg.It rd?g undefined Ta "" Ta "" 119c8a90aaaSjoerg.It rd?h undefined Ta "" Ta "" 120c8a90aaaSjoerg.El 121c8a90aaaSjoerg.It Tn 9122S No partitions : 122c8a90aaaSjoerg.Bl -column diskx undefined length "xxx-yyyy" -compact 123c8a90aaaSjoerg.It Sy disk start length cyls 124c8a90aaaSjoerg.It rd?a undefined Ta "" Ta "" 125c8a90aaaSjoerg.It rd?b undefined Ta "" Ta "" 126c8a90aaaSjoerg.It rd?c 0 1232 0-76 127c8a90aaaSjoerg.It rd?d undefined Ta "" Ta "" 128c8a90aaaSjoerg.It rd?e undefined Ta "" Ta "" 129c8a90aaaSjoerg.It rd?f undefined Ta "" Ta "" 130c8a90aaaSjoerg.It rd?g undefined Ta "" Ta "" 131c8a90aaaSjoerg.It rd?h undefined Ta "" Ta "" 132c8a90aaaSjoerg.El 133c8a90aaaSjoerg.It Tn 7912P No partitions : 134c8a90aaaSjoerg.Bl -column diskx undefined length "xxx-yyyy" -compact 135c8a90aaaSjoerg.It Sy disk start length cyls 136c8a90aaaSjoerg.It rd?a 0 15904 0-70 137c8a90aaaSjoerg.It rd?b 16128 22400 72-171 138c8a90aaaSjoerg.It rd?c 0 128128 0-571 139c8a90aaaSjoerg.It rd?d 16128 42560 72-261 140c8a90aaaSjoerg.It rd?e undefined Ta "" Ta "" 141c8a90aaaSjoerg.It rd?f undefined Ta "" Ta "" 142c8a90aaaSjoerg.It rd?g 38528 89600 172-571 143c8a90aaaSjoerg.It rd?h 58688 69440 262-571 144c8a90aaaSjoerg.El 145c8a90aaaSjoerg.It Tn 7914CT/P No partitions : 146c8a90aaaSjoerg.Bl -column diskx undefined length "xxx-yyyy" -compact 147c8a90aaaSjoerg.It Sy disk start length cyls 148c8a90aaaSjoerg.It rd?a 224 15904 1-71 149c8a90aaaSjoerg.It rd?b 16128 40320 72-251 150c8a90aaaSjoerg.It rd?c 0 258048 0-1151 151c8a90aaaSjoerg.It rd?d 16128 64960 72-361 152c8a90aaaSjoerg.It rd?e 81088 98560 362-801 153c8a90aaaSjoerg.It rd?f 179648 78400 802-1151 154c8a90aaaSjoerg.It rd?g 56448 201600 252-1151 155c8a90aaaSjoerg.It rd?h 81088 176960 362-1151 156c8a90aaaSjoerg.El 157c8a90aaaSjoerg.It Tn 7958A No partitions : 158c8a90aaaSjoerg.Bl -column diskx undefined length "xxx-yyyy" -compact 159c8a90aaaSjoerg.It Sy disk start length cyls 160c8a90aaaSjoerg.It rd?a 252 16128 1-64 161c8a90aaaSjoerg.It rd?b 16380 32256 65-192 162c8a90aaaSjoerg.It rd?c 0 255276 0-1012 163c8a90aaaSjoerg.It rd?d 16380 48384 65-256 164c8a90aaaSjoerg.It rd?e 64764 100800 257-656 165c8a90aaaSjoerg.It rd?f 165564 89712 657-1012 166c8a90aaaSjoerg.It rd?g 48636 206640 193-1012 167c8a90aaaSjoerg.It rd?h 64764 190512 257-1012 168c8a90aaaSjoerg.El 169c8a90aaaSjoerg.It Tn 7957A No partitions : 170c8a90aaaSjoerg.Bl -column diskx undefined length "xxx-yyyy" -compact 171c8a90aaaSjoerg.It Sy disk start length cyls 172c8a90aaaSjoerg.It rd?a 154 16016 1-104 173c8a90aaaSjoerg.It rd?b 16170 24640 105-264 174c8a90aaaSjoerg.It rd?c 0 159544 0-1035 175c8a90aaaSjoerg.It rd?d 16170 42350 105-379 176c8a90aaaSjoerg.It rd?e 58520 54824 380-735 177c8a90aaaSjoerg.It rd?f 113344 46200 736-1035 178c8a90aaaSjoerg.It rd?g 40810 118734 265-1035 179c8a90aaaSjoerg.It rd?h 58520 101024 380-1035 180c8a90aaaSjoerg.El 181c8a90aaaSjoerg.It Tn 7933H No partitions : 182c8a90aaaSjoerg.Bl -column diskx undefined length "xxx-yyyy" -compact 183c8a90aaaSjoerg.It Sy disk start length cyls 184c8a90aaaSjoerg.It rd?a 598 16146 1-27 185c8a90aaaSjoerg.It rd?b 16744 66976 28-139 186c8a90aaaSjoerg.It rd?c 0 789958 0-1320 187c8a90aaaSjoerg.It rd?d 83720 16146 140-166 188c8a90aaaSjoerg.It rd?e 99866 165646 167-443 189c8a90aaaSjoerg.It rd?f 265512 165646 444-720 190c8a90aaaSjoerg.It rd?g 83720 706238 140-1320 191c8a90aaaSjoerg.It rd?h 431158 358800 721-1320 192c8a90aaaSjoerg.El 193c8a90aaaSjoerg.It Tn 9134L No partitions : 194c8a90aaaSjoerg.Bl -column diskx undefined length "xxx-yyyy" -compact 195c8a90aaaSjoerg.It Sy disk start length cyls 196c8a90aaaSjoerg.It rd?a 80 15920 1-199 197c8a90aaaSjoerg.It rd?b 16000 20000 200-449 198c8a90aaaSjoerg.It rd?c 0 77840 0-972 199c8a90aaaSjoerg.It rd?d 16000 32000 200-599 200c8a90aaaSjoerg.It rd?e undefined Ta "" Ta "" 201c8a90aaaSjoerg.It rd?f undefined Ta "" Ta "" 202c8a90aaaSjoerg.It rd?g 36000 41840 450-972 203c8a90aaaSjoerg.It rd?h 48000 29840 600-972 204c8a90aaaSjoerg.El 205c8a90aaaSjoerg.It Tn 7936H No partitions : 206c8a90aaaSjoerg.Bl -column diskx undefined length "xxx-yyyy" -compact 207c8a90aaaSjoerg.It Sy disk start length cyls 208c8a90aaaSjoerg.It rd?a 861 16359 1-19 209c8a90aaaSjoerg.It rd?b 17220 67158 20-97 210c8a90aaaSjoerg.It rd?c 0 600978 0-697 211c8a90aaaSjoerg.It rd?d 84378 16359 98-116 212c8a90aaaSjoerg.It rd?e 100737 120540 117-256 213c8a90aaaSjoerg.It rd?f 220416 120540 256-395 214c8a90aaaSjoerg.It rd?g 84378 516600 98-697 215c8a90aaaSjoerg.It rd?h 341817 259161 397-697 216c8a90aaaSjoerg.El 217c8a90aaaSjoerg.It Tn 7937H No partitions : 218c8a90aaaSjoerg.Bl -column diskx undefined length "xxx-yyyy" -compact 219c8a90aaaSjoerg.It Sy disk start length cyls 220c8a90aaaSjoerg.It rd?a 1599 15990 1-10 221c8a90aaaSjoerg.It rd?b 17589 67158 11-52 222c8a90aaaSjoerg.It rd?c 0 1116102 0-697 223c8a90aaaSjoerg.It rd?d 84747 15990 53-62 224c8a90aaaSjoerg.It rd?e 100737 246246 63-216 225c8a90aaaSjoerg.It rd?f 346983 246246 217-370 226c8a90aaaSjoerg.It rd?g 84747 1031355 53-697 227c8a90aaaSjoerg.It rd?h 593229 522873 371-697 228c8a90aaaSjoerg.El 229c8a90aaaSjoerg.It Tn 7957B/7961B No partitions : 230c8a90aaaSjoerg.Bl -column diskx undefined length "xxx-yyyy" -compact 231c8a90aaaSjoerg.It Sy disk start length cyls 232c8a90aaaSjoerg.It rd?a 126 16002 1-127 233c8a90aaaSjoerg.It rd?b 16128 32760 128-387 234c8a90aaaSjoerg.It rd?c 0 159894 0-1268 235c8a90aaaSjoerg.It rd?d 16128 49140 128-517 236c8a90aaaSjoerg.It rd?e 65268 50400 518-917 237c8a90aaaSjoerg.It rd?f 115668 44226 918-1268 238c8a90aaaSjoerg.It rd?g 48888 111006 388-1268 239c8a90aaaSjoerg.It rd?h 65268 94626 518-1268 240c8a90aaaSjoerg.El 241c8a90aaaSjoerg.It Tn 7958B/7962B No partitions : 242c8a90aaaSjoerg.Bl -column diskx undefined length "xxx-yyyy" -compact 243c8a90aaaSjoerg.It Sy disk start length cyls 244c8a90aaaSjoerg.It rd?a 378 16254 1-43 245c8a90aaaSjoerg.It rd?b 16632 32886 44-130 246c8a90aaaSjoerg.It rd?c 0 297108 0-785 247c8a90aaaSjoerg.It rd?d 16632 49140 44-173 248c8a90aaaSjoerg.It rd?e 65772 121716 174-495 249c8a90aaaSjoerg.It rd?f 187488 109620 496-785 250c8a90aaaSjoerg.It rd?g 49518 247590 131-785 251c8a90aaaSjoerg.It rd?h 65772 231336 174-785 252c8a90aaaSjoerg.El 253c8a90aaaSjoerg.It Tn 7959B/7963B No partitions : 254c8a90aaaSjoerg.Bl -column diskx undefined length "xxx-yyyy" -compact 255c8a90aaaSjoerg.It Sy disk start length cyls 256c8a90aaaSjoerg.It rd?a 378 16254 1-43 257c8a90aaaSjoerg.It rd?b 16632 49140 44-173 258c8a90aaaSjoerg.It rd?c 0 594216 0-1571 259c8a90aaaSjoerg.It rd?d 16632 65772 44-217 260c8a90aaaSjoerg.It rd?e 82404 303912 218-1021 261c8a90aaaSjoerg.It rd?f 386316 207900 1022-1571 262c8a90aaaSjoerg.It rd?g 65772 528444 174-1571 263c8a90aaaSjoerg.It rd?h 82404 511812 218-1571 264c8a90aaaSjoerg.El 26561f28255Scgd.El 26661f28255Scgd.Pp 26761f28255ScgdThe eight partitions as given support four basic, non-overlapping layouts, 26861f28255Scgdthough not all partitions exist on all drive types. 26961f28255Scgd.Pp 27061f28255ScgdIn the first layout there are three partitions and a ``bootblock'' area. 27161f28255ScgdThe bootblock area is at the beginning of the disk and holds 27261f28255Scgdthe standalone disk boot program. 27361f28255ScgdThe 27461f28255Scgd.Pa rd?a 27561f28255Scgdpartition is for the root file system, 27661f28255Scgd.Pa rd?b 27761f28255Scgdis a paging/swapping area, and 27861f28255Scgd.Pa rd?g 27961f28255Scgdis for everything else. 28061f28255Scgd.Pp 28161f28255ScgdThe second layout is the same idea, 28261f28255Scgdbut has a larger paging/swapping partition 28361f28255Scgd.Pq Pa rd?d 28461f28255Scgdand 28561f28255Scgda smaller ``everything else'' partition 28661f28255Scgd.Pq Pa rd?h . 28761f28255ScgdThis layout is better for environments which run many large processes. 28861f28255Scgd.Pp 28961f28255ScgdThe third layout is a variation of the second, 29061f28255Scgdbut breaks the 29161f28255Scgd.Pa rd?h 29261f28255Scgdpartition into two partitions, 29361f28255Scgd.Pa rd?e 29461f28255Scgdand 29561f28255Scgd.Pa rd?f . 29661f28255Scgd.Pp 29761f28255ScgdThe final layout is intended for a large, single file system second disk. 29861f28255ScgdIt is also used when writing out the boot program since it is the only 29961f28255Scgdpartition mapping the bootblock area. 30061f28255Scgd.Sh FILES 30161f28255Scgd.Bl -tag -width /dev/rrd[0-7][a-h] -compact 30261f28255Scgd.It Pa /dev/rd[0-7][a-h] 30361f28255Scgdblock files 30461f28255Scgd.It Pa /dev/rrd[0-7][a-h] 30561f28255Scgdraw files 30661f28255Scgd.El 30761f28255Scgd.Sh DIAGNOSTICS 30861f28255Scgd.Bl -diag 30961f28255Scgd.It "rd%d err: v%d u%d, R0x%x F0x%x A0x%x I0x%x, block %d" 31061f28255ScgdAn unrecoverable data error occurred during transfer of the 31161f28255Scgdspecified block on the specified disk. 31261f28255Scgd.El 31361f28255Scgd.Sh BUGS 31461f28255ScgdThe current disk partitioning is totally bogus. 31561f28255Scgd.Tn CS/80 31661f28255Scgddrives have 256 byte sectors which are mapped to 512 byte 31761f28255Scgd``sectors'' by the driver. 31861f28255ScgdSince some 31961f28255Scgd.Tn CS/80 32061f28255Scgddrives have an odd number of sectors per cylinder, 32161f28255Scgdthe disk geometry used is not always accurate. 32261f28255Scgd.Pp 32361f28255ScgdThe partition tables for the file systems should be read off of each pack, 32461f28255Scgdas they are never quite what any single installation would prefer, 32561f28255Scgdand this would make packs more portable. 32661f28255Scgd.Pp 32761f28255ScgdA program to analyze the logged error information (even in its 32861f28255Scgdpresent reduced form) is needed. 329