xref: /freebsd/share/man/man5/disktab.5 (revision 22762537b0337d043ad69825a42f316bf717d972)
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.
12afe61c15SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software
13afe61c15SRodney W. Grimes.\"    must display the following acknowledgement:
14afe61c15SRodney W. Grimes.\"	This product includes software developed by the University of
15afe61c15SRodney W. Grimes.\"	California, Berkeley and its contributors.
16afe61c15SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors
17afe61c15SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
18afe61c15SRodney W. Grimes.\"    without specific prior written permission.
19afe61c15SRodney W. Grimes.\"
20afe61c15SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21afe61c15SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22afe61c15SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23afe61c15SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24afe61c15SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25afe61c15SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26afe61c15SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27afe61c15SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28afe61c15SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29afe61c15SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30afe61c15SRodney W. Grimes.\" SUCH DAMAGE.
31afe61c15SRodney W. Grimes.\"
32afe61c15SRodney W. Grimes.\"     @(#)disktab.5	8.1 (Berkeley) 6/5/93
337f3dea24SPeter Wemm.\" $FreeBSD$
34afe61c15SRodney W. Grimes.\"
3522762537SRuslan Ermilov.Dd October 14, 2006
36afe61c15SRodney W. Grimes.Dt DISKTAB 5
373d45e180SRuslan Ermilov.Os
38afe61c15SRodney W. Grimes.Sh NAME
39afe61c15SRodney W. Grimes.Nm disktab
40afe61c15SRodney W. Grimes.Nd disk description file
41afe61c15SRodney W. Grimes.Sh SYNOPSIS
4268afb5a5SPoul-Henning Kamp.In disklabel.h
43afe61c15SRodney W. Grimes.Sh DESCRIPTION
44afe61c15SRodney W. Grimes.Nm Disktab
45afe61c15SRodney W. Grimesis a simple database which describes disk geometries and
46afe61c15SRodney W. Grimesdisk partition characteristics.
47afe61c15SRodney W. GrimesIt is used
48afe61c15SRodney W. Grimes.\"by the formatter(\c
49afe61c15SRodney W. Grimes.\"IR.Xr format 8 )
50afe61c15SRodney W. Grimes.\"to determine how to format the disk, and
51afe61c15SRodney W. Grimesto initialize the disk label on the disk.
52afe61c15SRodney W. GrimesThe format is patterned
53afe61c15SRodney W. Grimesafter the
54afe61c15SRodney W. Grimes.Xr termcap 5
555203edcdSRuslan Ermilovterminal data base.
565203edcdSRuslan ErmilovEntries in
574b66483fSRuslan Ermilov.Nm
585203edcdSRuslan Ermilovconsist of a number of `:'-separated fields.
595203edcdSRuslan ErmilovThe
601641931aSTom Rhodesfirst field for each entry gives the names by which a
615203edcdSRuslan Ermilovdisk's entry may be selected, separated by `|' characters.
625203edcdSRuslan ErmilovThe
63afe61c15SRodney W. Grimeslast name given should be a long name fully identifying
64afe61c15SRodney W. Grimesthe disk.
65afe61c15SRodney W. Grimes.Pp
661641931aSTom RhodesThe optional fields for each entry are:
67afe61c15SRodney W. Grimes.Bl -column "indent" "boolx"
681641931aSTom Rhodes.It Sy "ID	Type	Description"
69afe61c15SRodney W. Grimes.It "\&ty	str	Type of disk (e.g. removable, winchester)"
70afe61c15SRodney W. Grimes.It "\&dt	str	Type of controller (e.g."
71afe61c15SRodney W. Grimes.Tn SMD , ESDI ,
72afe61c15SRodney W. Grimesfloppy)
73afe61c15SRodney W. Grimes.It "\&ns	num	Number of sectors per track"
74afe61c15SRodney W. Grimes.It "\&nt	num	Number of tracks per cylinder"
75afe61c15SRodney W. Grimes.It "\&nc	num	Total number of cylinders on the disk"
767c5efe36SYaroslav Tykhiy.It "\&sc	num	Number of sectors per cylinder, ns*nt default"
77afe61c15SRodney W. Grimes.It "\&su	num	Number of sectors per unit, sc*nc default"
78afe61c15SRodney W. Grimes.It "\&se	num	Sector size in bytes,"
79afe61c15SRodney W. Grimes.Dv DEV_BSIZE
80afe61c15SRodney W. Grimesdefault
81afe61c15SRodney W. Grimes.It "\&sf	bool	Controller supports bad144-style bad sector forwarding"
82afe61c15SRodney W. Grimes.It "\&rm	num	Rotation speed, rpm, 3600 default"
83afe61c15SRodney W. Grimes.It "\&sk	num	Sector skew per track, default 0"
84afe61c15SRodney W. Grimes.It "\&cs	num	Sector skew per cylinder, default 0"
85afe61c15SRodney W. Grimes.It "\&hs	num	Headswitch time, usec, default 0"
86afe61c15SRodney W. Grimes.It "\&ts	num	One-cylinder seek time, usec, default 0"
87afe61c15SRodney W. Grimes.It "\&il	num	Sector interleave (n:1), 1 default"
88afe61c15SRodney W. Grimes.It "\&d[0-4]	num	Drive-type-dependent parameters"
89afe61c15SRodney W. Grimes.It "\&bs	num	Boot block size, default"
90afe61c15SRodney W. Grimes.Dv BBSIZE
9122762537SRuslan Ermilov.It "\&sb	num	Superblock size, default 0"
92afe61c15SRodney W. Grimes.It "\&ba	num	Block size for partition `a' (bytes)"
93afe61c15SRodney W. Grimes.It "\&bd	num	Block size for partition `d' (bytes)"
94afe61c15SRodney W. Grimes.It "\&be	num	Block size for partition `e' (bytes)"
95afe61c15SRodney W. Grimes.It "\&bf	num	Block size for partition `f' (bytes)"
96afe61c15SRodney W. Grimes.It "\&bg	num	Block size for partition `g' (bytes)"
97afe61c15SRodney W. Grimes.It "\&bh	num	Block size for partition `h' (bytes)"
98afe61c15SRodney W. Grimes.It "\&fa	num	Fragment size for partition `a' (bytes)"
99afe61c15SRodney W. Grimes.It "\&fd	num	Fragment size for partition `d' (bytes)"
100019f1378SMike Pritchard.It "\&fe	num	Fragment size for partition `e' (bytes)"
101afe61c15SRodney W. Grimes.It "\&ff	num	Fragment size for partition `f' (bytes)"
102afe61c15SRodney W. Grimes.It "\&fg	num	Fragment size for partition `g' (bytes)"
103afe61c15SRodney W. Grimes.It "\&fh	num	Fragment size for partition `h' (bytes)"
104afe61c15SRodney W. Grimes.It "\&oa	num	Offset of partition `a' in sectors"
105afe61c15SRodney W. Grimes.It "\&ob	num	Offset of partition `b' in sectors"
106afe61c15SRodney W. Grimes.It "\&oc	num	Offset of partition `c' in sectors"
107afe61c15SRodney W. Grimes.It "\&od	num	Offset of partition `d' in sectors"
108afe61c15SRodney W. Grimes.It "\&oe	num	Offset of partition `e' in sectors"
109afe61c15SRodney W. Grimes.It "\&of	num	Offset of partition `f' in sectors"
110afe61c15SRodney W. Grimes.It "\&og	num	Offset of partition `g' in sectors"
111afe61c15SRodney W. Grimes.It "\&oh	num	Offset of partition `h' in sectors"
112afe61c15SRodney W. Grimes.It "\&pa	num	Size of partition `a' in sectors"
113afe61c15SRodney W. Grimes.It "\&pb	num	Size of partition `b' in sectors"
114afe61c15SRodney W. Grimes.It "\&pc	num	Size of partition `c' in sectors"
115afe61c15SRodney W. Grimes.It "\&pd	num	Size of partition `d' in sectors"
116afe61c15SRodney W. Grimes.It "\&pe	num	Size of partition `e' in sectors"
117afe61c15SRodney W. Grimes.It "\&pf	num	Size of partition `f' in sectors"
118afe61c15SRodney W. Grimes.It "\&pg	num	Size of partition `g' in sectors"
119afe61c15SRodney W. Grimes.It "\&ph	num	Size of partition `h' in sectors"
120afe61c15SRodney W. Grimes.It "\&ta	str	Partition type of partition `a'"
121afe61c15SRodney W. Grimes.Pf ( Bx 4.2
122afe61c15SRodney W. Grimesfile system, swap, etc)
123afe61c15SRodney W. Grimes.It "\&tb	str	Partition type of partition `b'"
124afe61c15SRodney W. Grimes.It "\&tc	str	Partition type of partition `c'"
125afe61c15SRodney W. Grimes.It "\&td	str	Partition type of partition `d'"
126afe61c15SRodney W. Grimes.It "\&te	str	Partition type of partition `e'"
127afe61c15SRodney W. Grimes.It "\&tf	str	Partition type of partition `f'"
128afe61c15SRodney W. Grimes.It "\&tg	str	Partition type of partition `g'"
129afe61c15SRodney W. Grimes.It "\&th	str	Partition type of partition `h'"
130afe61c15SRodney W. Grimes.El
131afe61c15SRodney W. Grimes.Sh FILES
132afe61c15SRodney W. Grimes.Bl -tag -width /etc/disktab -compact
133afe61c15SRodney W. Grimes.It Pa /etc/disktab
134afe61c15SRodney W. Grimes.El
135afe61c15SRodney W. Grimes.Sh SEE ALSO
136afe61c15SRodney W. Grimes.Xr getdiskbyname 3 ,
13778ad5421SRuslan Ermilov.\" .Xr bsdlabel 5 ,
1384c8df2dfSGiorgos Keramidas.Xr bsdlabel 8 ,
139afe61c15SRodney W. Grimes.Xr newfs 8
140afe61c15SRodney W. Grimes.Sh HISTORY
141afe61c15SRodney W. GrimesThe
142afe61c15SRodney W. Grimes.Nm
143afe61c15SRodney W. Grimesdescription file appeared in
144afe61c15SRodney W. Grimes.Bx 4.2 .
145