xref: /freebsd/share/man/man5/disktab.5 (revision 97759ccc715c4b365432c16d763c50eecfcb1100)
1afe61c15SRodney W. Grimes.\" Copyright (c) 1983, 1991, 1993
2afe61c15SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
3afe61c15SRodney W. Grimes.\"
4afe61c15SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
5afe61c15SRodney W. Grimes.\" modification, are permitted provided that the following conditions
6afe61c15SRodney W. Grimes.\" are met:
7afe61c15SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
8afe61c15SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
9afe61c15SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
10afe61c15SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
11afe61c15SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
12*dda5b397SEitan Adler.\" 3. Neither the name of the University nor the names of its contributors
13afe61c15SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
14afe61c15SRodney W. Grimes.\"    without specific prior written permission.
15afe61c15SRodney W. Grimes.\"
16afe61c15SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17afe61c15SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18afe61c15SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19afe61c15SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20afe61c15SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21afe61c15SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22afe61c15SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23afe61c15SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24afe61c15SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25afe61c15SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26afe61c15SRodney W. Grimes.\" SUCH DAMAGE.
27afe61c15SRodney W. Grimes.\"
2822762537SRuslan Ermilov.Dd October 14, 2006
29afe61c15SRodney W. Grimes.Dt DISKTAB 5
303d45e180SRuslan Ermilov.Os
31afe61c15SRodney W. Grimes.Sh NAME
32afe61c15SRodney W. Grimes.Nm disktab
33afe61c15SRodney W. Grimes.Nd disk description file
34afe61c15SRodney W. Grimes.Sh SYNOPSIS
3568afb5a5SPoul-Henning Kamp.In disklabel.h
36afe61c15SRodney W. Grimes.Sh DESCRIPTION
37afe61c15SRodney W. Grimes.Nm Disktab
38afe61c15SRodney W. Grimesis a simple database which describes disk geometries and
39afe61c15SRodney W. Grimesdisk partition characteristics.
40afe61c15SRodney W. GrimesIt is used
41afe61c15SRodney W. Grimes.\"by the formatter(\c
42afe61c15SRodney W. Grimes.\"IR.Xr format 8 )
43afe61c15SRodney W. Grimes.\"to determine how to format the disk, and
44afe61c15SRodney W. Grimesto initialize the disk label on the disk.
45afe61c15SRodney W. GrimesThe format is patterned
46afe61c15SRodney W. Grimesafter the
47afe61c15SRodney W. Grimes.Xr termcap 5
485203edcdSRuslan Ermilovterminal data base.
495203edcdSRuslan ErmilovEntries in
504b66483fSRuslan Ermilov.Nm
515203edcdSRuslan Ermilovconsist of a number of `:'-separated fields.
525203edcdSRuslan ErmilovThe
531641931aSTom Rhodesfirst field for each entry gives the names by which a
545203edcdSRuslan Ermilovdisk's entry may be selected, separated by `|' characters.
555203edcdSRuslan ErmilovThe
56afe61c15SRodney W. Grimeslast name given should be a long name fully identifying
57afe61c15SRodney W. Grimesthe disk.
58afe61c15SRodney W. Grimes.Pp
591641931aSTom RhodesThe optional fields for each entry are:
60afe61c15SRodney W. Grimes.Bl -column "indent" "boolx"
611641931aSTom Rhodes.It Sy "ID	Type	Description"
62afe61c15SRodney W. Grimes.It "\&ty	str	Type of disk (e.g. removable, winchester)"
63afe61c15SRodney W. Grimes.It "\&dt	str	Type of controller (e.g."
64afe61c15SRodney W. Grimes.Tn SMD , ESDI ,
65afe61c15SRodney W. Grimesfloppy)
66afe61c15SRodney W. Grimes.It "\&ns	num	Number of sectors per track"
67afe61c15SRodney W. Grimes.It "\&nt	num	Number of tracks per cylinder"
68afe61c15SRodney W. Grimes.It "\&nc	num	Total number of cylinders on the disk"
697c5efe36SYaroslav Tykhiy.It "\&sc	num	Number of sectors per cylinder, ns*nt default"
70afe61c15SRodney W. Grimes.It "\&su	num	Number of sectors per unit, sc*nc default"
71afe61c15SRodney W. Grimes.It "\&se	num	Sector size in bytes,"
72afe61c15SRodney W. Grimes.Dv DEV_BSIZE
73afe61c15SRodney W. Grimesdefault
74afe61c15SRodney W. Grimes.It "\&sf	bool	Controller supports bad144-style bad sector forwarding"
75afe61c15SRodney W. Grimes.It "\&rm	num	Rotation speed, rpm, 3600 default"
76afe61c15SRodney W. Grimes.It "\&sk	num	Sector skew per track, default 0"
77afe61c15SRodney W. Grimes.It "\&cs	num	Sector skew per cylinder, default 0"
78afe61c15SRodney W. Grimes.It "\&hs	num	Headswitch time, usec, default 0"
79afe61c15SRodney W. Grimes.It "\&ts	num	One-cylinder seek time, usec, default 0"
80afe61c15SRodney W. Grimes.It "\&il	num	Sector interleave (n:1), 1 default"
81afe61c15SRodney W. Grimes.It "\&d[0-4]	num	Drive-type-dependent parameters"
82afe61c15SRodney W. Grimes.It "\&bs	num	Boot block size, default"
83afe61c15SRodney W. Grimes.Dv BBSIZE
8422762537SRuslan Ermilov.It "\&sb	num	Superblock size, default 0"
85afe61c15SRodney W. Grimes.It "\&ba	num	Block size for partition `a' (bytes)"
86afe61c15SRodney W. Grimes.It "\&bd	num	Block size for partition `d' (bytes)"
87afe61c15SRodney W. Grimes.It "\&be	num	Block size for partition `e' (bytes)"
88afe61c15SRodney W. Grimes.It "\&bf	num	Block size for partition `f' (bytes)"
89afe61c15SRodney W. Grimes.It "\&bg	num	Block size for partition `g' (bytes)"
90afe61c15SRodney W. Grimes.It "\&bh	num	Block size for partition `h' (bytes)"
91afe61c15SRodney W. Grimes.It "\&fa	num	Fragment size for partition `a' (bytes)"
92afe61c15SRodney W. Grimes.It "\&fd	num	Fragment size for partition `d' (bytes)"
93019f1378SMike Pritchard.It "\&fe	num	Fragment size for partition `e' (bytes)"
94afe61c15SRodney W. Grimes.It "\&ff	num	Fragment size for partition `f' (bytes)"
95afe61c15SRodney W. Grimes.It "\&fg	num	Fragment size for partition `g' (bytes)"
96afe61c15SRodney W. Grimes.It "\&fh	num	Fragment size for partition `h' (bytes)"
97afe61c15SRodney W. Grimes.It "\&oa	num	Offset of partition `a' in sectors"
98afe61c15SRodney W. Grimes.It "\&ob	num	Offset of partition `b' in sectors"
99afe61c15SRodney W. Grimes.It "\&oc	num	Offset of partition `c' in sectors"
100afe61c15SRodney W. Grimes.It "\&od	num	Offset of partition `d' in sectors"
101afe61c15SRodney W. Grimes.It "\&oe	num	Offset of partition `e' in sectors"
102afe61c15SRodney W. Grimes.It "\&of	num	Offset of partition `f' in sectors"
103afe61c15SRodney W. Grimes.It "\&og	num	Offset of partition `g' in sectors"
104afe61c15SRodney W. Grimes.It "\&oh	num	Offset of partition `h' in sectors"
105afe61c15SRodney W. Grimes.It "\&pa	num	Size of partition `a' in sectors"
106afe61c15SRodney W. Grimes.It "\&pb	num	Size of partition `b' in sectors"
107afe61c15SRodney W. Grimes.It "\&pc	num	Size of partition `c' in sectors"
108afe61c15SRodney W. Grimes.It "\&pd	num	Size of partition `d' in sectors"
109afe61c15SRodney W. Grimes.It "\&pe	num	Size of partition `e' in sectors"
110afe61c15SRodney W. Grimes.It "\&pf	num	Size of partition `f' in sectors"
111afe61c15SRodney W. Grimes.It "\&pg	num	Size of partition `g' in sectors"
112afe61c15SRodney W. Grimes.It "\&ph	num	Size of partition `h' in sectors"
113afe61c15SRodney W. Grimes.It "\&ta	str	Partition type of partition `a'"
114afe61c15SRodney W. Grimes.Pf ( Bx 4.2
115afe61c15SRodney W. Grimesfile system, swap, etc)
116afe61c15SRodney W. Grimes.It "\&tb	str	Partition type of partition `b'"
117afe61c15SRodney W. Grimes.It "\&tc	str	Partition type of partition `c'"
118afe61c15SRodney W. Grimes.It "\&td	str	Partition type of partition `d'"
119afe61c15SRodney W. Grimes.It "\&te	str	Partition type of partition `e'"
120afe61c15SRodney W. Grimes.It "\&tf	str	Partition type of partition `f'"
121afe61c15SRodney W. Grimes.It "\&tg	str	Partition type of partition `g'"
122afe61c15SRodney W. Grimes.It "\&th	str	Partition type of partition `h'"
123afe61c15SRodney W. Grimes.El
124afe61c15SRodney W. Grimes.Sh FILES
125afe61c15SRodney W. Grimes.Bl -tag -width /etc/disktab -compact
126afe61c15SRodney W. Grimes.It Pa /etc/disktab
127afe61c15SRodney W. Grimes.El
128afe61c15SRodney W. Grimes.Sh SEE ALSO
129afe61c15SRodney W. Grimes.Xr getdiskbyname 3 ,
1304c8df2dfSGiorgos Keramidas.Xr bsdlabel 8 ,
131afe61c15SRodney W. Grimes.Xr newfs 8
132afe61c15SRodney W. Grimes.Sh HISTORY
133afe61c15SRodney W. GrimesThe
134afe61c15SRodney W. Grimes.Nm
135afe61c15SRodney W. Grimesdescription file appeared in
136afe61c15SRodney W. Grimes.Bx 4.2 .
137