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