xref: /netbsd-src/share/man/man5/disktab.5 (revision b5930afc5fc929a2e2ace17f1848d803f27af1a0)
1*b5930afcSjtc.\"	$NetBSD: disktab.5,v 1.4 1994/11/30 19:31:15 jtc Exp $
2*b5930afcSjtc.\"
3*b5930afcSjtc.\" Copyright (c) 1983, 1991, 1993
4*b5930afcSjtc.\"	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.
1461f28255Scgd.\" 3. All advertising materials mentioning features or use of this software
1561f28255Scgd.\"    must display the following acknowledgement:
1661f28255Scgd.\"	This product includes software developed by the University of
1761f28255Scgd.\"	California, Berkeley and its contributors.
1861f28255Scgd.\" 4. Neither the name of the University nor the names of its contributors
1961f28255Scgd.\"    may be used to endorse or promote products derived from this software
2061f28255Scgd.\"    without specific prior written permission.
2161f28255Scgd.\"
2261f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2361f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2461f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2561f28255Scgd.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2661f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2761f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2861f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2961f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3061f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3161f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3261f28255Scgd.\" SUCH DAMAGE.
3361f28255Scgd.\"
34*b5930afcSjtc.\"     @(#)disktab.5	8.1 (Berkeley) 6/5/93
3561f28255Scgd.\"
36*b5930afcSjtc.Dd June 5, 1993
3761f28255Scgd.Dt DISKTAB 5
3861f28255Scgd.Os BSD 4.2
3961f28255Scgd.Sh NAME
4061f28255Scgd.Nm disktab
4161f28255Scgd.Nd disk description file
4261f28255Scgd.Sh SYNOPSIS
4361f28255Scgd.Fd #include <disktab.h>
4461f28255Scgd.Sh DESCRIPTION
4561f28255Scgd.Nm Disktab
4661f28255Scgdis a simple database which describes disk geometries and
4761f28255Scgddisk partition characteristics.
4861f28255ScgdIt is used
4961f28255Scgd.\"by the formatter(\c
5061f28255Scgd.\"IR.Xr format 8 )
5161f28255Scgd.\"to determine how to format the disk, and
5261f28255Scgdto initialize the disk label on the disk.
5361f28255ScgdThe format is patterned
5461f28255Scgdafter the
5561f28255Scgd.Xr termcap 5
5661f28255Scgdterminal data base.  Entries in
5761f28255Scgd.Nm disktab
5861f28255Scgdconsist of a number of `:' separated fields.  The
5961f28255Scgdfirst entry for each disk gives the names which are
6061f28255Scgdknown for the disk, separated by `|' characters.  The
6161f28255Scgdlast name given should be a long name fully identifying
6261f28255Scgdthe disk.
6361f28255Scgd.Pp
6461f28255ScgdThe following list indicates the normal values
6561f28255Scgdstored for each disk entry.
6661f28255Scgd.Bl -column "indent" "boolx"
6761f28255Scgd.It Sy Name	Type	Description
6861f28255Scgd.It "\&ty	str	Type of disk (e.g. removable, winchester)"
6961f28255Scgd.It "\&dt	str	Type of controller (e.g."
7061f28255Scgd.Tn SMD , ESDI ,
7161f28255Scgdfloppy)
7261f28255Scgd.It "\&ns	num	Number of sectors per track"
7361f28255Scgd.It "\&nt	num	Number of tracks per cylinder"
7461f28255Scgd.It "\&nc	num	Total number of cylinders on the disk"
7561f28255Scgd.It "\&sc	num	Number of sectors per cylinder, nc*nt default"
7661f28255Scgd.It "\&su	num	Number of sectors per unit, sc*nc default"
7761f28255Scgd.It "\&se	num	Sector size in bytes,"
7861f28255Scgd.Dv DEV_BSIZE
7961f28255Scgddefault
8061f28255Scgd.It "\&sf	bool	Controller supports bad144-style bad sector forwarding"
8161f28255Scgd.It "\&rm	num	Rotation speed, rpm, 3600 default"
8261f28255Scgd.It "\&sk	num	Sector skew per track, default 0"
8361f28255Scgd.It "\&cs	num	Sector skew per cylinder, default 0"
8461f28255Scgd.It "\&hs	num	Headswitch time, usec, default 0"
8561f28255Scgd.It "\&ts	num	One-cylinder seek time, usec, default 0"
8661f28255Scgd.It "\&il	num	Sector interleave (n:1), 1 default"
8761f28255Scgd.It "\&d[0-4]	num	Drive-type-dependent parameters"
8861f28255Scgd.It "\&bs	num	Boot block size, default"
8961f28255Scgd.Dv BBSIZE
9061f28255Scgd.It "\&sb	num	Superblock size, default"
9161f28255Scgd.Dv SBSIZE
9261f28255Scgd.It "\&ba	num	Block size for partition `a' (bytes)"
9361f28255Scgd.It "\&bd	num	Block size for partition `d' (bytes)"
9461f28255Scgd.It "\&be	num	Block size for partition `e' (bytes)"
9561f28255Scgd.It "\&bf	num	Block size for partition `f' (bytes)"
9661f28255Scgd.It "\&bg	num	Block size for partition `g' (bytes)"
9761f28255Scgd.It "\&bh	num	Block size for partition `h' (bytes)"
9861f28255Scgd.It "\&fa	num	Fragment size for partition `a' (bytes)"
9961f28255Scgd.It "\&fd	num	Fragment size for partition `d' (bytes)"
1006eed4070Sjtc.It "\&fe	num	Fragment size for partition `e' (bytes)"
10161f28255Scgd.It "\&ff	num	Fragment size for partition `f' (bytes)"
10261f28255Scgd.It "\&fg	num	Fragment size for partition `g' (bytes)"
10361f28255Scgd.It "\&fh	num	Fragment size for partition `h' (bytes)"
10461f28255Scgd.It "\&oa	num	Offset of partition `a' in sectors"
10561f28255Scgd.It "\&ob	num	Offset of partition `b' in sectors"
10661f28255Scgd.It "\&oc	num	Offset of partition `c' in sectors"
10761f28255Scgd.It "\&od	num	Offset of partition `d' in sectors"
10861f28255Scgd.It "\&oe	num	Offset of partition `e' in sectors"
10961f28255Scgd.It "\&of	num	Offset of partition `f' in sectors"
11061f28255Scgd.It "\&og	num	Offset of partition `g' in sectors"
11161f28255Scgd.It "\&oh	num	Offset of partition `h' in sectors"
11261f28255Scgd.It "\&pa	num	Size of partition `a' in sectors"
11361f28255Scgd.It "\&pb	num	Size of partition `b' in sectors"
11461f28255Scgd.It "\&pc	num	Size of partition `c' in sectors"
11561f28255Scgd.It "\&pd	num	Size of partition `d' in sectors"
11661f28255Scgd.It "\&pe	num	Size of partition `e' in sectors"
11761f28255Scgd.It "\&pf	num	Size of partition `f' in sectors"
11861f28255Scgd.It "\&pg	num	Size of partition `g' in sectors"
11961f28255Scgd.It "\&ph	num	Size of partition `h' in sectors"
12061f28255Scgd.It "\&ta	str	Partition type of partition `a'"
12161f28255Scgd.Pf ( Bx 4.2
12261f28255Scgdfilesystem, swap, etc)
12361f28255Scgd.It "\&tb	str	Partition type of partition `b'"
12461f28255Scgd.It "\&tc	str	Partition type of partition `c'"
12561f28255Scgd.It "\&td	str	Partition type of partition `d'"
12661f28255Scgd.It "\&te	str	Partition type of partition `e'"
12761f28255Scgd.It "\&tf	str	Partition type of partition `f'"
12861f28255Scgd.It "\&tg	str	Partition type of partition `g'"
12961f28255Scgd.It "\&th	str	Partition type of partition `h'"
13061f28255Scgd.El
13161f28255Scgd.Sh FILES
13261f28255Scgd.Bl -tag -width /etc/disktab -compact
13361f28255Scgd.It Pa /etc/disktab
13461f28255Scgd.El
13561f28255Scgd.Sh SEE ALSO
13661f28255Scgd.Xr getdiskbyname 3 ,
13761f28255Scgd.Xr disklabel 5 ,
13861f28255Scgd.Xr disklabel 8 ,
13961f28255Scgd.Xr newfs 8
14061f28255Scgd.Sh HISTORY
14161f28255ScgdThe
14261f28255Scgd.Nm
14361f28255Scgddescription file appeared in
14461f28255Scgd.Bx 4.2 .
145