RD(4) BSD Programmer's Manual (HP300 Architecture) RD(4)
r
\brd
\bd - CS/80 disk interface
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
m
\bma
\bas
\bst
\bte
\ber
\br h
\bhp
\bpi
\bib
\bb?
\b? a
\bat
\bt s
\bsc
\bco
\bod
\bde
\be?
\b?
d
\bdi
\bis
\bsk
\bk r
\brd
\bd?
\b? a
\bat
\bt h
\bhp
\bpi
\bib
\bb?
\b? s
\bsl
\bla
\bav
\bve
\be?
\b?
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
This is a generic CS/80 disk driver. Only a small number of possible
CS/80 drives are supported, but others can easily be added by adding ta-
bles to the driver. It is a typical block-device driver; see physio(4).
The script MAKEDEV(8) should be used to create the r
\brd
\bd special files; con-
sult mknod(8) if a special file needs to be made manually.
D
\bDI
\bIS
\bSK
\bK S
\bSU
\bUP
\bPP
\bPO
\bOR
\bRT
\bT
The driver interrogates the controller to determine the type of drive at-
tached. The driver recognizes the following drives: 7912, 7914, 7933,
7936, 7937, 7945, 757A/B, 7958A/B, 7959B, 7962, 7963, 9122, 9134, 7912,
7936, and 9122, not all of which have been tested. Special file names
begin with `rd' and `rrd' for the block and character files respectively.
The second component of the name, a drive unit number in the range of ze-
ro to seven, is represented by a `?' in the disk layouts below. The last
component of the name is the file system partition and is designated by a
letter from `a' to `h' which also corresponds to a minor device number
sets: zero to seven, eight to 15, 16 to 23 and so forth for drive zero,
drive two and drive three respectively (see physio 4 ) . The location
and size (in sectors) of the partitions for these drives:
d
\bdi
\bis
\bsk
\bk s
\bst
\bta
\bar
\brt
\bt l
\ble
\ben
\bng
\bgt
\bth
\bh c
\bcy
\byl
\bls
\bs
d
\bdi
\bis
\bsk
\bk s
\bst
\bta
\bar
\brt
\bt l
\ble
\ben
\bng
\bgt
\bth
\bh c
\bcy
\byl
\bls
\bs
d
\bdi
\bis
\bsk
\bk s
\bst
\bta
\bar
\brt
\bt l
\ble
\ben
\bng
\bgt
\bth
\bh c
\bcy
\byl
\bls
\bs
d
\bdi
\bis
\bsk
\bk s
\bst
\bta
\bar
\brt
\bt l
\ble
\ben
\bng
\bgt
\bth
\bh c
\bcy
\byl
\bls
\bs
d
\bdi
\bis
\bsk
\bk s
\bst
\bta
\bar
\brt
\bt l
\ble
\ben
\bng
\bgt
\bth
\bh c
\bcy
\byl
\bls
\bs
rd?f 179648 78400 802-1151
rd?g 56448 201600 252-1151
rd?h 81088 176960 362-1151
d
\bdi
\bis
\bsk
\bk s
\bst
\bta
\bar
\brt
\bt l
\ble
\ben
\bng
\bgt
\bth
\bh c
\bcy
\byl
\bls
\bs
rd?e 64764 100800 257-656
rd?f 165564 89712 657-1012
rd?g 48636 206640 193-1012
rd?h 64764 190512 257-1012
d
\bdi
\bis
\bsk
\bk s
\bst
\bta
\bar
\brt
\bt l
\ble
\ben
\bng
\bgt
\bth
\bh c
\bcy
\byl
\bls
\bs
rd?f 113344 46200 736-1035
rd?g 40810 118734 265-1035
rd?h 58520 101024 380-1035
d
\bdi
\bis
\bsk
\bk s
\bst
\bta
\bar
\brt
\bt l
\ble
\ben
\bng
\bgt
\bth
\bh c
\bcy
\byl
\bls
\bs
rd?e 99866 165646 167-443
rd?f 265512 165646 444-720
rd?g 83720 706238 140-1320
rd?h 431158 358800 721-1320
d
\bdi
\bis
\bsk
\bk s
\bst
\bta
\bar
\brt
\bt l
\ble
\ben
\bng
\bgt
\bth
\bh c
\bcy
\byl
\bls
\bs
d
\bdi
\bis
\bsk
\bk s
\bst
\bta
\bar
\brt
\bt l
\ble
\ben
\bng
\bgt
\bth
\bh c
\bcy
\byl
\bls
\bs
rd?e 100737 120540 117-256
rd?f 220416 120540 256-395
rd?h 341817 259161 397-697
d
\bdi
\bis
\bsk
\bk s
\bst
\bta
\bar
\brt
\bt l
\ble
\ben
\bng
\bgt
\bth
\bh c
\bcy
\byl
\bls
\bs
rd?e 100737 246246 63-216
rd?f 346983 246246 217-370
rd?g 84747 1031355 53-697
rd?h 593229 522873 371-697
d
\bdi
\bis
\bsk
\bk s
\bst
\bta
\bar
\brt
\bt l
\ble
\ben
\bng
\bgt
\bth
\bh c
\bcy
\byl
\bls
\bs
rd?f 115668 44226 918-1268
rd?g 48888 111006 388-1268
rd?h 65268 94626 518-1268
d
\bdi
\bis
\bsk
\bk s
\bst
\bta
\bar
\brt
\bt l
\ble
\ben
\bng
\bgt
\bth
\bh c
\bcy
\byl
\bls
\bs
rd?e 65772 121716 174-495
rd?f 187488 109620 496-785
rd?g 49518 247590 131-785
rd?h 65772 231336 174-785
d
\bdi
\bis
\bsk
\bk s
\bst
\bta
\bar
\brt
\bt l
\ble
\ben
\bng
\bgt
\bth
\bh c
\bcy
\byl
\bls
\bs
rd?e 82404 303912 218-1021
rd?f 386316 207900 1022-1571
rd?g 65772 528444 174-1571
rd?h 82404 511812 218-1571
The eight partitions as given support four basic, non-overlapping lay-
outs, though not all partitions exist on all drive types.
In the first layout there are three partitions and a ``bootblock'' area.
The bootblock area is at the beginning of the disk and holds the stan-
dalone disk boot program. The _
\br_
\bd_
\b?_
\ba partition is for the root file sys-
tem, _
\br_
\bd_
\b?_
\bb is a paging/swapping area, and _
\br_
\bd_
\b?_
\bg is for everything else.
The second layout is the same idea, but has a larger paging/swapping par-
tition (_
\br_
\bd_
\b?_
\bd) and a smaller ``everything else'' partition (_
\br_
\bd_
\b?_
\bh). This
layout is better for environments which run many large processes.
The third layout is a variation of the second, but breaks the _
\br_
\bd_
\b?_
\bh parti-
tion into two partitions, _
\br_
\bd_
\b?_
\be and _
\br_
\bd_
\b?_
\bf.
The final layout is intended for a large, single file system second disk.
It is also used when writing out the boot program since it is the only
partition mapping the bootblock area.
/dev/rd[0-7][a-h] block files
/dev/rrd[0-7][a-h] raw files
D
\bDI
\bIA
\bAG
\bGN
\bNO
\bOS
\bST
\bTI
\bIC
\bCS
\bS
r
\brd
\bd%
\b%d
\bd e
\ber
\brr
\br:
\b: v
\bv%
\b%d
\bd u
\bu%
\b%d
\bd,
\b, R
\bR0
\b0x
\bx%
\b%x
\bx F
\bF0
\b0x
\bx%
\b%x
\bx A
\bA0
\b0x
\bx%
\b%x
\bx I
\bI0
\b0x
\bx%
\b%x
\bx,
\b, b
\bbl
\blo
\boc
\bck
\bk %
\b%d
\bd An unrecoverable
data error occurred during transfer of the specified block on the speci-
The current disk partitioning is totally bogus. CS/80 drives have 256
byte sectors which are mapped to 512 byte ``sectors'' by the driver.
Since some CS/80 drives have an odd number of sectors per cylinder, the
disk geometry used is not always accurate.
The partition tables for the file systems should be read off of each
pack, as they are never quite what any single installation would prefer,
and this would make packs more portable.
A program to analyze the logged error information (even in its present