xref: /openbsd-src/share/man/man5/disktab.5 (revision c0a65584a79812e87f592860ebd3a49db8c371ec)
1*c0a65584Skrw.\"	$OpenBSD: disktab.5,v 1.23 2022/11/07 10:21:17 krw Exp $
2df930be7Sderaadt.\"	$NetBSD: disktab.5,v 1.4 1994/11/30 19:31:15 jtc Exp $
3df930be7Sderaadt.\"
4df930be7Sderaadt.\" Copyright (c) 1983, 1991, 1993
5df930be7Sderaadt.\"	The Regents of the University of California.  All rights reserved.
6df930be7Sderaadt.\"
7df930be7Sderaadt.\" Redistribution and use in source and binary forms, with or without
8df930be7Sderaadt.\" modification, are permitted provided that the following conditions
9df930be7Sderaadt.\" are met:
10df930be7Sderaadt.\" 1. Redistributions of source code must retain the above copyright
11df930be7Sderaadt.\"    notice, this list of conditions and the following disclaimer.
12df930be7Sderaadt.\" 2. Redistributions in binary form must reproduce the above copyright
13df930be7Sderaadt.\"    notice, this list of conditions and the following disclaimer in the
14df930be7Sderaadt.\"    documentation and/or other materials provided with the distribution.
1529295d1cSmillert.\" 3. Neither the name of the University nor the names of its contributors
16df930be7Sderaadt.\"    may be used to endorse or promote products derived from this software
17df930be7Sderaadt.\"    without specific prior written permission.
18df930be7Sderaadt.\"
19df930be7Sderaadt.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20df930be7Sderaadt.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21df930be7Sderaadt.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22df930be7Sderaadt.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23df930be7Sderaadt.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24df930be7Sderaadt.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25df930be7Sderaadt.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26df930be7Sderaadt.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27df930be7Sderaadt.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28df930be7Sderaadt.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29df930be7Sderaadt.\" SUCH DAMAGE.
30df930be7Sderaadt.\"
31df930be7Sderaadt.\"     @(#)disktab.5	8.1 (Berkeley) 6/5/93
32df930be7Sderaadt.\"
33*c0a65584Skrw.Dd $Mdocdate: November 7 2022 $
34df930be7Sderaadt.Dt DISKTAB 5
35fc8533a3Saaron.Os
36df930be7Sderaadt.Sh NAME
37df930be7Sderaadt.Nm disktab
38df930be7Sderaadt.Nd disk description file
39df930be7Sderaadt.Sh DESCRIPTION
40fbd19cc4Saaron.Nm
41df930be7Sderaadtis a simple database which describes disk geometries and
42df930be7Sderaadtdisk partition characteristics.
43df930be7SderaadtIt is used
44df930be7Sderaadtto initialize the disk label on the disk.
45431305c8SaaronThe format is patterned after the
46df930be7Sderaadt.Xr termcap 5
471f53fde1Saaronterminal database.
481f53fde1SaaronEntries in
49fbd19cc4Saaron.Nm
50ae8c025fSaaronconsist of a number of colon
51431305c8Saaron.Pq Ql \&:
521f53fde1Saaronseparated fields.
531f53fde1SaaronThe first entry for each disk gives the names which are
54ae8c025fSaaronknown for the disk, separated by
55ae8c025fSaaron.Dq \&|
561f53fde1Saaroncharacters.
57431305c8SaaronThe last name given should be a long name fully identifying the disk.
58df930be7Sderaadt.Pp
59431305c8SaaronThe following list indicates the normal values stored for each disk entry:
60e324319bSjmc.Bl -column "d[0-4]" "bool" "Description"
61e324319bSjmc.It Sy Name Ta Sy Type Ta Sy Description
62e324319bSjmc.It \&dt Ta str Ta "Type of controller (e.g., SMD, ESDI, floppy)."
63e324319bSjmc.It \&ns Ta num Ta "Number of sectors per track."
64e324319bSjmc.It \&nt Ta num Ta "Number of tracks per cylinder."
65e324319bSjmc.It \&nc Ta num Ta "Total number of cylinders on the disk."
66e324319bSjmc.It \&sc Ta num Ta "Number of sectors per cylinder (default: ns*nt)."
67e324319bSjmc.It \&su Ta num Ta "Number of sectors per unit (default: sc*nc)."
68e324319bSjmc.It \&se Ta num Ta "Sector size in bytes (default:"
69ae8c025fSaaron.Dv DEV_BSIZE ) .
7010dd043fSjmc.Pp
71e324319bSjmc.It \&ba Ta num Ta "Block size for partition"
72ae8c025fSaaron.Dq a
73ae8c025fSaaron(bytes).
74e324319bSjmc.It \&bd Ta num Ta "Block size for partition"
75ae8c025fSaaron.Dq d
76ae8c025fSaaron(bytes).
77e324319bSjmc.It \&be Ta num Ta "Block size for partition"
78ae8c025fSaaron.Dq e
79ae8c025fSaaron(bytes).
80e324319bSjmc.It [...] Ta "" Ta ""
81e324319bSjmc.It \&bp Ta num Ta "Block size for partition"
8210dd043fSjmc.Dq p
83ae8c025fSaaron(bytes).
8410dd043fSjmc.Pp
85e324319bSjmc.It \&fa Ta num Ta "Fragment size for partition"
86ae8c025fSaaron.Dq a
87ae8c025fSaaron(bytes).
88e324319bSjmc.It \&fd Ta num Ta "Fragment size for partition"
89ae8c025fSaaron.Dq d
90ae8c025fSaaron(bytes).
91e324319bSjmc.It \&fe Ta num Ta "Fragment size for partition"
92ae8c025fSaaron.Dq e
93ae8c025fSaaron(bytes).
94e324319bSjmc.It [...] Ta "" Ta ""
95e324319bSjmc.It \&fp Ta num Ta "Fragment size for partition"
9610dd043fSjmc.Dq p
97ae8c025fSaaron(bytes).
9810dd043fSjmc.Pp
99e324319bSjmc.It \&oa Ta num Ta "Offset of partition"
100ae8c025fSaaron.Dq a
101ae8c025fSaaron(sectors).
102e324319bSjmc.It \&ob Ta num Ta "Offset of partition"
103ae8c025fSaaron.Dq b
104ae8c025fSaaron(sectors).
105e324319bSjmc.It \&oc Ta num Ta "Offset of partition"
106ae8c025fSaaron.Dq c
107ae8c025fSaaron(sectors).
108e324319bSjmc.It [...] Ta "" Ta ""
109e324319bSjmc.It \&op Ta num Ta "Offset of partition"
11010dd043fSjmc.Dq p
111ae8c025fSaaron(sectors).
11210dd043fSjmc.Pp
113e324319bSjmc.It \&pa Ta num Ta "Size of partition"
114ae8c025fSaaron.Dq a
115ae8c025fSaaron(sectors).
116e324319bSjmc.It \&pb Ta num Ta "Size of partition"
117ae8c025fSaaron.Dq b
118ae8c025fSaaron(sectors).
119e324319bSjmc.It \&pc Ta num Ta "Size of partition"
120ae8c025fSaaron.Dq c
121ae8c025fSaaron(sectors).
122e324319bSjmc.It [...] Ta "" Ta ""
123e324319bSjmc.It \&pp Ta num Ta "Size of partition"
12410dd043fSjmc.Dq p
125ae8c025fSaaron(sectors).
12610dd043fSjmc.Pp
127e324319bSjmc.It \&ta Ta str Ta "Type of partition"
128ae8c025fSaaron.Dq a
129ae8c025fSaaron(4.2BSD, swap, etc.).
130e324319bSjmc.It \&tb Ta str Ta "Type of partition"
131ae8c025fSaaron.Dq b .
132e324319bSjmc.It \&tc Ta str Ta "Type of partition"
133ae8c025fSaaron.Dq c .
134e324319bSjmc.It [...] Ta "" Ta ""
135e324319bSjmc.It \&tp Ta str Ta "Type of partition"
13610dd043fSjmc.Dq p .
137df930be7Sderaadt.El
138df930be7Sderaadt.Sh FILES
139df930be7Sderaadt.Bl -tag -width /etc/disktab -compact
140df930be7Sderaadt.It Pa /etc/disktab
141df930be7Sderaadt.El
142df930be7Sderaadt.Sh SEE ALSO
143df930be7Sderaadt.Xr getdiskbyname 3 ,
144df930be7Sderaadt.Xr disklabel 5 ,
145df930be7Sderaadt.Xr disklabel 8 ,
146df930be7Sderaadt.Xr newfs 8
147df930be7Sderaadt.Sh HISTORY
148df930be7SderaadtThe
149df930be7Sderaadt.Nm
150df930be7Sderaadtdescription file appeared in
151df930be7Sderaadt.Bx 4.2 .
152