BSD disklabel

BSD disklabel

In BSD-derived computer operating systems (including NetBSD, OpenBSD, FreeBSD and DragonFly BSD) and in related operating systems such as SunOS, a disklabel is a record stored on a data storage device such as a hard disk that contains information about the location of the partitions on the disk. Disklabels were introduced in the 4.3BSD-Tahoe release.[1] Disklabels are usually edited using the disklabel utility. In later versions of FreeBSD this was renamed as bsdlabel.

Contents

Where disklabels are stored

Traditionally, the disklabel was the first sector of the disk. But this system only works when the only operating systems that access the disk are Unix systems that comprehend disklabels. In the world of IBM PC compatibles, disks are usually partitioned using the PC BIOS's MBR Partition Table scheme instead, and the BSD partitioning scheme is nested within a single, primary, MBR partition (just as the "extended" partitioning scheme is nested within a single primary partition with extended boot records). Sometimes (particularly in FreeBSD), the primary MBR partitions are referred to as slices and the subdivisions of a primary MBR partition (for the nested BSD partitioning scheme) that are described by its disklabel are called partitions. The BSD disklabel is contained within the volume boot record of the primary MBR partition.

The MBR partition IDs for primary partitions that are subdivided using BSD disklabels are 0xA5 (386BSD and FreeBSD), 0xA6 (OpenBSD), and 0xA9 (NetBSD).

This format has a similar goal as the extended partitions and logical partition system used by MS-DOS, Windows and Linux.

The same PC hard drive can have both BSD disklabel partitions and the MS-DOS type logical partitions in separate primary partitions. FreeBSD and other BSD operating systems can access both the BSD disklabel subdivided partition and the MS-DOS type Extended/Logical partitions.

The contents of disklabels

BSD disklabels traditionally contain 8 entries for describing partitions. These are, by convention, labeled alphabetically, 'a' through to 'h'. Some BSD variants have since increased this to 16 partitions, labeled 'a' through to 'p'.

Also by convention, partitions 'a', 'b', and 'c' have fixed meanings:

  • Partition 'a' is the "root" partition, the volume from which the operating system is bootstrapped. The boot code in the Volume Boot Record containing the disklabel is thus simplified, as it need only look in one fixed location to find the location of the boot volume.
  • Partition 'b' is the "swap" partition.
  • Partition 'c' overlaps all of the other partitions and describes the entire disk. Its start and length are fixed. On systems where the disklabel co-exists with another partitioning scheme (such as on PC hardware), partition 'c' may actually only extend to an area of disk allocated to the BSD operating system, and partition 'd' is used to cover the whole physical disk.

References

Further reading


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • TestDisk — unter Fedora 14 (Linux) …   Deutsch Wikipedia

  • TestDisk — Infobox Software name = TestDisk developer = Christophe Grenier latest release version = 6.10 latest release date = release date|2008|07|17 platform = Multiplatform interface = CLI genre = Data recovery license = GNU General Public License… …   Wikipedia

  • TestDisk — Menú para seleccionar el tipo de partición …   Wikipedia Español

  • Slice (disk) — In Sun Microsystems Solaris computer operating system, disk partitions are sometimes known as slices. This is a conceptual reference to the slicing of a cake into several pieces. A slice is composed of a contiguous range of blocks on a disk.The… …   Wikipedia

  • Extended boot record — An Extended Boot Record (EBR), or Extended Partition Boot Record (EPBR)fn|1, is a descriptor for a logical partition under the common DOS disk drive partitioning system. In that system, when one (and only one) partition record entry in the Master …   Wikipedia

  • Fdisk — (for fixed disk ) is a commonly used name for a command line utility that provides disk partitioning functions in an operating system. However, each version of fdisk is independent of the others, and aside from their name and similar purpose,… …   Wikipedia

  • TestDisk — Développeur Christophe Grenier Première version  1998 …   Wikipédia en Français

  • Testdisk — Développeur Christophe Grenier Dernière version …   Wikipédia en Français

  • Gpart — is a software utility which scans a hard disk drive, examining the data in order to detect partitions which may exist but be absent from the disk s partition tables.gpart was written by Michail Brzitwa of GermanyGpart tries to guess the primary… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”