xref: /openbsd-src/share/man/man5/disktab.5 (revision 62a742911104f98b9185b2c6b6007d9b1c36396c)
1.\"	$NetBSD: disktab.5,v 1.4 1994/11/30 19:31:15 jtc Exp $
2.\"
3.\" Copyright (c) 1983, 1991, 1993
4.\"	The Regents of the University of California.  All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software
15.\"    must display the following acknowledgement:
16.\"	This product includes software developed by the University of
17.\"	California, Berkeley and its contributors.
18.\" 4. Neither the name of the University nor the names of its contributors
19.\"    may be used to endorse or promote products derived from this software
20.\"    without specific prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\"     @(#)disktab.5	8.1 (Berkeley) 6/5/93
35.\"
36.Dd June 5, 1993
37.Dt DISKTAB 5
38.Os BSD 4.2
39.Sh NAME
40.Nm disktab
41.Nd disk description file
42.Sh SYNOPSIS
43.Fd #include <disktab.h>
44.Sh DESCRIPTION
45.Nm
46is a simple database which describes disk geometries and
47disk partition characteristics.
48It is used
49.\"by the formatter(\c
50.\"IR.Xr format 8 )
51.\"to determine how to format the disk, and
52to initialize the disk label on the disk.
53The format is patterned
54after the
55.Xr termcap 5
56terminal database.  Entries in
57.Nm
58consist of a number of colon
59.Pq Sq \&:
60separated fields.  The
61first entry for each disk gives the names which are
62known for the disk, separated by
63.Dq \&|
64characters.  The
65last name given should be a long name fully identifying
66the disk.
67.Pp
68The following list indicates the normal values
69stored for each disk entry:
70.Bl -column "indent" "boolx"
71.It Sy Name	Type	Description
72.It "\&ty	str	Type of disk (e.g., removable, winchester)."
73.It "\&dt	str	Type of controller (e.g.,"
74.Tn SMD , ESDI ,
75floppy).
76.It "\&ns	num	Number of sectors per track."
77.It "\&nt	num	Number of tracks per cylinder."
78.It "\&nc	num	Total number of cylinders on the disk."
79.It "\&sc	num	Number of sectors per cylinder (default: nc*nt)."
80.It "\&su	num	Number of sectors per unit (default: sc*nc)."
81.It "\&se	num	Sector size in bytes (default:"
82.Dv DEV_BSIZE ) .
83.It "\&sf	bool	Controller supports bad144-style bad sector forwarding."
84.It "\&rm	num	Rotation speed in RPM (default: 3600)."
85.It "\&sk	num	Sector skew per track (default: 0)."
86.It "\&cs	num	Sector skew per cylinder (default: 0)."
87.It "\&hs	num	Headswitch time in usec (default: 0)."
88.It "\&ts	num	One-cylinder seek time in usec (default: 0)."
89.It "\&il	num	Sector interleave (n:1) (default: 1)."
90.It "\&d[0-4]	num	Drive-type-dependent parameters."
91.It "\&bs	num	Boot block size (default:"
92.Dv BBSIZE ) .
93.It "\&sb	num	Superblock size (default: "
94.Dv SBSIZE ) .
95.It "\&ba	num	Block size for partition"
96.Dq a
97(bytes).
98.It "\&bd	num	Block size for partition"
99.Dq d
100(bytes).
101.It "\&be	num	Block size for partition"
102.Dq e
103(bytes).
104.It "\&bf	num	Block size for partition"
105.Dq f
106(bytes).
107.It "\&bg	num	Block size for partition"
108.Dq g
109(bytes).
110.It "\&bh	num	Block size for partition"
111.Dq h
112(bytes).
113.It "\&fa	num	Fragment size for partition"
114.Dq a
115(bytes).
116.It "\&fd	num	Fragment size for partition"
117.Dq d
118(bytes).
119.It "\&fe	num	Fragment size for partition"
120.Dq e
121(bytes).
122.It "\&ff	num	Fragment size for partition"
123.Dq f
124(bytes).
125.It "\&fg	num	Fragment size for partition"
126.Dq g
127(bytes).
128.It "\&fh	num	Fragment size for partition"
129.Dq h
130(bytes).
131.It "\&oa	num	Offset of partition"
132.Dq a
133(sectors).
134.It "\&ob	num	Offset of partition"
135.Dq b
136(sectors).
137.It "\&oc	num	Offset of partition"
138.Dq c
139(sectors).
140.It "\&od	num	Offset of partition"
141.Dq d
142(sectors).
143.It "\&oe	num	Offset of partition"
144.Dq e
145(sectors).
146.It "\&of	num	Offset of partition"
147.Dq f
148(sectors).
149.It "\&og	num	Offset of partition"
150.Dq g
151(sectors).
152.It "\&oh	num	Offset of partition"
153.Dq h
154(sectors).
155.It "\&pa	num	Size of partition"
156.Dq a
157(sectors).
158.It "\&pb	num	Size of partition"
159.Dq b
160(sectors).
161.It "\&pc	num	Size of partition"
162.Dq c
163(sectors).
164.It "\&pd	num	Size of partition"
165.Dq d
166(sectors).
167.It "\&pe	num	Size of partition"
168.Dq e
169(sectors).
170.It "\&pf	num	Size of partition"
171.Dq f
172(sectors).
173.It "\&pg	num	Size of partition"
174.Dq g
175(sectors).
176.It "\&ph	num	Size of partition"
177.Dq h
178(sectors).
179.It "\&ta	str	Type of partition"
180.Dq a
181(4.2BSD, swap, etc.).
182.It "\&tb	str	Type of partition"
183.Dq b .
184.It "\&tc	str	Type of partition"
185.Dq c .
186.It "\&td	str	Type of partition"
187.Dq d .
188.It "\&te	str	Type of partition"
189.Dq e .
190.It "\&tf	str	Type of partition"
191.Dq f .
192.It "\&tg	str	Type of partition"
193.Dq g .
194.It "\&th	str	Type of partition"
195.Dq h .
196.El
197.Sh FILES
198.Bl -tag -width /etc/disktab -compact
199.It Pa /etc/disktab
200.El
201.Sh SEE ALSO
202.Xr getdiskbyname 3 ,
203.Xr disklabel 5 ,
204.Xr disklabel 8 ,
205.Xr newfs 8
206.Sh HISTORY
207The
208.Nm
209description file appeared in
210.Bx 4.2 .
211