xref: /freebsd/share/man/man5/disktab.5 (revision 3494f7c0)
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. Neither the name of the University nor the names of its contributors
13.\"    may be used to endorse or promote products derived from this software
14.\"    without specific prior written permission.
15.\"
16.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.Dd October 14, 2006
29.Dt DISKTAB 5
30.Os
31.Sh NAME
32.Nm disktab
33.Nd disk description file
34.Sh SYNOPSIS
35.In disklabel.h
36.Sh DESCRIPTION
37.Nm Disktab
38is a simple database which describes disk geometries and
39disk partition characteristics.
40It is used
41.\"by the formatter(\c
42.\"IR.Xr format 8 )
43.\"to determine how to format the disk, and
44to initialize the disk label on the disk.
45The format is patterned
46after the
47.Xr termcap 5
48terminal data base.
49Entries in
50.Nm
51consist of a number of `:'-separated fields.
52The
53first field for each entry gives the names by which a
54disk's entry may be selected, separated by `|' characters.
55The
56last name given should be a long name fully identifying
57the disk.
58.Pp
59The optional fields for each entry are:
60.Bl -column "indent" "boolx"
61.It Sy "ID	Type	Description"
62.It "\&ty	str	Type of disk (e.g. removable, winchester)"
63.It "\&dt	str	Type of controller (e.g."
64.Tn SMD , ESDI ,
65floppy)
66.It "\&ns	num	Number of sectors per track"
67.It "\&nt	num	Number of tracks per cylinder"
68.It "\&nc	num	Total number of cylinders on the disk"
69.It "\&sc	num	Number of sectors per cylinder, ns*nt default"
70.It "\&su	num	Number of sectors per unit, sc*nc default"
71.It "\&se	num	Sector size in bytes,"
72.Dv DEV_BSIZE
73default
74.It "\&sf	bool	Controller supports bad144-style bad sector forwarding"
75.It "\&rm	num	Rotation speed, rpm, 3600 default"
76.It "\&sk	num	Sector skew per track, default 0"
77.It "\&cs	num	Sector skew per cylinder, default 0"
78.It "\&hs	num	Headswitch time, usec, default 0"
79.It "\&ts	num	One-cylinder seek time, usec, default 0"
80.It "\&il	num	Sector interleave (n:1), 1 default"
81.It "\&d[0-4]	num	Drive-type-dependent parameters"
82.It "\&bs	num	Boot block size, default"
83.Dv BBSIZE
84.It "\&sb	num	Superblock size, default 0"
85.It "\&ba	num	Block size for partition `a' (bytes)"
86.It "\&bd	num	Block size for partition `d' (bytes)"
87.It "\&be	num	Block size for partition `e' (bytes)"
88.It "\&bf	num	Block size for partition `f' (bytes)"
89.It "\&bg	num	Block size for partition `g' (bytes)"
90.It "\&bh	num	Block size for partition `h' (bytes)"
91.It "\&fa	num	Fragment size for partition `a' (bytes)"
92.It "\&fd	num	Fragment size for partition `d' (bytes)"
93.It "\&fe	num	Fragment size for partition `e' (bytes)"
94.It "\&ff	num	Fragment size for partition `f' (bytes)"
95.It "\&fg	num	Fragment size for partition `g' (bytes)"
96.It "\&fh	num	Fragment size for partition `h' (bytes)"
97.It "\&oa	num	Offset of partition `a' in sectors"
98.It "\&ob	num	Offset of partition `b' in sectors"
99.It "\&oc	num	Offset of partition `c' in sectors"
100.It "\&od	num	Offset of partition `d' in sectors"
101.It "\&oe	num	Offset of partition `e' in sectors"
102.It "\&of	num	Offset of partition `f' in sectors"
103.It "\&og	num	Offset of partition `g' in sectors"
104.It "\&oh	num	Offset of partition `h' in sectors"
105.It "\&pa	num	Size of partition `a' in sectors"
106.It "\&pb	num	Size of partition `b' in sectors"
107.It "\&pc	num	Size of partition `c' in sectors"
108.It "\&pd	num	Size of partition `d' in sectors"
109.It "\&pe	num	Size of partition `e' in sectors"
110.It "\&pf	num	Size of partition `f' in sectors"
111.It "\&pg	num	Size of partition `g' in sectors"
112.It "\&ph	num	Size of partition `h' in sectors"
113.It "\&ta	str	Partition type of partition `a'"
114.Pf ( Bx 4.2
115file system, swap, etc)
116.It "\&tb	str	Partition type of partition `b'"
117.It "\&tc	str	Partition type of partition `c'"
118.It "\&td	str	Partition type of partition `d'"
119.It "\&te	str	Partition type of partition `e'"
120.It "\&tf	str	Partition type of partition `f'"
121.It "\&tg	str	Partition type of partition `g'"
122.It "\&th	str	Partition type of partition `h'"
123.El
124.Sh FILES
125.Bl -tag -width /etc/disktab -compact
126.It Pa /etc/disktab
127.El
128.Sh SEE ALSO
129.Xr getdiskbyname 3 ,
130.Xr bsdlabel 8 ,
131.Xr newfs 8
132.Sh HISTORY
133The
134.Nm
135description file appeared in
136.Bx 4.2 .
137