Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hp(4) — Ultrix-32 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dkio(4)

nbuf(4)

MAKEDEV(8)

uerf(8)

hp(4)

NAME

hp − MASSBUS disk interface

SYNTAX

disk hp0 at mba0 drive 0

DESCRIPTION

Files with minor device numbers 0 through 7 refer to various portions of drive 0; minor devices 8 through 15 refer to drive 1, etc.  The standard device names begin with “hp” followed by the drive number and then a letter a-h for partitions 0-7 respectively.  The character ? stands here for a drive number in the range 0-7. 

The block file’s access the disk via the system’s normal buffering mechanism and may be read and written without regard to physical disk records. There is also a ‘raw’ interface which provides for direct transmission between the disk and the user’s read or write buffer.  A single read or write call results in exactly one I/O operation and therefore raw I/O is considerably more efficient when many words are transmitted.  The names of the raw files conventionally begin with an extra ‘r.’

In raw I/O counts should be a multiple of 512 bytes (a disk sector).  Likewise seek calls should specify a multiple of 512 bytes. 

Standard DEC drive types are recognized according to the MASSBUS drive type register.  The origin and size (in sectors) of the partitions on each drive are as follows:

RM03 partitions
diskstartlengthcyls
hp?a0158840-99
hp?b1600033440100-308
hp?c01316800-822
hp?d4960015884309-408
hp?e6544055936409-758
hp?f12144010144759-822
hp?g4960082144309-822

RM05 partitions
diskstartlengthcyls
hp?a0158840-26
hp?b164163344027-81
hp?c05003840-822
hp?d34169615884562-588
hp?e35811255936589-680
hp?f41404886240681-822
hp?g341696158592562-822
hp?h4985629134682-561

RP06 partitions
diskstartlengthcyls
hp?a0158840-37
hp?b158843344038-117
hp?c03406700-814
hp?d4932415884118-155
hp?e6520855936156-289
hp?f121220219384290-814
hp?g49324291280118-814

RM80 partitions
diskstartlengthcyls
hp?a0158840-36
hp?b160583344037-114
hp?c02426060-558
hp?d4991015884115-151
hp?e6809655936152-280
hp?f125888120559281-558
hp?g49910192603115-558

RP05 partitions
diskstartlengthcyls
hp?a0158840-37
hp?b158843344038-117
hp?c01717980-410
hp?d224215884118-155
hp?e6520855936156-289
hp?f12122050512290-410
hp?g2242122408118-410

RP07 partitions
diskstartlengthcyls
hp?a0158840-9
hp?b160006688010-51
hp?c01008000 0-629
hp?d37600015884235-244
hp?e392000307200245-436
hp?f699200308650437-629
hp?g376000631850235-629
hp?h8320029134652-234

It is unwise for all of these files to be present in one installation, since there is overlap in addresses and protection becomes a sticky matter.  The hp?a partition is normally used for the root file system, the hp?b partition as a paging area, and the hp?c partition for pack-pack copying (it maps the entire disk).  On disks larger than about 205 Megabytes, the hp?h partition is inserted prior to the hp?d or hp?g partition; the hp?g partition then maps the remainder of the pack.  All disk partition tables are calculated using the diskpart(8) program. 

RESTRICTIONS

In raw I/O read (2) and write(2) truncate file offsets to 512-byte block boundaries, and write scribbles on the tail of incomplete blocks.  Thus, in programs that are likely to access raw devices, read, write and lseek(2) should always deal in 512-byte multiples. 

DIAGNOSTICS

The following messages are printed at the console and noted in the error log file:

hp%d%c: hard error sn%d. 
An unrecoverable error occurred during transfer of the specified sector of the named disk partition. Either the error was unrecoverable, or a large number of retry attempts (including offset positioning and drive recalibration) could not recover the error.  Additional register information may be gathered from the system error log file /usr/adm/syserr/syserr.<hostname>.

hp%d: write locked. 
The write protect switch was set on the drive when a write was attempted.  The write operation is not recoverable.

hp%d: not ready. 
The drive was spun down or off line when it was accessed.  The i/o operation is not recoverable.

During autoconfiguration one of the following messages may appear on the console indicating the appropriate drive type was recognized.  The last message indicates the drive is of a unknown type. 

The following message is written to the system error log file only. 

hp%d%c: soft ecc sn%d. 
A recoverable ECC error occurred on the specified sector of the named disk partition. This happens normally a few times a week. If it happens more frequently than this, the sectors where the errors are occurring should be checked to see if certain cylinders on the pack, spots on the carriage of the drive or heads are indicated.

FILES

/dev/hp???  /dev/rhp??? 

SEE ALSO

dkio(4), nbuf(4), MAKEDEV(8), uerf(8)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026