1.\" $OpenBSD: disktab.5,v 1.19 2018/09/20 16:16:52 tb 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: September 20 2018 $ 34.Dt DISKTAB 5 35.Os 36.Sh NAME 37.Nm disktab 38.Nd disk description file 39.Sh SYNOPSIS 40.In disktab.h 41.Sh DESCRIPTION 42.Nm 43is a simple database which describes disk geometries and 44disk partition characteristics. 45It is used 46to initialize the disk label on the disk. 47The format is patterned after the 48.Xr termcap 5 49terminal database. 50Entries in 51.Nm 52consist of a number of colon 53.Pq Ql \&: 54separated fields. 55The first entry for each disk gives the names which are 56known for the disk, separated by 57.Dq \&| 58characters. 59The last name given should be a long name fully identifying the disk. 60.Pp 61The following list indicates the normal values stored for each disk entry: 62.Bl -column "d[0-4]" "bool" "Description" 63.It Sy Name Ta Sy Type Ta Sy Description 64.It \&dt Ta str Ta "Type of controller (e.g., SMD, ESDI, floppy)." 65.It \&ns Ta num Ta "Number of sectors per track." 66.It \&nt Ta num Ta "Number of tracks per cylinder." 67.It \&nc Ta num Ta "Total number of cylinders on the disk." 68.It \&sc Ta num Ta "Number of sectors per cylinder (default: ns*nt)." 69.It \&su Ta num Ta "Number of sectors per unit (default: sc*nc)." 70.It \&se Ta num Ta "Sector size in bytes (default:" 71.Dv DEV_BSIZE ) . 72.It \&sf Ta bool Ta "Controller supports bad144-style bad sector forwarding." 73.It \&d[0-4] Ta num Ta "Drive-type-dependent parameters." 74.It \&bs Ta num Ta "Boot block size (default:" 75.Dv BBSIZE ) . 76.It \&sb Ta num Ta "Superblock size (default: " 77.Dv SBSIZE ) . 78.Pp 79.It \&ba Ta num Ta "Block size for partition" 80.Dq a 81(bytes). 82.It \&bd Ta num Ta "Block size for partition" 83.Dq d 84(bytes). 85.It \&be Ta num Ta "Block size for partition" 86.Dq e 87(bytes). 88.It [...] Ta "" Ta "" 89.It \&bp Ta num Ta "Block size for partition" 90.Dq p 91(bytes). 92.Pp 93.It \&fa Ta num Ta "Fragment size for partition" 94.Dq a 95(bytes). 96.It \&fd Ta num Ta "Fragment size for partition" 97.Dq d 98(bytes). 99.It \&fe Ta num Ta "Fragment size for partition" 100.Dq e 101(bytes). 102.It [...] Ta "" Ta "" 103.It \&fp Ta num Ta "Fragment size for partition" 104.Dq p 105(bytes). 106.Pp 107.It \&oa Ta num Ta "Offset of partition" 108.Dq a 109(sectors). 110.It \&ob Ta num Ta "Offset of partition" 111.Dq b 112(sectors). 113.It \&oc Ta num Ta "Offset of partition" 114.Dq c 115(sectors). 116.It [...] Ta "" Ta "" 117.It \&op Ta num Ta "Offset of partition" 118.Dq p 119(sectors). 120.Pp 121.It \&pa Ta num Ta "Size of partition" 122.Dq a 123(sectors). 124.It \&pb Ta num Ta "Size of partition" 125.Dq b 126(sectors). 127.It \&pc Ta num Ta "Size of partition" 128.Dq c 129(sectors). 130.It [...] Ta "" Ta "" 131.It \&pp Ta num Ta "Size of partition" 132.Dq p 133(sectors). 134.Pp 135.It \&ta Ta str Ta "Type of partition" 136.Dq a 137(4.2BSD, swap, etc.). 138.It \&tb Ta str Ta "Type of partition" 139.Dq b . 140.It \&tc Ta str Ta "Type of partition" 141.Dq c . 142.It [...] Ta "" Ta "" 143.It \&tp Ta str Ta "Type of partition" 144.Dq p . 145.El 146.Sh FILES 147.Bl -tag -width /etc/disktab -compact 148.It Pa /etc/disktab 149.El 150.Sh SEE ALSO 151.Xr getdiskbyname 3 , 152.Xr disklabel 5 , 153.Xr disklabel 8 , 154.Xr newfs 8 155.Sh HISTORY 156The 157.Nm 158description file appeared in 159.Bx 4.2 . 160