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