1.\" Copyright (c) 1983, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. 9.\" 2. Redistributions in binary form must reproduce the above copyright 10.\" notice, this list of conditions and the following disclaimer in the 11.\" documentation and/or other materials provided with the distribution. 12.\" 3. All advertising materials mentioning features or use of this software 13.\" must display the following acknowledgement: 14.\" This product includes software developed by the University of 15.\" California, Berkeley and its contributors. 16.\" 4. Neither the name of the University nor the names of its contributors 17.\" may be used to endorse or promote products derived from this software 18.\" without specific prior written permission. 19.\" 20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)disktab.5 8.1 (Berkeley) 6/5/93 33.\" 34.Dd June 5, 1993 35.Dt DISKTAB 5 36.Os BSD 4.2 37.Sh NAME 38.Nm disktab 39.Nd disk description file 40.Sh SYNOPSIS 41.Fd #include <disktab.h> 42.Sh DESCRIPTION 43.Nm Disktab 44is a simple database which describes disk geometries and 45disk partition characteristics. 46It is used 47.\"by the formatter(\c 48.\"IR.Xr format 8 ) 49.\"to determine how to format the disk, and 50to initialize the disk label on the disk. 51The format is patterned 52after the 53.Xr termcap 5 54terminal data base. Entries in 55.Nm disktab 56consist of a number of `:' separated fields. The 57first entry for each disk gives the names which are 58known for the disk, separated by `|' characters. The 59last name given should be a long name fully identifying 60the disk. 61.Pp 62The following list indicates the normal values 63stored for each disk entry. 64.Bl -column "indent" "boolx" 65.It Sy Name Type Description 66.It "\&ty str Type of disk (e.g. removable, winchester)" 67.It "\&dt str Type of controller (e.g." 68.Tn SMD , ESDI , 69floppy) 70.It "\&ns num Number of sectors per track" 71.It "\&nt num Number of tracks per cylinder" 72.It "\&nc num Total number of cylinders on the disk" 73.It "\&sc num Number of sectors per cylinder, nc*nt default" 74.It "\&su num Number of sectors per unit, sc*nc default" 75.It "\&se num Sector size in bytes," 76.Dv DEV_BSIZE 77default 78.It "\&sf bool Controller supports bad144-style bad sector forwarding" 79.It "\&rm num Rotation speed, rpm, 3600 default" 80.It "\&sk num Sector skew per track, default 0" 81.It "\&cs num Sector skew per cylinder, default 0" 82.It "\&hs num Headswitch time, usec, default 0" 83.It "\&ts num One-cylinder seek time, usec, default 0" 84.It "\&il num Sector interleave (n:1), 1 default" 85.It "\&d[0-4] num Drive-type-dependent parameters" 86.It "\&bs num Boot block size, default" 87.Dv BBSIZE 88.It "\&sb num Superblock size, default" 89.Dv SBSIZE 90.It "\&ba num Block size for partition `a' (bytes)" 91.It "\&bd num Block size for partition `d' (bytes)" 92.It "\&be num Block size for partition `e' (bytes)" 93.It "\&bf num Block size for partition `f' (bytes)" 94.It "\&bg num Block size for partition `g' (bytes)" 95.It "\&bh num Block size for partition `h' (bytes)" 96.It "\&fa num Fragment size for partition `a' (bytes)" 97.It "\&fd num Fragment size for partition `d' (bytes)" 98.It "\&fe num Fragment size or partition `e' (bytes)" 99.It "\&ff num Fragment size for partition `f' (bytes)" 100.It "\&fg num Fragment size for partition `g' (bytes)" 101.It "\&fh num Fragment size for partition `h' (bytes)" 102.It "\&oa num Offset of partition `a' in sectors" 103.It "\&ob num Offset of partition `b' in sectors" 104.It "\&oc num Offset of partition `c' in sectors" 105.It "\&od num Offset of partition `d' in sectors" 106.It "\&oe num Offset of partition `e' in sectors" 107.It "\&of num Offset of partition `f' in sectors" 108.It "\&og num Offset of partition `g' in sectors" 109.It "\&oh num Offset of partition `h' in sectors" 110.It "\&pa num Size of partition `a' in sectors" 111.It "\&pb num Size of partition `b' in sectors" 112.It "\&pc num Size of partition `c' in sectors" 113.It "\&pd num Size of partition `d' in sectors" 114.It "\&pe num Size of partition `e' in sectors" 115.It "\&pf num Size of partition `f' in sectors" 116.It "\&pg num Size of partition `g' in sectors" 117.It "\&ph num Size of partition `h' in sectors" 118.It "\&ta str Partition type of partition `a'" 119.Pf ( Bx 4.2 120filesystem, swap, etc) 121.It "\&tb str Partition type of partition `b'" 122.It "\&tc str Partition type of partition `c'" 123.It "\&td str Partition type of partition `d'" 124.It "\&te str Partition type of partition `e'" 125.It "\&tf str Partition type of partition `f'" 126.It "\&tg str Partition type of partition `g'" 127.It "\&th str Partition type of partition `h'" 128.El 129.Sh FILES 130.Bl -tag -width /etc/disktab -compact 131.It Pa /etc/disktab 132.El 133.Sh SEE ALSO 134.Xr getdiskbyname 3 , 135.Xr disklabel 5 , 136.Xr disklabel 8 , 137.Xr newfs 8 138.Sh HISTORY 139The 140.Nm 141description file appeared in 142.Bx 4.2 . 143