xref: /netbsd/share/man/man5/disktab.5 (revision bf9ec67e)
1.\"	$NetBSD: disktab.5,v 1.9 2002/02/13 08:18:10 ross 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
39.Sh NAME
40.Nm disktab
41.Nd disk description file
42.Sh SYNOPSIS
43.Fd #include \*[Lt]disktab.h\*[Gt]
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 data base.  Entries in
57.Nm
58consist of a number of `:' separated fields.  The
59first entry for each disk gives the names which are
60known for the disk, separated by `|' characters.  The
61last name given should be a long name fully identifying
62the disk.
63.Pp
64The following list indicates the normal values
65stored for each disk entry.
66.Bl -column "indent" "boolx"
67.It Sy Name	Type	Description
68.It "\&ty	str	Type of disk (e.g. removable, winchester)"
69.It "\&dt	str	Type of controller (e.g."
70.Tn SMD , ESDI ,
71floppy)
72.It "\&ns	num	Number of sectors per track"
73.It "\&nt	num	Number of tracks per cylinder"
74.It "\&nc	num	Total number of cylinders on the disk"
75.It "\&sc	num	Number of sectors per cylinder, ns*nt default"
76.It "\&su	num	Number of sectors per unit, sc*nc default"
77.It "\&se	num	Sector size in bytes,"
78.Dv DEV_BSIZE
79default
80.It "\&sf	bool	Controller supports bad144-style bad sector forwarding"
81.It "\&rm	num	Rotation speed, rpm, 3600 default"
82.It "\&sk	num	Sector skew per track, default 0"
83.It "\&cs	num	Sector skew per cylinder, default 0"
84.It "\&hs	num	Headswitch time, usec, default 0"
85.It "\&ts	num	One-cylinder seek time, usec, default 0"
86.It "\&il	num	Sector interleave (n:1), 1 default"
87.It "\&d[0-4]	num	Drive-type-dependent parameters"
88.It "\&bs	num	Boot block size, default"
89.Dv BBSIZE
90.It "\&sb	num	Superblock size, default"
91.Dv SBSIZE
92.It "\&ba	num	Block size for partition `a' (bytes)"
93.It "\&bd	num	Block size for partition `d' (bytes)"
94.It "\&be	num	Block size for partition `e' (bytes)"
95.It "\&bf	num	Block size for partition `f' (bytes)"
96.It "\&bg	num	Block size for partition `g' (bytes)"
97.It "\&bh	num	Block size for partition `h' (bytes)"
98.It "\&fa	num	Fragment size for partition `a' (bytes)"
99.It "\&fd	num	Fragment size for partition `d' (bytes)"
100.It "\&fe	num	Fragment size for partition `e' (bytes)"
101.It "\&ff	num	Fragment size for partition `f' (bytes)"
102.It "\&fg	num	Fragment size for partition `g' (bytes)"
103.It "\&fh	num	Fragment size for partition `h' (bytes)"
104.It "\&oa	num	Offset of partition `a' in sectors"
105.It "\&ob	num	Offset of partition `b' in sectors"
106.It "\&oc	num	Offset of partition `c' in sectors"
107.It "\&od	num	Offset of partition `d' in sectors"
108.It "\&oe	num	Offset of partition `e' in sectors"
109.It "\&of	num	Offset of partition `f' in sectors"
110.It "\&og	num	Offset of partition `g' in sectors"
111.It "\&oh	num	Offset of partition `h' in sectors"
112.It "\&pa	num	Size of partition `a' in sectors"
113.It "\&pb	num	Size of partition `b' in sectors"
114.It "\&pc	num	Size of partition `c' in sectors"
115.It "\&pd	num	Size of partition `d' in sectors"
116.It "\&pe	num	Size of partition `e' in sectors"
117.It "\&pf	num	Size of partition `f' in sectors"
118.It "\&pg	num	Size of partition `g' in sectors"
119.It "\&ph	num	Size of partition `h' in sectors"
120.It "\&ta	str	Partition type of partition `a'"
121.Pf ( Bx 4.2
122filesystem, swap, etc)
123.It "\&tb	str	Partition type of partition `b'"
124.It "\&tc	str	Partition type of partition `c'"
125.It "\&td	str	Partition type of partition `d'"
126.It "\&te	str	Partition type of partition `e'"
127.It "\&tf	str	Partition type of partition `f'"
128.It "\&tg	str	Partition type of partition `g'"
129.It "\&th	str	Partition type of partition `h'"
130.El
131.Sh FILES
132.Bl -tag -width /etc/disktab -compact
133.It Pa /etc/disktab
134.El
135.Sh SEE ALSO
136.Xr getdiskbyname 3 ,
137.Xr disklabel 5 ,
138.Xr disklabel 8 ,
139.Xr newfs 8
140.Sh HISTORY
141The
142.Nm
143description file appeared in
144.Bx 4.2 .
145