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