1 .\" $OpenBSD: disktab.5,v 1.14 2011/09/03 22:59:07 jmc Exp $
2 .\" $NetBSD: disktab.5,v 1.4 1994/11/30 19:31:15 jtc Exp $
4 .\" Copyright (c) 1983, 1991, 1993
5 .\" The Regents of the University of California. All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
15 .\" 3. Neither the name of the University nor the names of its contributors
16 .\" may be used to endorse or promote products derived from this software
17 .\" without specific prior written permission.
19 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 .\" @(#)disktab.5 8.1 (Berkeley) 6/5/93
33 .Dd $Mdocdate: September 3 2011 $
38 .Nd disk description file
40 .Fd #include <disktab.h>
43 is a simple database which describes disk geometries and
44 disk partition characteristics.
46 to initialize the disk label on the disk.
47 The format is patterned after the
52 consist of a number of colon
55 The first entry for each disk gives the names which are
56 known for the disk, separated by
59 The last name given should be a long name fully identifying the disk.
61 The following list indicates the normal values stored for each disk entry:
62 .Bl -column "d[0-4]" "bool" "Description"
63 .It Sy Name Ta Sy Type Ta Sy Description
64 .It \&ty Ta str Ta "Type of disk (e.g., removable, winchester)."
65 .It \&dt Ta str Ta "Type of controller (e.g.,SMD, ESDI, floppy)."
66 .It \&ns Ta num Ta "Number of sectors per track."
67 .It \&nt Ta num Ta "Number of tracks per cylinder."
68 .It \&nc Ta num Ta "Total number of cylinders on the disk."
69 .It \&sc Ta num Ta "Number of sectors per cylinder (default: ns*nt)."
70 .It \&su Ta num Ta "Number of sectors per unit (default: sc*nc)."
71 .It \&se Ta num Ta "Sector size in bytes (default:"
73 .It \&sf Ta bool Ta "Controller supports bad144-style bad sector forwarding."
74 .It \&rm Ta num Ta "Rotation speed in RPM (default: 3600)."
75 .It \&sk Ta num Ta "Sector skew per track (default: 0)."
76 .It \&cs Ta num Ta "Sector skew per cylinder (default: 0)."
77 .It \&hs Ta num Ta "Headswitch time in usec (default: 0)."
78 .It \&ts Ta num Ta "One-cylinder seek time in usec (default: 0)."
79 .It \&il Ta num Ta "Sector interleave (n:1) (default: 1)."
80 .It \&d[0-4] Ta num Ta "Drive-type-dependent parameters."
81 .It \&b0 Ta str Ta "Pathname to primary bootstrap."
82 .It \&b1 Ta str Ta "Pathname to secondary bootstrap."
83 .It \&bs Ta num Ta "Boot block size (default:"
85 .It \&sb Ta num Ta "Superblock size (default: "
88 .It \&ba Ta num Ta "Block size for partition"
91 .It \&bd Ta num Ta "Block size for partition"
94 .It \&be Ta num Ta "Block size for partition"
98 .It \&bp Ta num Ta "Block size for partition"
102 .It \&fa Ta num Ta "Fragment size for partition"
105 .It \&fd Ta num Ta "Fragment size for partition"
108 .It \&fe Ta num Ta "Fragment size for partition"
111 .It [...] Ta "" Ta ""
112 .It \&fp Ta num Ta "Fragment size for partition"
116 .It \&oa Ta num Ta "Offset of partition"
119 .It \&ob Ta num Ta "Offset of partition"
122 .It \&oc Ta num Ta "Offset of partition"
125 .It [...] Ta "" Ta ""
126 .It \&op Ta num Ta "Offset of partition"
130 .It \&pa Ta num Ta "Size of partition"
133 .It \&pb Ta num Ta "Size of partition"
136 .It \&pc Ta num Ta "Size of partition"
139 .It [...] Ta "" Ta ""
140 .It \&pp Ta num Ta "Size of partition"
144 .It \&ta Ta str Ta "Type of partition"
146 (4.2BSD, swap, etc.).
147 .It \&tb Ta str Ta "Type of partition"
149 .It \&tc Ta str Ta "Type of partition"
151 .It [...] Ta "" Ta ""
152 .It \&tp Ta str Ta "Type of partition"
156 .Bl -tag -width /etc/disktab -compact
160 .Xr getdiskbyname 3 ,
167 description file appeared in