FDISK.COM
   HOME

TheInfoList



OR:

In computing, the fdisk command-line utility provides disk-partitioning functions, preparatory to defining file systems. fdisk features in the DOS, DR FlexOS, IBM OS/2, and
Microsoft Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for serv ...
operating systems, and in certain ports of
FreeBSD FreeBSD is a free and open-source Unix-like operating system descended from the Berkeley Software Distribution (BSD), which was based on Research Unix. The first version of FreeBSD was released in 1993. In 2005, FreeBSD was the most popular ...
,
NetBSD NetBSD is a free and open-source Unix operating system based on the Berkeley Software Distribution (BSD). It was the first open-source BSD descendant officially released after 386BSD was forked. It continues to be actively developed and is a ...
,
OpenBSD OpenBSD is a security-focused, free and open-source, Unix-like operating system based on the Berkeley Software Distribution (BSD). Theo de Raadt created OpenBSD in 1995 by forking NetBSD 1.0. According to the website, the OpenBSD project em ...
, DragonFly BSD and macOS for compatibility reasons. In versions of the Windows NT operating-system line from Windows 2000 onwards, is replaced by a more advanced tool called
diskpart In computing, diskpart is a command-line disk partitioning utility included in Windows 2000 and later Microsoft operating systems, replacing its predecessor, fdisk. The command is also available in ReactOS. Overview The diskpart is a utility ...
. Similar utilities exist for Unix-like systems, for example, BSD disklabel.


Implementations


IBM PC DOS

IBM introduced ,
Fixed Disk A hard disk drive (HDD), hard disk, hard drive, or fixed disk is an electro-mechanical data storage device that stores and retrieves digital data using magnetic storage with one or more rigid rapidly rotating platters coated with magne ...
Setup Program version 1.00, with the March 1983 release of the IBM PC/XT, the first PC to store data on a
hard disk A hard disk drive (HDD), hard disk, hard drive, or fixed disk is an electro-mechanical data storage device that stores and retrieves digital data using magnetic storage with one or more rigid rapidly rotating platters coated with magnet ...
, and the IBM Personal Computer DOS version 2.0. Version 1 could be used to create one FAT12 DOS partition, delete it, change the
active partition A boot flag is a 1-byte value in a non-extended partition record, within a master boot record. It appears at the beginning of a partition record, as the value 0x80. A value of 0x00 indicates the partition does not have the boot flag set. Any other ...
, or display partition data. writes the
master boot record A master boot record (MBR) is a special type of boot sector at the very beginning of partitioned computer mass storage devices like fixed disks or removable drives intended for use with IBM PC-compatible systems and beyond. The concept of MBR ...
, which supported up to four partitions. The other three were intended for other operating systems such as
CP/M-86 CP/M-86 was a version of the CP/M operating system that Digital Research (DR) made for the Intel 8086 and Intel 8088. The system commands are the same as in CP/M-80. Executable files used the relocatable .CMD file format. Digital Research als ...
and Xenix, which were expected to have their own partitioning utilities as did not support them. In August 1984, PC DOS 3.0 added FAT16 partitions to support larger hard disks more efficiently. In April 1987, PC DOS/fdisk 3.30 added support for extended partitions, which could hold up to 23 "logical drives" or volumes. IBM PC DOS 7.10 contained and utilities.


Microsoft DOS and Windows

The command is available in MS-DOS versions 3.2 and later. MS-DOS versions 2.0 through 3.10 included OEM specific partitioning tools, which may or may-not be called . Support for FAT16B was added with Compaq MS-DOS 3.31, and later became available with MS-DOS/PC DOS 4.0. Most DOS programs, including the program that came with the original Windows 95, are only capable of creating FAT partitions of types FAT12, FAT16 and FAT16B. A derivative of the MS-DOS was provided with Windows 95, Windows 98, and later Windows ME. Only those versions shipping with Windows 95B or later are able to manipulate FAT32 partitions. Windows 2000 and later do not use , they have the
Logical Disk Manager The Logical Disk Manager (LDM) is an implementation of a logical volume manager for Microsoft Windows NT, developed by Microsoft and Veritas Software. It was introduced with the Windows 2000 operating system, and is supported in Windows XP, Wind ...
feature, as well as . Unlike the programs for other operating systems, the programs for DOS and Windows 9x/Me not only alter data in the partition table, but will also overwrite many sectors of data in the partition itself. (However, to create an
extended partition An extended boot record (EBR), or extended partition boot record (EPBR), 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 boot ...
any
partition editor A disk editor is a computer program that allows its user to read, edit, and write raw data (at character or hexadecimal, byte-levels) on disk drives (e.g., hard disks, USB flash disks or removable media such as a floppy disks); as such, they are ...
must put
extended boot record An extended boot record (EBR), or extended partition boot record (EPBR), 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 boot ...
s before each logical drive on the disk.) Users must be sure the correct disk/partition has been chosen before using a DOS/Windows for partitioning. The switch is undocumented but well known for repairing the
master boot record A master boot record (MBR) is a special type of boot sector at the very beginning of partitioned computer mass storage devices like fixed disks or removable drives intended for use with IBM PC-compatible systems and beyond. The concept of MBR ...
. The supplied with Windows 95 does not report the correct size of a hard disk that is larger than 64 GB. An updated is available from Microsoft that corrects this. Microsoft named the replacement "263044usa8" and is Version 4.72.2811.0. Signature May 23, 2000. The original Windows 98 program size is smaller than the updated one. cannot create partitions larger than 512 GB, despite that the maximal FAT32 partition size is 2 TB. This limitation applies to all versions of supplied with Windows 95 OSR 2.1, Windows 98 and Windows ME.


