xref: /csrg-svn/share/man/man4/man4.hp300/rd.4 (revision 62992)
1*62992Sbostic.\" Copyright (c) 1990, 1991, 1993
2*62992Sbostic.\"	The Regents of the University of California.  All rights reserved.
344682Sbostic.\"
444682Sbostic.\" This code is derived from software contributed to Berkeley by
544682Sbostic.\" the Systems Programming Group of the University of Utah Computer
644682Sbostic.\" Science Department.
762991Sbostic.\"
844682Sbostic.\" %sccs.include.redist.man%
944682Sbostic.\"
10*62992Sbostic.\"     @(#)rd.4	8.1 (Berkeley) 06/09/93
1144682Sbostic.\"
1247672Scael.Dd
1347672Scael.Dt RD 4 hp300
1447672Scael.Os
1547672Scael.Sh NAME
1647672Scael.Nm rd
1747672Scael.Nd
1847672Scael.Tn CS/80
1947672Scaeldisk interface
2047672Scael.Sh SYNOPSIS
2147672Scael.Cd "master hpib? at scode?"
2247672Scael.Cd "disk rd? at hpib? slave?"
2347672Scael.Sh DESCRIPTION
2447672ScaelThis is a generic
2547672Scael.Tn CS/80
2647672Scaeldisk driver.
2747672ScaelOnly a small number of possible
2847672Scael.Tn CS/80
2947672Scaeldrives are supported,
3044682Sbosticbut others can easily be added by adding tables to the driver.
3147672ScaelIt is a typical block-device driver; see
3247672Scael.Xr physio 4 .
3347672Scael.Pp
3447672ScaelThe script
3547672Scael.Xr MAKEDEV 8
3647672Scaelshould be used to create the
3747672Scael.Nm rd
3847672Scaelspecial files; consult
3947672Scael.Xr mknod 8
4047672Scaelif a special file needs to be made manually.
4147672Scael.Sh DISK SUPPORT
4244682SbosticThe driver interrogates the controller
4344682Sbosticto determine the type of drive attached.
4444682SbosticThe driver recognizes the following drives:
4547672Scael7912, 7914, 7933, 7936, 7937, 7945,
4647672Scael.Tn 757A/B ,
4747672Scael.Tn 7958A/B ,
4847672Scael.Tn 7959B,
4947672Scael7962, 7963, 9122, 9134, 7912, 7936,
5047672Scaeland 9122,
5144682Sbosticnot all of which have been tested.
5247672ScaelSpecial file names begin with
5347672Scael.Sq Li rd
5447672Scaeland
5547672Scael.Sq Li rrd
5647672Scaelfor the block and character files respectively. The second
5747672Scaelcomponent of the name, a drive unit number in the range of zero to
5847672Scaelseven, is represented by a
5947672Scael.Sq Li ?
6047672Scaelin the disk layouts below. The last component of the name is the
6147672Scaelfile system partition
6247672Scaeland is designated
6347672Scaelby a letter from
6447672Scael.Sq Li a
6547672Scaelto
6647672Scael.Sq Li h
6747672Scaelwhich also corresponds to a minor device number sets: zero to seven,
6847672Scaeleight to 15, 16 to 23 and so forth for drive zero, drive two and drive
6947672Scaelthree respectively
7047672Scael(see physio 4 ) .
7147672ScaelThe location and size (in sectors) of the
7247672Scaelpartitions for these drives:
7347672Scael.Bl -column header diskx undefined length
7447672Scael.Tn 7945/7946 No partitions:
7547672Scael.Sy	disk	start	length	cyls
7644682Sbostic	rd?a	112	15904	1-142
7744682Sbostic	rd?b	16016	20160	143-322
7844682Sbostic	rd?c	0	108416	0-967
7944682Sbostic	rd?d	16016	40320	143-502
8044682Sbostic	rd?e	undefined
8144682Sbostic	rd?f	undefined
8244682Sbostic	rd?g	36176	72240	323-967
8344682Sbostic	rd?h	56336	52080	503-967
8447672Scael
8547672Scael.Tn 9134D No partitions:
8647672Scael.Sy	disk	start	length	cyls
8744682Sbostic	rd?a	96	15936	1-166
8844682Sbostic	rd?b	16032	13056	167-302
8944682Sbostic	rd?c	0	29088	0-302
9044682Sbostic	rd?d	undefined
9144682Sbostic	rd?e	undefined
9244682Sbostic	rd?f	undefined
9344682Sbostic	rd?g	undefined
9444682Sbostic	rd?h	undefined
9547672Scael
9647672Scael.Tn 9122S No partitions:
9747672Scael.Sy	disk	start	length	cyls
9844682Sbostic	rd?a	undefined
9944682Sbostic	rd?b	undefined
10044682Sbostic	rd?c	0	1232	0-76
10144682Sbostic	rd?d	undefined
10244682Sbostic	rd?e	undefined
10344682Sbostic	rd?f	undefined
10444682Sbostic	rd?g	undefined
10544682Sbostic	rd?h	undefined
10647672Scael
10747672Scael.Tn 7912P No partitions:
10847672Scael.Sy	disk	start	length	cyls
10944682Sbostic	rd?a	0	15904	0-70
11044682Sbostic	rd?b	16128	22400	72-171
11144682Sbostic	rd?c	0	128128	0-571
11244682Sbostic	rd?d	16128	42560	72-261
11344682Sbostic	rd?e	undefined
11444682Sbostic	rd?f	undefined
11544682Sbostic	rd?g	38528	89600	172-571
11644682Sbostic	rd?h	58688	69440	262-571
11747672Scael
11847672Scael.Tn 7914CT/P No partitions:
11947672Scael.Sy	disk	start	length	cyls
12044682Sbostic	rd?a	224	15904	1-71
12144682Sbostic	rd?b	16128	40320	72-251
12244682Sbostic	rd?c	0	258048	0-1151
12344682Sbostic	rd?d	16128	64960	72-361
12444682Sbostic	rd?e	81088	98560	362-801
12544682Sbostic	rd?f	179648	78400	802-1151
12644682Sbostic	rd?g	56448	201600	252-1151
12744682Sbostic	rd?h	81088	176960	362-1151
12847672Scael
12947672Scael.Tn 7958A No partitions:
13047672Scael.Sy	disk	start	length	cyls
13144682Sbostic	rd?a	252	16128	1-64
13244682Sbostic	rd?b	16380	32256	65-192
13344682Sbostic	rd?c	0	255276	0-1012
13444682Sbostic	rd?d	16380	48384	65-256
13544682Sbostic	rd?e	64764	100800	257-656
13644682Sbostic	rd?f	165564	89712	657-1012
13744682Sbostic	rd?g	48636	206640	193-1012
13844682Sbostic	rd?h	64764	190512	257-1012
13947672Scael
14047672Scael.Tn 7957A No partitions:
14147672Scael.Sy	disk	start	length	cyls
14244682Sbostic	rd?a	154	16016	1-104
14344682Sbostic	rd?b	16170	24640	105-264
14444682Sbostic	rd?c	0	159544	0-1035
14544682Sbostic	rd?d	16170	42350	105-379
14644682Sbostic	rd?e	58520	54824	380-735
14744682Sbostic	rd?f	113344	46200	736-1035
14844682Sbostic	rd?g	40810	118734	265-1035
14944682Sbostic	rd?h	58520	101024	380-1035
15047672Scael
15147672Scael.Tn 7933H No partitions:
15247672Scael.Sy	disk	start	length	cyls
15344682Sbostic	rd?a	598	16146	1-27
15444682Sbostic	rd?b	16744	66976	28-139
15544682Sbostic	rd?c	0	789958	0-1320
15644682Sbostic	rd?d	83720	16146	140-166
15744682Sbostic	rd?e	99866	165646	167-443
15844682Sbostic	rd?f	265512	165646	444-720
15944682Sbostic	rd?g	83720	706238	140-1320
16044682Sbostic	rd?h	431158	358800	721-1320
16147672Scael
16247672Scael.Tn 9134L No partitions:
16347672Scael.Sy	disk	start	length	cyls
16444682Sbostic	rd?a	80	15920	1-199
16544682Sbostic	rd?b	16000	20000	200-449
16644682Sbostic	rd?c	0	77840	0-972
16744682Sbostic	rd?d	16000	32000	200-599
16844682Sbostic	rd?e	undefined
16944682Sbostic	rd?f	undefined
17044682Sbostic	rd?g	36000	41840	450-972
17144682Sbostic	rd?h	48000	29840	600-972
17247672Scael
17347672Scael.Tn 7936H No partitions:
17447672Scael.Sy	disk	start	length	cyls
17544682Sbostic	rd?a	861	16359	1-19
17644682Sbostic	rd?b	17220	67158	20-97
17744682Sbostic	rd?c	0	600978	0-697
17844682Sbostic	rd?d	84378	16359	98-116
17944682Sbostic	rd?e	100737	120540	117-256
18044682Sbostic	rd?f	220416	120540	256-395
18144682Sbostic	rd?g	84378	516600	98-697
18244682Sbostic	rd?h	341817	259161	397-697
18347672Scael
18447672Scael.Tn 7937H No partitions:
18547672Scael.Sy	disk	start	length	cyls
18644682Sbostic	rd?a	1599	15990	1-10
18744682Sbostic	rd?b	17589	67158	11-52
18844682Sbostic	rd?c	0	1116102	0-697
18944682Sbostic	rd?d	84747	15990	53-62
19044682Sbostic	rd?e	100737	246246	63-216
19144682Sbostic	rd?f	346983	246246	217-370
19244682Sbostic	rd?g	84747	1031355	53-697
19344682Sbostic	rd?h	593229	522873	371-697
19447672Scael
19547672Scael.Tn 7957B/7961B No partitions:
19647672Scael.Sy	disk	start	length	cyls
19744682Sbostic	rd?a	126	16002	1-127
19844682Sbostic	rd?b	16128	32760	128-387
19944682Sbostic	rd?c	0	159894	0-1268
20044682Sbostic	rd?d	16128	49140	128-517
20144682Sbostic	rd?e	65268	50400	518-917
20244682Sbostic	rd?f	115668	44226	918-1268
20344682Sbostic	rd?g	48888	111006	388-1268
20444682Sbostic	rd?h	65268	94626	518-1268
20547672Scael
20647672Scael.Tn 7958B/7962B No partitions:
20747672Scael.Sy	disk	start	length	cyls
20844682Sbostic	rd?a	378	16254	1-43
20944682Sbostic	rd?b	16632	32886	44-130
21044682Sbostic	rd?c	0	297108	0-785
21144682Sbostic	rd?d	16632	49140	44-173
21244682Sbostic	rd?e	65772	121716	174-495
21344682Sbostic	rd?f	187488	109620	496-785
21444682Sbostic	rd?g	49518	247590	131-785
21544682Sbostic	rd?h	65772	231336	174-785
21647672Scael
21747672Scael.Tn 7959B/7963B No partitions:
21847672Scael.Sy	disk	start	length	cyls
21944682Sbostic	rd?a	378	16254	1-43
22044682Sbostic	rd?b	16632	49140	44-173
22144682Sbostic	rd?c	0	594216	0-1571
22244682Sbostic	rd?d	16632	65772	44-217
22344682Sbostic	rd?e	82404	303912	218-1021
22444682Sbostic	rd?f	386316	207900	1022-1571
22544682Sbostic	rd?g	65772	528444	174-1571
22644682Sbostic	rd?h	82404	511812	218-1571
22747672Scael.El
22847672Scael.Pp
22944682SbosticThe eight partitions as given support four basic, non-overlapping layouts,
23044682Sbosticthough not all partitions exist on all drive types.
23147672Scael.Pp
23244682SbosticIn the first layout there are three partitions and a ``bootblock'' area.
23344682SbosticThe bootblock area is at the beginning of the disk and holds
23444682Sbosticthe standalone disk boot program.
23547672ScaelThe
23647672Scael.Pa rd?a
23747672Scaelpartition is for the root file system,
23847672Scael.Pa rd?b
23947672Scaelis a paging/swapping area, and
24047672Scael.Pa rd?g
24147672Scaelis for everything else.
24247672Scael.Pp
24344682SbosticThe second layout is the same idea,
24447672Scaelbut has a larger paging/swapping partition
24547672Scael.Pq Pa rd?d
24647672Scaeland
24747672Scaela smaller ``everything else'' partition
24847672Scael.Pq Pa rd?h .
24944682SbosticThis layout is better for environments which run many large processes.
25047672Scael.Pp
25144682SbosticThe third layout is a variation of the second,
25247672Scaelbut breaks the
25347672Scael.Pa rd?h
25447672Scaelpartition into two partitions,
25547672Scael.Pa rd?e
25647672Scaeland
25747672Scael.Pa rd?f .
25847672Scael.Pp
25944682SbosticThe final layout is intended for a large, single file system second disk.
26044682SbosticIt is also used when writing out the boot program since it is the only
26144682Sbosticpartition mapping the bootblock area.
26247672Scael.Sh FILES
26347672Scael.Bl -tag -width /dev/rrd[0-7][a-h] -compact
26447672Scael.It Pa /dev/rd[0-7][a-h]
26547672Scaelblock files
26647672Scael.It Pa /dev/rrd[0-7][a-h]
26747672Scaelraw files
26847672Scael.El
26947672Scael.Sh DIAGNOSTICS
27047672Scael.Bl -diag
27147672Scael.It "rd%d err: v%d u%d, R0x%x F0x%x A0x%x I0x%x, block %d"
27244682SbosticAn unrecoverable data error occurred during transfer of the
27344682Sbosticspecified block on the specified disk.
27447672Scael.El
27547672Scael.Sh BUGS
27644682SbosticThe current disk partitioning is totally bogus.
27747672Scael.Tn CS/80
27847672Scaeldrives have 256 byte sectors which are mapped to 512 byte
27944682Sbostic``sectors'' by the driver.
28047672ScaelSince some
28147672Scael.Tn CS/80
28247672Scaeldrives have an odd number of sectors per cylinder,
28344682Sbosticthe disk geometry used is not always accurate.
28447672Scael.Pp
28544682SbosticThe partition tables for the file systems should be read off of each pack,
28644682Sbosticas they are never quite what any single installation would prefer,
28744682Sbosticand this would make packs more portable.
28847672Scael.Pp
28944682SbosticA program to analyze the logged error information (even in its
29044682Sbosticpresent reduced form) is needed.
291