1.\" Copyright (c) 1980,1988, 1991 Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. 9.\" 2. Redistributions in binary form must reproduce the above copyright 10.\" notice, this list of conditions and the following disclaimer in the 11.\" documentation and/or other materials provided with the distribution. 12.\" 3. All advertising materials mentioning features or use of this software 13.\" must display the following acknowledgement: 14.\" This product includes software developed by the University of 15.\" California, Berkeley and its contributors. 16.\" 4. Neither the name of the University nor the names of its contributors 17.\" may be used to endorse or promote products derived from this software 18.\" without specific prior written permission. 19.\" 20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" from: @(#)hp.4 6.5 (Berkeley) 3/27/91 33.\" $Id: hp.4,v 1.2 1993/08/01 07:36:18 mycroft Exp $ 34.\" 35.Dd March 27, 1991 36.Dt HP 4 vax 37.Os BSD 4 38.Sh NAME 39.Nm hp 40.Nd 41.Tn MASSBUS 42disk interface 43.Sh SYNOPSIS 44.Cd "disk hp0 at mba0 drive 0" 45.Sh DESCRIPTION 46The 47.Nm hp 48driver 49is a generic Massbus disk driver which handles both the standard 50.Tn DEC 51controllers and the Emulex 52.Tn SC750 53and 54.Tn SC780 55controllers. 56It is typical of a block-device disk driver; block 57.Tn I/O 58is 59described in 60.Xr physio 4 . 61.Pp 62The script 63.Xr MAKEDEV 8 64should be used to create the special files; if a special file 65needs to be created by hand consult 66.Xr mknod 8 . 67It is recommended as a security precaution to not create special files 68for devices which may never be installed. 69.Pp 70The first sector of each disk contains both a first-stage bootstrap program 71and a disk label containing geometry information and partition layouts (see 72.Xr disklabel 5 . 73This sector is normally write-protected, and disk-to-disk copies should 74avoid copying this sector. 75The label may be updated with 76.Xr disklabel 8 , 77which can also be used to write-enable and write-disable the sector. 78The next 15 sectors contain a second-stage bootstrap program. 79.Sh DISK SUPPORT 80This driver handles both standard 81.Tn DEC 82controllers and Emulex 83.Tn SC750 84and 85.Tn SC780 86controllers. 87During autoconfiguration or whenever a drive comes on line for the first time, 88or when a drive is opened after all partitions are closed, 89the first sector of the drive is examined for a disk label. 90If a label is found, the geometry of the drive and the partition tables 91are taken from it. 92If no label is found, 93standard 94.Tn DEC 95drive types are 96recognized according to the 97.Tn MASSBUS 98drive type register, 99and default partitions are used. 100For the Emulex controller the drive type register should be configured 101to indicate the drive is an 102.Tn RM02 . 103When this is encountered, 104the driver checks the holding register to find out 105the disk geometry and, based on this information, decides what 106the drive type is. 107.Pp 108Special file names begin with 109.Sq Li hp 110and 111.Sq Li rhp 112for the block and character files respectively. The second 113component of the name, a drive unit number in the range of zero to 114seven, is represented by a 115.Sq Li ? 116in the disk layouts below. 117The last component is the file system partition 118designated 119by a letter from 120.Sq Li a 121to 122.Sq Li h 123and also corresponds to a minor device number set: zero to seven, 124eight to 15, 16 to 23 and so forth for drive zero, drive two and drive 125three respectively. 126The following disks are supported: 127.Tn RM03 , 128.Tn RM05 , 129.Tn RP06 , 130.Tn RM80 , 131.Tn RP05 , 132.Tn RP07 , 133.Tn ML11A , 134.Tn ML11B , 135.Tn CDC 9775 , 136.Tn CDC 9730 , 137.Tn AMPEX 138Capricorn (32 sectors/track), 139.Tn FUJITSU 140Eagle (48 sectors/track), 141.Tn FUJITSU 2361, 142and 143.Tn AMPEX 1449300. The default layout and size (in sectors) of the 145partitions for these drives: 146.Bl -column header diskx undefined length 147.Tn RM03 No partitions 148.Sy disk start length cyls 149 hp?a 0 15884 0-99 150 hp?b 16000 33440 100-309 151 hp?c 0 131680 0-822 152 hp?d 49600 15884 309-408 153 hp?e 65440 55936 409-758 154 hp?f 121440 10080 759-822 155 hp?g 49600 82080 309-822 156 157.Tn RM05 No partitions 158.Sy disk start length cyls 159 hp?a 0 15884 0-26 160 hp?b 16416 33440 27-81 161 hp?c 0 500384 0-822 162 hp?d 341696 15884 562-588 163 hp?e 358112 55936 589-680 164 hp?f 414048 86176 681-822 165 hp?g 341696 158528 562-822 166 hp?h 49856 291346 82-561 167 168.Tn RP06 No partitions 169.Sy disk start length cyls 170 hp?a 0 15884 0-37 171 hp?b 15884 33440 38-117 172 hp?c 0 340670 0-814 173 hp?d 49324 15884 118-155 174 hp?e 65208 55936 156-289 175 hp?f 121220 219296 290-814 176 hp?g 49324 291192 118-814 177 178.Tn RM80 No partitions 179.Sy disk start length cyls 180 hp?a 0 15884 0-36 181 hp?b 16058 33440 37-114 182 hp?c 0 242606 0-558 183 hp?d 49910 15884 115-151 184 hp?e 68096 55936 152-280 185 hp?f 125888 120466 281-558 186 hp?g 49910 192510 115-558 187 188.Tn RP05 No partitions 189.Sy disk start length cyls 190 hp?a 0 15884 0-37 191 hp?b 15884 33440 38-117 192 hp?c 0 171798 0-410 193 hp?d 2242 15884 118-155 194 hp?e 65208 55936 156-289 195 hp?f 121220 50424 290-410 196 hp?g 2242 122320 118-410 197 198.Tn RP07 No partitions 199.Sy disk start length cyls 200 hp?a 0 15884 0-9 201 hp?b 16000 66880 10-51 202 hp?c 0 1008000 0-629 203 hp?d 376000 15884 235-244 204 hp?e 392000 307200 245-436 205 hp?f 699200 308600 437-629 206 hp?g 376000 631800 235-629 207 hp?h 83200 291346 52-234 208 209.Tn CDC No 9775 partitions 210.Sy disk start length cyls 211 hp?a 0 15884 0-12 212 hp?b 16640 66880 13-65 213 hp?c 0 1077760 0-841 214 hp?d 376320 15884 294-306 215 hp?e 392960 307200 307-546 216 hp?f 700160 377440 547-841 217 hp?g 376320 701280 294-841 218 hp?h 84480 291346 66-293 219 220.Tn CDC No 9730 partitions 221.Sy disk start length cyls 222 hp?a 0 15884 0-49 223 hp?b 16000 33440 50-154 224 hp?c 0 263360 0-822 225 hp?d 49600 15884 155-204 226 hp?e 65600 55936 205-379 227 hp?f 121600 141600 380-822 228 hp?g 49600 213600 155-822 229 230.Tn AMPEX No Capricorn partitions 231.Sy disk start length cyls 232 hp?a 0 15884 0-31 233 hp?b 16384 33440 32-97 234 hp?c 0 524288 0-1023 235 hp?d 342016 15884 668-699 236 hp?e 358400 55936 700-809 237 hp?f 414720 109408 810-1023 238 hp?g 342016 182112 668-1023 239 hp?h 50176 291346 98-667 240 241.Tn FUJITSU No Eagle partitions 242.Sy disk start length cyls 243 hp?a 0 15884 0-16 244 hp?b 16320 66880 17-86 245 hp?c 0 808320 0-841 246 hp?d 375360 15884 391-407 247 hp?e 391680 55936 408-727 248 hp?f 698880 109248 728-841 249 hp?g 375360 432768 391-841 250 hp?h 83520 291346 87-390 251 252.Tn FUJITSU No 2361 partitions 253.Sy disk start length cyls 254 hp?a 0 15884 0-12 255 hp?b 16640 66880 13-65 256 hp?c 0 1077760 0-841 257 hp?d 376320 15884 294-306 258 hp?e 392960 307200 307-546 259 hp?f 700160 377408 547-841 260 hp?g 363520 701248 294-841 261 hp?h 84480 291346 66-293 262 263.Tn AMPEX No 9300 partitions 264.Sy disk start length cyl 265 hp?a 0 15884 0-26 266 hp?b 16416 33440 27-81 267 hp?c 0 495520 0-814 268 hp?d 341696 15884 562-588 269 hp?e 358112 55936 589-680 270 hp?f 414048 81312 681-814 271 hp?g 341696 153664 562-814 272 hp?h 49856 291346 82-561 273.El 274.Pp 275The hp?a partition is normally used for the root file system, 276the hp?b partition as a paging area, 277and the hp?c partition for pack-pack copying (it maps the entire disk). 278On disks larger than about 205 Megabytes, the hp?h partition 279is inserted prior to the hp?d or hp?g partition; 280the hp?g partition then maps the remainder of the pack. 281All disk partition tables are calculated using the 282.Xr diskpart 8 283program. 284.Pp 285.Sh FILES 286.Bl -tag -width /dev/rhp[0-7][a-h] -compact 287.It Pa /dev/hp[0-7][a-h] 288block files 289.It Pa /dev/rhp[0-7][a-h] 290raw files 291.El 292.Sh DIAGNOSTICS 293.Bl -diag 294.It "hp%d%c: hard error %sing fsbn %d [of %d-%d] (hp%d bn %d cn %d tn %d sn %d) mbsr=%b er1=%b er2=%b." 295An unrecoverable error occurred during transfer of the specified 296filesystem block number, 297which is a logical block number on the indicated partition. 298If the transfer involved multiple blocks, the block range is printed as well. 299The parenthesized fields list the actual disk sector number 300relative to the beginning of the drive, 301as well as the cylinder, track and sector number of the block. 302The 303.Tn MASSBUS 304status register is printed in hexadecimal and 305with the error bits decoded if any error bits other than 306.Tn MBEXC 307and 308.Tn DTABT 309are set. In any case the contents of the two error registers are also printed 310in octal and symbolically with bits decoded. 311(Note that er2 is what old 312.Tn RP06 313manuals would call 314.Tn RPER3 ; 315the terminology 316is that of the 317.Tn RM 318disks). 319The error was either unrecoverable, or a large number of retry attempts 320(including offset positioning and drive recalibration) could not 321recover the error. 322.Pp 323.It hp%d: write locked. 324The write protect switch was set on the drive 325when a write was attempted. The write operation is not recoverable. 326.Pp 327.It hp%d: not ready . 328The drive was spun down or off line when it was 329accessed. The 330.Tn I/O 331operation is not recoverable. 332.Pp 333.It "hp%d%c: soft ecc reading fsbn %d [of %d-%d] (hp%d bn %d cn %d tn %d sn %d)." 334A recoverable 335.Tn ECC 336error occurred on the 337specified sector of the specified disk partition. 338If the transfer involved multiple blocks, the block range is printed as well. 339The parenthesized fields list the actual disk sector number 340relative to the beginning of the drive, 341as well as the cylinder, track and sector number of the block. 342This happens normally 343a few times a week. If it happens more frequently than 344this the sectors where the errors are occurring should be checked to see 345if certain cylinders on the pack, spots on the carriage of the drive 346or heads are indicated. 347.Pp 348.It hp%d: 9775 (direct). 349.It hp%d: 9730 (direct). 350.It hp%d: 9300. 351.It hp%d: 9762. 352.It hp%d: capricorn. 353.It hp%d: eagle. 354.It hp%d: 2361. 355.It hp%d: ntracks %d, nsectors %d: unknown device. 356During autoconfiguration one of the above messages may appear 357on the console indicating the appropriate drive type was recognized. 358The last message indicates the drive is of a unknown type. 359In this case, the correct geometry is set, and one partition is created 360that contains the entire drive. 361.Pp 362.El 363.Sh SEE ALSO 364.Xr physio 4 , 365.Xr up 4 , 366.Xr disklabel 5 , 367.Xr MAKEDEV 8 368.Xr disklabel 8 369.Xr mknod 8 370.Sh HISTORY 371The 372.Nm 373driver appeared in 374.Bx 4.0 . 375.Sh BUGS 376.Tn DEC Ns -standard 377error logging should be supported. 378.Pp 379A program to analyze the logged error information (even in its 380present reduced form) is needed. 381