xref: /original-bsd/share/man/man5/disktab.5 (revision 1cfaf997)
1.\" Copyright (c) 1983, 1991 Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"     @(#)disktab.5	6.6 (Berkeley) 05/02/91
7.\"
8.Dd
9.Dt DISKTAB 5
10.Os BSD 4.2
11.Sh NAME
12.Nm disktab
13.Nd disk description file
14.Sh SYNOPSIS
15.Fd #include <disktab.h>
16.Sh DESCRIPTION
17.Nm Disktab
18is a simple database which describes disk geometries and
19disk partition characteristics.
20It is used
21.\"by the formatter(\c
22.\"IR.Xr format 8 )
23.\"to determine how to format the disk, and
24to initialize the disk label on the disk.
25The format is patterned
26after the
27.Xr termcap 5
28terminal data base.  Entries in
29.Nm disktab
30consist of a number of `:' separated fields.  The
31first entry for each disk gives the names which are
32known for the disk, separated by `|' characters.  The
33last name given should be a long name fully identifying
34the disk.
35.Pp
36The following list indicates the normal values
37stored for each disk entry.
38.Bl -column "indent" "boolx"
39.It Sy Name	Type	Description
40.It "\&ty	str	Type of disk (e.g. removable, winchester)"
41.It "\&dt	str	Type of controller (e.g."
42.Tn SMD , ESDI ,
43floppy)
44.It "\&ns	num	Number of sectors per track"
45.It "\&nt	num	Number of tracks per cylinder"
46.It "\&nc	num	Total number of cylinders on the disk"
47.It "\&sc	num	Number of sectors per cylinder, nc*nt default"
48.It "\&su	num	Number of sectors per unit, sc*nc default"
49.It "\&se	num	Sector size in bytes,"
50.Dv DEV_BSIZE
51default
52.It "\&sf	bool	Controller supports bad144-style bad sector forwarding"
53.It "\&rm	num	Rotation speed, rpm, 3600 default"
54.It "\&sk	num	Sector skew per track, default 0"
55.It "\&cs	num	Sector skew per cylinder, default 0"
56.It "\&hs	num	Headswitch time, usec, default 0"
57.It "\&ts	num	One-cylinder seek time, usec, default 0"
58.It "\&il	num	Sector interleave (n:1), 1 default"
59.It "\&d[0-4]	num	Drive-type-dependent parameters"
60.It "\&bs	num	Boot block size, default"
61.Dv BBSIZE
62.It "\&sb	num	Superblock size, default"
63.Dv SBSIZE
64.It "\&ba	num	Block size for partition `a' (bytes)"
65.It "\&bd	num	Block size for partition `d' (bytes)"
66.It "\&be	num	Block size for partition `e' (bytes)"
67.It "\&bf	num	Block size for partition `f' (bytes)"
68.It "\&bg	num	Block size for partition `g' (bytes)"
69.It "\&bh	num	Block size for partition `h' (bytes)"
70.It "\&fa	num	Fragment size for partition `a' (bytes)"
71.It "\&fd	num	Fragment size for partition `d' (bytes)"
72.It "\&fe	num	Fragment size or partition `e' (bytes)"
73.It "\&ff	num	Fragment size for partition `f' (bytes)"
74.It "\&fg	num	Fragment size for partition `g' (bytes)"
75.It "\&fh	num	Fragment size for partition `h' (bytes)"
76.It "\&oa	num	Offset of partition `a' in sectors"
77.It "\&ob	num	Offset of partition `b' in sectors"
78.It "\&oc	num	Offset of partition `c' in sectors"
79.It "\&od	num	Offset of partition `d' in sectors"
80.It "\&oe	num	Offset of partition `e' in sectors"
81.It "\&of	num	Offset of partition `f' in sectors"
82.It "\&og	num	Offset of partition `g' in sectors"
83.It "\&oh	num	Offset of partition `h' in sectors"
84.It "\&pa	num	Size of partition `a' in sectors"
85.It "\&pb	num	Size of partition `b' in sectors"
86.It "\&pc	num	Size of partition `c' in sectors"
87.It "\&pd	num	Size of partition `d' in sectors"
88.It "\&pe	num	Size of partition `e' in sectors"
89.It "\&pf	num	Size of partition `f' in sectors"
90.It "\&pg	num	Size of partition `g' in sectors"
91.It "\&ph	num	Size of partition `h' in sectors"
92.It "\&ta	str	Partition type of partition `a'"
93.Pf ( Bx 4.2
94filesystem, swap, etc)
95.It "\&tb	str	Partition type of partition `b'"
96.It "\&tc	str	Partition type of partition `c'"
97.It "\&td	str	Partition type of partition `d'"
98.It "\&te	str	Partition type of partition `e'"
99.It "\&tf	str	Partition type of partition `f'"
100.It "\&tg	str	Partition type of partition `g'"
101.It "\&th	str	Partition type of partition `h'"
102.El
103.Sh FILES
104.Bl -tag -width /etc/disktab -compact
105.It Pa /etc/disktab
106.El
107.Sh SEE ALSO
108.Xr getdiskbyname 3 ,
109.Xr disklabel 5 ,
110.Xr disklabel 8 ,
111.Xr newfs 8
112.Sh HISTORY
113The
114.Nm
115description file appeared in
116.Bx 4.2 .
117