xref: /csrg-svn/share/man/man5/disktab.5 (revision 48927)
1*48927Scael.\" Copyright (c) 1983, 1991 Regents of the University of California.
2*48927Scael.\" All rights reserved.
320831Smckusick.\"
4*48927Scael.\" %sccs.include.redist.roff%
520831Smckusick.\"
6*48927Scael.\"     @(#)disktab.5	6.6 (Berkeley) 05/02/91
7*48927Scael.\"
8*48927Scael.Dd
9*48927Scael.Dt DISKTAB 5
10*48927Scael.Os BSD 4.2
11*48927Scael.Sh NAME
12*48927Scael.Nm disktab
13*48927Scael.Nd disk description file
14*48927Scael.Sh SYNOPSIS
15*48927Scael.Fd #include <disktab.h>
16*48927Scael.Sh DESCRIPTION
17*48927Scael.Nm Disktab
1831571Skarelsis a simple database which describes disk geometries and
1931571Skarelsdisk partition characteristics.
2031571SkarelsIt is used
2131571Skarels.\"by the formatter(\c
22*48927Scael.\"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
27*48927Scael.Xr termcap 5
2820831Smckusickterminal data base.  Entries in
29*48927Scael.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.
35*48927Scael.Pp
3620831SmckusickThe following list indicates the normal values
3720831Smckusickstored for each disk entry.
38*48927Scael.Bl -column "indent" "boolx"
39*48927Scael.It Sy Name	Type	Description
40*48927Scael.It "\&ty	str	Type of disk (e.g. removable, winchester)"
41*48927Scael.It "\&dt	str	Type of controller (e.g."
42*48927Scael.Tn SMD , ESDI ,
43*48927Scaelfloppy)
44*48927Scael.It "\&ns	num	Number of sectors per track"
45*48927Scael.It "\&nt	num	Number of tracks per cylinder"
46*48927Scael.It "\&nc	num	Total number of cylinders on the disk"
47*48927Scael.It "\&sc	num	Number of sectors per cylinder, nc*nt default"
48*48927Scael.It "\&su	num	Number of sectors per unit, sc*nc default"
49*48927Scael.It "\&se	num	Sector size in bytes,"
50*48927Scael.Dv DEV_BSIZE
51*48927Scaeldefault
52*48927Scael.It "\&sf	bool	Controller supports bad144-style bad sector forwarding"
53*48927Scael.It "\&rm	num	Rotation speed, rpm, 3600 default"
54*48927Scael.It "\&sk	num	Sector skew per track, default 0"
55*48927Scael.It "\&cs	num	Sector skew per cylinder, default 0"
56*48927Scael.It "\&hs	num	Headswitch time, usec, default 0"
57*48927Scael.It "\&ts	num	One-cylinder seek time, usec, default 0"
58*48927Scael.It "\&il	num	Sector interleave (n:1), 1 default"
59*48927Scael.It "\&d[0-4]	num	Drive-type-dependent parameters"
60*48927Scael.It "\&bs	num	Boot block size, default"
61*48927Scael.Dv BBSIZE
62*48927Scael.It "\&sb	num	Superblock size, default"
63*48927Scael.Dv SBSIZE
64*48927Scael.It "\&ba	num	Block size for partition `a' (bytes)"
65*48927Scael.It "\&bd	num	Block size for partition `d' (bytes)"
66*48927Scael.It "\&be	num	Block size for partition `e' (bytes)"
67*48927Scael.It "\&bf	num	Block size for partition `f' (bytes)"
68*48927Scael.It "\&bg	num	Block size for partition `g' (bytes)"
69*48927Scael.It "\&bh	num	Block size for partition `h' (bytes)"
70*48927Scael.It "\&fa	num	Fragment size for partition `a' (bytes)"
71*48927Scael.It "\&fd	num	Fragment size for partition `d' (bytes)"
72*48927Scael.It "\&fe	num	Fragment size or partition `e' (bytes)"
73*48927Scael.It "\&ff	num	Fragment size for partition `f' (bytes)"
74*48927Scael.It "\&fg	num	Fragment size for partition `g' (bytes)"
75*48927Scael.It "\&fh	num	Fragment size for partition `h' (bytes)"
76*48927Scael.It "\&oa	num	Offset of partition `a' in sectors"
77*48927Scael.It "\&ob	num	Offset of partition `b' in sectors"
78*48927Scael.It "\&oc	num	Offset of partition `c' in sectors"
79*48927Scael.It "\&od	num	Offset of partition `d' in sectors"
80*48927Scael.It "\&oe	num	Offset of partition `e' in sectors"
81*48927Scael.It "\&of	num	Offset of partition `f' in sectors"
82*48927Scael.It "\&og	num	Offset of partition `g' in sectors"
83*48927Scael.It "\&oh	num	Offset of partition `h' in sectors"
84*48927Scael.It "\&pa	num	Size of partition `a' in sectors"
85*48927Scael.It "\&pb	num	Size of partition `b' in sectors"
86*48927Scael.It "\&pc	num	Size of partition `c' in sectors"
87*48927Scael.It "\&pd	num	Size of partition `d' in sectors"
88*48927Scael.It "\&pe	num	Size of partition `e' in sectors"
89*48927Scael.It "\&pf	num	Size of partition `f' in sectors"
90*48927Scael.It "\&pg	num	Size of partition `g' in sectors"
91*48927Scael.It "\&ph	num	Size of partition `h' in sectors"
92*48927Scael.It "\&ta	str	Partition type of partition `a'"
93*48927Scael.Pf ( Bx 4.2
94*48927Scaelfilesystem, swap, etc)
95*48927Scael.It "\&tb	str	Partition type of partition `b'"
96*48927Scael.It "\&tc	str	Partition type of partition `c'"
97*48927Scael.It "\&td	str	Partition type of partition `d'"
98*48927Scael.It "\&te	str	Partition type of partition `e'"
99*48927Scael.It "\&tf	str	Partition type of partition `f'"
100*48927Scael.It "\&tg	str	Partition type of partition `g'"
101*48927Scael.It "\&th	str	Partition type of partition `h'"
102*48927Scael.El
103*48927Scael.Sh FILES
104*48927Scael.Bl -tag -width /etc/disktab -compact
105*48927Scael.It Pa /etc/disktab
106*48927Scael.El
107*48927Scael.Sh SEE ALSO
108*48927Scael.Xr getdiskbyname 3 ,
109*48927Scael.Xr disklabel 5 ,
110*48927Scael.Xr disklabel 8 ,
111*48927Scael.Xr newfs 8
112*48927Scael.Sh HISTORY
113*48927ScaelThe
114*48927Scael.Nm
115*48927Scaeldescription file appeared in
116*48927Scael.Bx 4.2 .
117