xref: /netbsd-src/share/man/man5/disktab.5 (revision c090f09873bae52181ad9b44bed4ce3153194626)
1*c090f098Swiz.\"	$NetBSD: disktab.5,v 1.13 2012/04/22 10:19:15 wiz Exp $
2b5930afcSjtc.\"
3b5930afcSjtc.\" Copyright (c) 1983, 1991, 1993
4b5930afcSjtc.\"	The Regents of the University of California.  All rights reserved.
561f28255Scgd.\"
661f28255Scgd.\" Redistribution and use in source and binary forms, with or without
761f28255Scgd.\" modification, are permitted provided that the following conditions
861f28255Scgd.\" are met:
961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright
1061f28255Scgd.\"    notice, this list of conditions and the following disclaimer.
1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright
1261f28255Scgd.\"    notice, this list of conditions and the following disclaimer in the
1361f28255Scgd.\"    documentation and/or other materials provided with the distribution.
14075022b3Sagc.\" 3. Neither the name of the University nor the names of its contributors
1561f28255Scgd.\"    may be used to endorse or promote products derived from this software
1661f28255Scgd.\"    without specific prior written permission.
1761f28255Scgd.\"
1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2161f28255Scgd.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2861f28255Scgd.\" SUCH DAMAGE.
2961f28255Scgd.\"
30b5930afcSjtc.\"     @(#)disktab.5	8.1 (Berkeley) 6/5/93
3161f28255Scgd.\"
32258cf0abSroy.Dd April 5, 2012
3361f28255Scgd.Dt DISKTAB 5
347a1aea16Sgarbled.Os
3561f28255Scgd.Sh NAME
3661f28255Scgd.Nm disktab
3761f28255Scgd.Nd disk description file
3861f28255Scgd.Sh SYNOPSIS
39472351e1Swiz.In disktab.h
4061f28255Scgd.Sh DESCRIPTION
41279552d3Slukem.Nm
4261f28255Scgdis a simple database which describes disk geometries and
4361f28255Scgddisk partition characteristics.
4461f28255ScgdIt is used
4561f28255Scgd.\"by the formatter(\c
4661f28255Scgd.\"IR.Xr format 8 )
4761f28255Scgd.\"to determine how to format the disk, and
4861f28255Scgdto initialize the disk label on the disk.
49258cf0abSroyThe format is described in
50258cf0abSroy.Xr capfile 5 .
51258cf0abSroyEntries in
52279552d3Slukem.Nm
53*c090f098Swizconsist of a number of `:' separated fields.
54*c090f098SwizThe first entry for each disk gives the names which are known for
55*c090f098Swizthe disk, separated by `|' characters.
56*c090f098SwizThe last name given should be a long name fully identifying the disk.
5761f28255Scgd.Pp
5861f28255ScgdThe following list indicates the normal values
5961f28255Scgdstored for each disk entry.
6061f28255Scgd.Bl -column "indent" "boolx"
6161f28255Scgd.It Sy Name	Type	Description
6261f28255Scgd.It "\&ty	str	Type of disk (e.g. removable, winchester)"
6361f28255Scgd.It "\&dt	str	Type of controller (e.g."
6461f28255Scgd.Tn SMD , ESDI ,
6561f28255Scgdfloppy)
6661f28255Scgd.It "\&ns	num	Number of sectors per track"
6761f28255Scgd.It "\&nt	num	Number of tracks per cylinder"
6861f28255Scgd.It "\&nc	num	Total number of cylinders on the disk"
696b6c65a0Shubertf.It "\&sc	num	Number of sectors per cylinder, ns*nt default"
7061f28255Scgd.It "\&su	num	Number of sectors per unit, sc*nc default"
7161f28255Scgd.It "\&se	num	Sector size in bytes,"
7261f28255Scgd.Dv DEV_BSIZE
7361f28255Scgddefault
7461f28255Scgd.It "\&sf	bool	Controller supports bad144-style bad sector forwarding"
7561f28255Scgd.It "\&rm	num	Rotation speed, rpm, 3600 default"
7661f28255Scgd.It "\&sk	num	Sector skew per track, default 0"
7761f28255Scgd.It "\&cs	num	Sector skew per cylinder, default 0"
7861f28255Scgd.It "\&hs	num	Headswitch time, usec, default 0"
7961f28255Scgd.It "\&ts	num	One-cylinder seek time, usec, default 0"
8061f28255Scgd.It "\&il	num	Sector interleave (n:1), 1 default"
8161f28255Scgd.It "\&d[0-4]	num	Drive-type-dependent parameters"
8261f28255Scgd.It "\&bs	num	Boot block size, default"
8361f28255Scgd.Dv BBSIZE
8461f28255Scgd.It "\&sb	num	Superblock size, default"
8561f28255Scgd.Dv SBSIZE
8661f28255Scgd.It "\&ba	num	Block size for partition `a' (bytes)"
8761f28255Scgd.It "\&bd	num	Block size for partition `d' (bytes)"
8861f28255Scgd.It "\&be	num	Block size for partition `e' (bytes)"
8961f28255Scgd.It "\&bf	num	Block size for partition `f' (bytes)"
9061f28255Scgd.It "\&bg	num	Block size for partition `g' (bytes)"
9161f28255Scgd.It "\&bh	num	Block size for partition `h' (bytes)"
9261f28255Scgd.It "\&fa	num	Fragment size for partition `a' (bytes)"
9361f28255Scgd.It "\&fd	num	Fragment size for partition `d' (bytes)"
946eed4070Sjtc.It "\&fe	num	Fragment size for partition `e' (bytes)"
9561f28255Scgd.It "\&ff	num	Fragment size for partition `f' (bytes)"
9661f28255Scgd.It "\&fg	num	Fragment size for partition `g' (bytes)"
9761f28255Scgd.It "\&fh	num	Fragment size for partition `h' (bytes)"
9861f28255Scgd.It "\&oa	num	Offset of partition `a' in sectors"
9961f28255Scgd.It "\&ob	num	Offset of partition `b' in sectors"
10061f28255Scgd.It "\&oc	num	Offset of partition `c' in sectors"
10161f28255Scgd.It "\&od	num	Offset of partition `d' in sectors"
10261f28255Scgd.It "\&oe	num	Offset of partition `e' in sectors"
10361f28255Scgd.It "\&of	num	Offset of partition `f' in sectors"
10461f28255Scgd.It "\&og	num	Offset of partition `g' in sectors"
10561f28255Scgd.It "\&oh	num	Offset of partition `h' in sectors"
10661f28255Scgd.It "\&pa	num	Size of partition `a' in sectors"
10761f28255Scgd.It "\&pb	num	Size of partition `b' in sectors"
10861f28255Scgd.It "\&pc	num	Size of partition `c' in sectors"
10961f28255Scgd.It "\&pd	num	Size of partition `d' in sectors"
11061f28255Scgd.It "\&pe	num	Size of partition `e' in sectors"
11161f28255Scgd.It "\&pf	num	Size of partition `f' in sectors"
11261f28255Scgd.It "\&pg	num	Size of partition `g' in sectors"
11361f28255Scgd.It "\&ph	num	Size of partition `h' in sectors"
11461f28255Scgd.It "\&ta	str	Partition type of partition `a'"
11561f28255Scgd.Pf ( Bx 4.2
11661f28255Scgdfilesystem, swap, etc)
11761f28255Scgd.It "\&tb	str	Partition type of partition `b'"
11861f28255Scgd.It "\&tc	str	Partition type of partition `c'"
11961f28255Scgd.It "\&td	str	Partition type of partition `d'"
12061f28255Scgd.It "\&te	str	Partition type of partition `e'"
12161f28255Scgd.It "\&tf	str	Partition type of partition `f'"
12261f28255Scgd.It "\&tg	str	Partition type of partition `g'"
12361f28255Scgd.It "\&th	str	Partition type of partition `h'"
12461f28255Scgd.El
12561f28255Scgd.Sh FILES
12661f28255Scgd.Bl -tag -width /etc/disktab -compact
12761f28255Scgd.It Pa /etc/disktab
12861f28255Scgd.El
12961f28255Scgd.Sh SEE ALSO
13061f28255Scgd.Xr getdiskbyname 3 ,
131*c090f098Swiz.Xr capfile 5 ,
13261f28255Scgd.Xr disklabel 5 ,
13361f28255Scgd.Xr disklabel 8 ,
13461f28255Scgd.Xr newfs 8
13561f28255Scgd.Sh HISTORY
13661f28255ScgdThe
13761f28255Scgd.Nm
13861f28255Scgddescription file appeared in
13961f28255Scgd.Bx 4.2 .
140