IBM OS/2

OS/2 shipped with two partition table managers up until version 4.0. These were the text mode ''fdisk'' and the
GUI The GUI ( "UI" by itself is still usually pronounced . or ), graphical user interface, is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, inste ...
-based ''fdiskpm''. The two have identical functionality, and can manipulate both FAT partitions and the more advanced HPFS partitions. OS/2 versions 4.5 and higher (including eComStation and
ArcaOS ArcaOS is an operating system based on OS/2, developed and marketed by Arca Noae, LLC under license from IBM. It was codenamed Blue Lion during its development. It builds on OS/2 Warp 4.52 by adding support for new hardware, fixing defects and l ...
) can use the JFS filesystem as well as FAT and HPFS, and replace with the
Logical Volume Manager In computer storage, logical volume management or LVM provides a method of allocating space on mass-storage devices that is more flexible than conventional partitioning schemes to store volumes. In particular, a volume manager can concatenate ...
(LVM).


DR/Novell DOS and FlexOS

DR DOS 6.0DR DOS 6.0 User Guide Optimisation and Configuration Tips
/ref> and FlexOS include an implementation of the command.


ROM-DOS

Datalight
ROM-DOS Datalight was a privately held software company specializing in power failsafe and high performance software for preserving data integrity in embedded systems. The company was founded in 1983 by Roy Sherrill, and is headquartered in Bothell, Washi ...
includes an implementation. ROM-DOS was introduced in 1989 as an MS-DOS compatible operating system designed for embedded systems. ROM-DOS 7.1 added support for FAT32 and long file names.


FreeDOS

The implementation of in FreeDOS is free software. The FreeDOS version was developed by Brian E. Reifsnyder and is licensed under the GNU GPLv2.


PTS-DOS

Paragon Technology Systems Paragon Software Group is a German software company that develops hard drive management software, low-level file system drivers and storage technologies. The Smart Handheld Device Division (SHDD) offers multilingual dictionaries, multilingual ha ...
PTS-DOS PTS-DOS (aka PTS/DOS) is a disk operating system, a DOS clone, developed in Russia by PhysTechSoft and Paragon Technology Systems. History and versions PhysTechSoft was formed in 1991 in Moscow, Russia by graduates and members of MIPT, infor ...
2000 Pro includes an implementation.


Mach and 386BSD

for
Mach Operating System Mach () is a kernel (operating system), kernel developed at Carnegie Mellon University by Richard Rashid and Avie Tevanian to support operating system research, primarily distributed computing, distributed and parallel computing. Mach is often con ...
was written by Robert Baron. It was ported to
386BSD 386BSD (also known as "Jolix") is a discontinued Unix operating system based on the Berkeley Software Distribution (BSD). It was released in 1992 and ran on PC-compatible computer systems based on the 32-bit Intel 80386 microprocessor. 386BSD inn ...
by Julian Elischer, and the implementation is being used by
FreeBSD FreeBSD is a free and open-source Unix-like operating system descended from the Berkeley Software Distribution (BSD), which was based on Research Unix. The first version of FreeBSD was released in 1993. In 2005, FreeBSD was the most popular ...
, *
NetBSD NetBSD is a free and open-source Unix operating system based on the Berkeley Software Distribution (BSD). It was the first open-source BSD descendant officially released after 386BSD was forked. It continues to be actively developed and is a ...
and DragonFly BSD, * all as of 2019, as well as the early versions of
OpenBSD OpenBSD is a security-focused, free and open-source, Unix-like operating system based on the Berkeley Software Distribution (BSD). Theo de Raadt created OpenBSD in 1995 by forking NetBSD 1.0. According to the website, the OpenBSD project em ...
between 1995 and 1997 before OpenBSD 2.2. Tobias Weingartner re-wrote in 1997 before OpenBSD 2.2, * which has subsequently been forked by Apple Computer, Inc in 2002, and is still used as the basis for on macOS as of 2019. For native partitions, BSD systems traditionally use BSD disklabel, and partitioning is supported only on certain architectures (for compatibility reasons) and only in addition to the BSD disklabel (which is mandatory).


Linux

In Linux, fdisk is a part of a standard package distributed by the Linux Kernel organization, util-linux. The original program was written by Andries E. Brouwer and A. V. Le Blanc and was later rewritten by Karel Zak and Davidlohr Bueso when they forked the util-linux package in 2006.


See also

*
List of disk partitioning software This is a list of utilities for performing disk partitioning Disk partitioning or disk slicing is the creation of one or more regions on secondary storage, so that each region can be managed separately. These regions are called partitions. It ...
* format (command) * cfdisk *
GUID Partition Table The GUID Partition Table (GPT) is a standard for the layout of partition tables of a physical computer storage device, such as a hard disk drive or solid-state drive, using universally unique identifiers, which are also known as globally unique i ...


References


Further reading

* * *


External links


Linux Partition HOWTO. Partitioning with fdisk



fdisk from utils-linux-ng

blkid - command-line utility to locate/print block device attributes


.
FreeBSD System Manager's Manual, FDISK(8)
{{Windows commands External DOS commands OS/2 commands Unix file system-related software Windows administration Disk partitioning software