xref: /freebsd/share/man/man5/disktab.5 (revision a9e8641da961bcf3d24afc85fd657f2083a872a2)
1.\" Copyright (c) 1983, 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\"    must display the following acknowledgement:
14.\"	This product includes software developed by the University of
15.\"	California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\"    may be used to endorse or promote products derived from this software
18.\"    without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\"     @(#)disktab.5	8.1 (Berkeley) 6/5/93
33.\" $FreeBSD$
34.\"
35.Dd October 14, 2006
36.Dt DISKTAB 5
37.Os
38.Sh NAME
39.Nm disktab
40.Nd disk description file
41.Sh SYNOPSIS
42.In disklabel.h
43.Sh DESCRIPTION
44.Nm Disktab
45is a simple database which describes disk geometries and
46disk partition characteristics.
47It is used
48.\"by the formatter(\c
49.\"IR.Xr format 8 )
50.\"to determine how to format the disk, and
51to initialize the disk label on the disk.
52The format is patterned
53after the
54.Xr termcap 5
55terminal data base.
56Entries in
57.Nm
58consist of a number of `:'-separated fields.
59The
60first field for each entry gives the names by which a
61disk's entry may be selected, separated by `|' characters.
62The
63last name given should be a long name fully identifying
64the disk.
65.Pp
66The optional fields for each entry are:
67.Bl -column "indent" "boolx"
68.It Sy "ID	Type	Description"
69.It "\&ty	str	Type of disk (e.g. removable, winchester)"
70.It "\&dt	str	Type of controller (e.g."
71.Tn SMD , ESDI ,
72floppy)
73.It "\&ns	num	Number of sectors per track"
74.It "\&nt	num	Number of tracks per cylinder"
75.It "\&nc	num	Total number of cylinders on the disk"
76.It "\&sc	num	Number of sectors per cylinder, ns*nt default"
77.It "\&su	num	Number of sectors per unit, sc*nc default"
78.It "\&se	num	Sector size in bytes,"
79.Dv DEV_BSIZE
80default
81.It "\&sf	bool	Controller supports bad144-style bad sector forwarding"
82.It "\&rm	num	Rotation speed, rpm, 3600 default"
83.It "\&sk	num	Sector skew per track, default 0"
84.It "\&cs	num	Sector skew per cylinder, default 0"
85.It "\&hs	num	Headswitch time, usec, default 0"
86.It "\&ts	num	One-cylinder seek time, usec, default 0"
87.It "\&il	num	Sector interleave (n:1), 1 default"
88.It "\&d[0-4]	num	Drive-type-dependent parameters"
89.It "\&bs	num	Boot block size, default"
90.Dv BBSIZE
91.It "\&sb	num	Superblock size, default 0"
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
122file system, 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 bsdlabel 8 ,
138.Xr newfs 8
139.Sh HISTORY
140The
141.Nm
142description file appeared in
143.Bx 4.2 .
144