Reference

disktab(5)

disk description file

NAME

disktab – disk description file

SYNOPSIS

#include <disklabel.h>

DESCRIPTION

Disktab is a simple database which describes disk geometries and disk partition characteristics. It is used to initialize the disk label on the disk. The format is patterned after the termcap(5) terminal data base. Entries in disktab consist of a number of `:'-separated fields. The first field for each entry gives the names by which a disk's entry may be selected, separated by `|' characters. The last name given should be a long name fully identifying the disk.

The optional fields for each entry are:

IDTypeDescription
tystrType of disk (e.g. removable, winchester)
dtstrType of controller (e.g.
nsnumNumber of sectors per track
ntnumNumber of tracks per cylinder
ncnumTotal number of cylinders on the disk
scnumNumber of sectors per cylinder, ns*nt default
sunumNumber of sectors per unit, sc*nc default
senumSector size in bytes,
sfboolController supports bad144-style bad sector forwarding
rmnumRotation speed, rpm, 3600 default
sknumSector skew per track, default 0
csnumSector skew per cylinder, default 0
hsnumHeadswitch time, usec, default 0
tsnumOne-cylinder seek time, usec, default 0
ilnumSector interleave (n:1), 1 default
d[0-4]numDrive-type-dependent parameters
bsnumBoot block size, default
sbnumSuperblock size, default 0
banumBlock size for partition `a' (bytes)
bdnumBlock size for partition `d' (bytes)
benumBlock size for partition `e' (bytes)
bfnumBlock size for partition `f' (bytes)
bgnumBlock size for partition `g' (bytes)
bhnumBlock size for partition `h' (bytes)
fanumFragment size for partition `a' (bytes)
fdnumFragment size for partition `d' (bytes)
fenumFragment size for partition `e' (bytes)
ffnumFragment size for partition `f' (bytes)
fgnumFragment size for partition `g' (bytes)
fhnumFragment size for partition `h' (bytes)
oanumOffset of partition `a' in sectors
obnumOffset of partition `b' in sectors
ocnumOffset of partition `c' in sectors
odnumOffset of partition `d' in sectors
oenumOffset of partition `e' in sectors
ofnumOffset of partition `f' in sectors
ognumOffset of partition `g' in sectors
ohnumOffset of partition `h' in sectors
panumSize of partition `a' in sectors
pbnumSize of partition `b' in sectors
pcnumSize of partition `c' in sectors
pdnumSize of partition `d' in sectors
penumSize of partition `e' in sectors
pfnumSize of partition `f' in sectors
pgnumSize of partition `g' in sectors
phnumSize of partition `h' in sectors
tastrPartition type of partition `a'
tbstrPartition type of partition `b'
tcstrPartition type of partition `c'
tdstrPartition type of partition `d'
testrPartition type of partition `e'
tfstrPartition type of partition `f'
tgstrPartition type of partition `g'
thstrPartition type of partition `h'

FILES

/etc/disktab

SEE ALSO

getdiskbyname(3), bsdlabel(8), newfs(8)

HISTORY

The disktab description file appeared in 4.2BSD.

History