Fdisk

Revision as of 11:00, 17 February 2025 by imported>ClueBot NG (Reverting possible vandalism by 95.128.93.90 to version by AnomieBOT. Report False Positive? Thanks, ClueBot NG. (4376567) (Bot))
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Template:Short description Template:Lowercase title {{#invoke:Infobox|infobox}}Template:Template other{{#invoke:Check for unknown parameters | check | showblankpositional=1 | unknown = Template:Main other | preview = Page using Template:Infobox software with unknown parameter "_VALUE_"|ignoreblank=y | AsOf | author | background | bodystyle | caption | collapsetext | collapsible | developer | discontinued | engine | engines | genre | included with | language | language count | language footnote | latest preview date | latest preview version | latest release date | latest release version | latest_preview_date | latest_preview_version | latest_release_date | latest_release_version | licence | license | logo | logo alt | logo caption | logo upright | logo size | logo title | logo_alt | logo_caption | logo_upright | logo_size | logo_title | middleware | module | name | operating system | operating_system | other_names | platform | programming language | programming_language | released | replaced_by | replaces | repo | screenshot | screenshot alt | screenshot upright | screenshot size | screenshot title | screenshot_alt | screenshot_upright | screenshot_size | screenshot_title | service_name | size | standard | title | ver layout | website | qid }}Template:Main other

fdisk is a command-line utility for disk partitioning. It has been part of DOS, DR FlexOS, IBM OS/2, and early versions of Microsoft Windows, as well as certain ports of FreeBSD,Template:R NetBSD,Template:R OpenBSD,Template:R DragonFly BSDTemplate:R and macOSTemplate:R for compatibility reasons. Windows 2000 and its successors have replaced fdisk with a more advanced tool called diskpart.

ImplementationsEdit

DOSEdit

IBM introduced the first version of fdisk (officially dubbed "Fixed Disk Setup Program") in March 1983, with the release of the IBM PC/XT computer (the first PC to store data on a hard disk) and the IBM PC DOS 2.0 operating system. fdisk version 1.0 can create one FAT12 partition, delete it, change the active partition, or display partition data. fdisk writes the master boot record, which supports up to four partitions. The other three were intended for other operating systems such as CP/M-86 and Xenix, which were expected to have their own partitioning utilities.

Microsoft first added fdisk to MS-DOS in version 3.2.<ref name="RUNNINGMSDOS">Template:Cite book</ref> MS-DOS versions 2.0 through 3.10 included OEM-specific partitioning tools, which may have been named fdisk.

PC DOS 3.0, released in August 1984, added support for FAT16 partitions to handle larger hard disks more efficiently. PC DOS 3.30, released in April 1987, added support for extended partitions. (These partitions do not store data directly but can contain up to 23 logical drives.) In both cases, fdisk was modified to work with FAT16 and extended partitions. Support for FAT16B was first added to Compaq's fdisk in MS-DOS 3.31. FAT16B later became available with MS-DOS and PC DOS 4.0.

The undocumented /mbr switch in fdisk, which could repair the master boot record, soon became popular.

IBM PC DOS 7.10 shipped with the new fdisk32 utility.

ROM-DOS,<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> DR DOS 6.0<ref name="drdos6userguide">DR DOS 6.0 User Guide Optimisation and Configuration Tips</ref> FlexOS,<ref>http://www.bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf Template:Webarchive Template:Bare URL PDF</ref> PTS-DOS 2000 Pro,<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> and FreeDOS,<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> include an implementation of the fdisk command.

WindowsEdit

Windows 95, Windows 98, and Windows ME shipped with a derivative of the MS-DOS fdisk. Windows 2000 and its successors, however, came with the more advancedTemplate:According to whom diskpart and the graphical Disk Management utilities.

Starting with Windows 95 OSR2, fdisk supports the FAT32 file system.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

The version of fdisk that ships with Windows 95 does not report the correct size of a hard disk that is larger than 64 GB. An updated fdisk is available from Microsoft to correct this issue.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> In addition, fdisk cannot create partitions larger than 512 GB, even though FAT32 supports partitions as big as 2 TB. This limitation applies to all versions of fdisk supplied with Windows 95 OSR 2.1, Windows 98 and Windows ME.

IBM OS/2Edit

Before version 4.0, OS/2 shipped with two partition table managers. These were the text mode fdisk<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> and the graphical fdiskpm.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> The two have identical functionality, and can manipulate both FAT partitions and the more advanced HPFS partitions.

OS/2 4.5 and higher (including eComStation and ArcaOS) can use the JFS file system, as well as FAT and HPFS. They replaced fdisk with the Logical Volume Manager (LVM).

Mach and 386BSDEdit

Template:Anchor fdisk for Mach Operating System was written by Robert Baron. It was ported to 386BSD by Julian Elischer,<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> and the implementation is being used by FreeBSD,<ref name=f>{{#invoke:citation/CS1|citation |CitationClass=web }}

|CitationClass=web }}</ref> and DragonFly BSD,<ref name=d>{{#invoke:citation/CS1|citation |CitationClass=web }}

Tobias Weingartner re-wrote fdisk in 1997 before OpenBSD 2.2,<ref name=o>{{#invoke:citation/CS1|citation |CitationClass=web }}

For native partitions, BSD systems traditionally use BSD disklabel, and fdisk partitioning is supported only on certain architectures (for compatibility reasons) and only in addition to the BSD disklabel (which is mandatory).

LinuxEdit

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. An alternative, ncurses-based program, cfdisk, allows users to create partition layouts via a text-based user interface (TUI).<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

See alsoEdit

ReferencesEdit

Template:Reflist

Further readingEdit

External linksEdit

Template:Sister project

Template:Windows commands