DISKTAB(5)

πŸ“¦
version 15.1 Β· 4 versions
, in freebsd 15.1, nixpkgs unstable

πŸ’Ύ DISKTAB(5) β€” disktab, the disk description file πŸ’Ύ

🌸 NAME 🌸

disktab β€” disk description file

✨ SYNOPSIS ✨

#include <disklabel.h>

πŸ’… DESCRIPTION πŸ’…

Okay so 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:

  • ty (str) β€” Type of disk (e.g. removable, winchester).
  • dt (str) β€” Type of controller (e.g. SMD, ESDI, floppy).
  • ns (num) β€” Number of sectors per track.
  • nt (num) β€” Number of tracks per cylinder.
  • nc (num) β€” Total number of cylinders on the disk.
  • sc (num) β€” Number of sectors per cylinder, ns*nt default.
  • su (num) β€” Number of sectors per unit, sc*nc default.
  • se (num) β€” Sector size in bytes, DEV_BSIZE default.
  • sf (bool) β€” Controller supports bad144-style bad sector forwarding.
  • rm (num) β€” Rotation speed, rpm, 3600 default.
  • sk (num) β€” Sector skew per track, default 0.
  • cs (num) β€” Sector skew per cylinder, default 0.
  • hs (num) β€” Headswitch time, usec, default 0.
  • ts (num) β€” One-cylinder seek time, usec, default 0.
  • il (num) β€” Sector interleave (n:1), 1 default.
  • d[0-4] (num) β€” Drive-type-dependent parameters.
  • bs (num) β€” Boot block size, default BBSIZE.
  • sb (num) β€” Superblock size, default 0.
  • ba (num) β€” Block size for partition a (bytes).
  • bd (num) β€” Block size for partition d (bytes).
  • be (num) β€” Block size for partition e (bytes).
  • bf (num) β€” Block size for partition f (bytes).
  • bg (num) β€” Block size for partition g (bytes).
  • bh (num) β€” Block size for partition h (bytes).
  • fa (num) β€” Fragment size for partition a (bytes).
  • fd (num) β€” Fragment size for partition d (bytes).
  • fe (num) β€” Fragment size for partition e (bytes).
  • ff (num) β€” Fragment size for partition f (bytes).
  • fg (num) β€” Fragment size for partition g (bytes).
  • fh (num) β€” Fragment size for partition h (bytes).
  • oa (num) β€” Offset of partition a in sectors.
  • ob (num) β€” Offset of partition b in sectors.
  • oc (num) β€” Offset of partition c in sectors.
  • od (num) β€” Offset of partition d in sectors.
  • oe (num) β€” Offset of partition e in sectors.
  • of (num) β€” Offset of partition f in sectors.
  • og (num) β€” Offset of partition g in sectors.
  • oh (num) β€” Offset of partition h in sectors.
  • pa (num) β€” Size of partition a in sectors.
  • pb (num) β€” Size of partition b in sectors.
  • pc (num) β€” Size of partition c in sectors.
  • pd (num) β€” Size of partition d in sectors.
  • pe (num) β€” Size of partition e in sectors.
  • pf (num) β€” Size of partition f in sectors.
  • pg (num) β€” Size of partition g in sectors.
  • ph (num) β€” Size of partition h in sectors.
  • ta (str) β€” Partition type of partition a (4.2BSD file system, swap, etc).
  • tb (str) β€” Partition type of partition b.
  • tc (str) β€” Partition type of partition c.
  • td (str) β€” Partition type of partition d.
  • te (str) β€” Partition type of partition e.
  • tf (str) β€” Partition type of partition f.
  • tg (str) β€” Partition type of partition g.
  • th (str) β€” Partition type of partition h.

πŸ“ FILES πŸ“

  • /etc/disktab

πŸ‘€ SEE ALSO πŸ‘€

πŸ•°οΈ HISTORY πŸ•°οΈ

The disktab description file appeared in 4.2BSD.


xoxo, Debian πŸ’– β€” DISKTAB(5), October 14, 2006 πŸŽ€ that’s the source/version/date, bestie, periodt.

πŸ“¦ where this page comes from