1*61609Sbostic.\" Copyright (c) 1983, 1991, 1993 2*61609Sbostic.\" The Regents of the University of California. All rights reserved. 320831Smckusick.\" 448927Scael.\" %sccs.include.redist.roff% 520831Smckusick.\" 6*61609Sbostic.\" @(#)disktab.5 8.1 (Berkeley) 06/05/93 748927Scael.\" 848927Scael.Dd 948927Scael.Dt DISKTAB 5 1048927Scael.Os BSD 4.2 1148927Scael.Sh NAME 1248927Scael.Nm disktab 1348927Scael.Nd disk description file 1448927Scael.Sh SYNOPSIS 1548927Scael.Fd #include <disktab.h> 1648927Scael.Sh DESCRIPTION 1748927Scael.Nm Disktab 1831571Skarelsis a simple database which describes disk geometries and 1931571Skarelsdisk partition characteristics. 2031571SkarelsIt is used 2131571Skarels.\"by the formatter(\c 2248927Scael.\"IR.Xr format 8 ) 2331571Skarels.\"to determine how to format the disk, and 2431571Skarelsto initialize the disk label on the disk. 2531571SkarelsThe format is patterned 2620831Smckusickafter the 2748927Scael.Xr termcap 5 2820831Smckusickterminal data base. Entries in 2948927Scael.Nm disktab 3020831Smckusickconsist of a number of `:' separated fields. The 3120831Smckusickfirst entry for each disk gives the names which are 3220831Smckusickknown for the disk, separated by `|' characters. The 3320831Smckusicklast name given should be a long name fully identifying 3420831Smckusickthe disk. 3548927Scael.Pp 3620831SmckusickThe following list indicates the normal values 3720831Smckusickstored for each disk entry. 3848927Scael.Bl -column "indent" "boolx" 3948927Scael.It Sy Name Type Description 4048927Scael.It "\&ty str Type of disk (e.g. removable, winchester)" 4148927Scael.It "\&dt str Type of controller (e.g." 4248927Scael.Tn SMD , ESDI , 4348927Scaelfloppy) 4448927Scael.It "\&ns num Number of sectors per track" 4548927Scael.It "\&nt num Number of tracks per cylinder" 4648927Scael.It "\&nc num Total number of cylinders on the disk" 4748927Scael.It "\&sc num Number of sectors per cylinder, nc*nt default" 4848927Scael.It "\&su num Number of sectors per unit, sc*nc default" 4948927Scael.It "\&se num Sector size in bytes," 5048927Scael.Dv DEV_BSIZE 5148927Scaeldefault 5248927Scael.It "\&sf bool Controller supports bad144-style bad sector forwarding" 5348927Scael.It "\&rm num Rotation speed, rpm, 3600 default" 5448927Scael.It "\&sk num Sector skew per track, default 0" 5548927Scael.It "\&cs num Sector skew per cylinder, default 0" 5648927Scael.It "\&hs num Headswitch time, usec, default 0" 5748927Scael.It "\&ts num One-cylinder seek time, usec, default 0" 5848927Scael.It "\&il num Sector interleave (n:1), 1 default" 5948927Scael.It "\&d[0-4] num Drive-type-dependent parameters" 6048927Scael.It "\&bs num Boot block size, default" 6148927Scael.Dv BBSIZE 6248927Scael.It "\&sb num Superblock size, default" 6348927Scael.Dv SBSIZE 6448927Scael.It "\&ba num Block size for partition `a' (bytes)" 6548927Scael.It "\&bd num Block size for partition `d' (bytes)" 6648927Scael.It "\&be num Block size for partition `e' (bytes)" 6748927Scael.It "\&bf num Block size for partition `f' (bytes)" 6848927Scael.It "\&bg num Block size for partition `g' (bytes)" 6948927Scael.It "\&bh num Block size for partition `h' (bytes)" 7048927Scael.It "\&fa num Fragment size for partition `a' (bytes)" 7148927Scael.It "\&fd num Fragment size for partition `d' (bytes)" 7248927Scael.It "\&fe num Fragment size or partition `e' (bytes)" 7348927Scael.It "\&ff num Fragment size for partition `f' (bytes)" 7448927Scael.It "\&fg num Fragment size for partition `g' (bytes)" 7548927Scael.It "\&fh num Fragment size for partition `h' (bytes)" 7648927Scael.It "\&oa num Offset of partition `a' in sectors" 7748927Scael.It "\&ob num Offset of partition `b' in sectors" 7848927Scael.It "\&oc num Offset of partition `c' in sectors" 7948927Scael.It "\&od num Offset of partition `d' in sectors" 8048927Scael.It "\&oe num Offset of partition `e' in sectors" 8148927Scael.It "\&of num Offset of partition `f' in sectors" 8248927Scael.It "\&og num Offset of partition `g' in sectors" 8348927Scael.It "\&oh num Offset of partition `h' in sectors" 8448927Scael.It "\&pa num Size of partition `a' in sectors" 8548927Scael.It "\&pb num Size of partition `b' in sectors" 8648927Scael.It "\&pc num Size of partition `c' in sectors" 8748927Scael.It "\&pd num Size of partition `d' in sectors" 8848927Scael.It "\&pe num Size of partition `e' in sectors" 8948927Scael.It "\&pf num Size of partition `f' in sectors" 9048927Scael.It "\&pg num Size of partition `g' in sectors" 9148927Scael.It "\&ph num Size of partition `h' in sectors" 9248927Scael.It "\&ta str Partition type of partition `a'" 9348927Scael.Pf ( Bx 4.2 9448927Scaelfilesystem, swap, etc) 9548927Scael.It "\&tb str Partition type of partition `b'" 9648927Scael.It "\&tc str Partition type of partition `c'" 9748927Scael.It "\&td str Partition type of partition `d'" 9848927Scael.It "\&te str Partition type of partition `e'" 9948927Scael.It "\&tf str Partition type of partition `f'" 10048927Scael.It "\&tg str Partition type of partition `g'" 10148927Scael.It "\&th str Partition type of partition `h'" 10248927Scael.El 10348927Scael.Sh FILES 10448927Scael.Bl -tag -width /etc/disktab -compact 10548927Scael.It Pa /etc/disktab 10648927Scael.El 10748927Scael.Sh SEE ALSO 10848927Scael.Xr getdiskbyname 3 , 10948927Scael.Xr disklabel 5 , 11048927Scael.Xr disklabel 8 , 11148927Scael.Xr newfs 8 11248927Scael.Sh HISTORY 11348927ScaelThe 11448927Scael.Nm 11548927Scaeldescription file appeared in 11648927Scael.Bx 4.2 . 117