ArticleslgStudy

computer science

Fdisk

Fdisk is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Fdisk rather than just read about it. In short: 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, NetBSD, OpenBSD, DragonFly BSD and macOS for compatibility reasons.

Fdisk — main illustration
Fdisk — illustration

Key takeaways

  • Fdisk belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Fdisk to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Fdisk from memory before moving on to harder problems.

Reference excerpt

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, NetBSD, OpenBSD, DragonFly BSD and macOS for compatibility reasons. Windows 2000 and its successors have replaced fdisk with a more advanced tool called diskpart.

Implementations

DOS 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. 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, DR DOS 6.0 FlexOS, PTS-DOS 2000 Pro, and FreeDOS, include an implementation of the fdisk command.

Windows

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 advanced diskpart and the graphical Disk Management utilities. Starting with Windows 95 OSR2, fdisk supports the FAT32 file system. 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. 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/2 Before version 4.0, OS/2 shipped with two partition table managers. These were the text mode fdisk and the graphical fdiskpm. 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 386BSD

fdisk for Mach Operating System was written by Robert Baron. It was ported to 386BSD by Julian Elischer, and the implementation is being used by FreeBSD, NetBSD and DragonFly BSD, all as of 2019, as well as the early versions of OpenBSD between 1995 and 1997 before OpenBSD 2.2. Tobias Weingartner re-wrote fdisk 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 fdisk on macOS as of 2019. 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).

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. An alternative, ncurses-based program, cfdisk, allows users to create partition layouts via a text-based user interface (TUI).

See also List of disk partitioning software format (command) GUID Partition Table

References

Further reading Wolverton, Van (1990). MS-DOS Commands: Microsoft Quick Reference, 4th Revised edition. Microsoft Press. ISBN 978-1556152894. Kathy Ivens; Brian Proffit (1993). OS/2 Inside & Out. Osborne McGraw-Hill. ISBN 978-0078818714. Tim O'Reilly; Troy Mott; Walter Glenn (1999). Windows 98 in a Nutshell: A Desktop Quick Reference. O'Reilly. ISBN 978-1565924864.

External links

Linux Partition HOWTO. Partitioning with fdisk Linux Programmer's Manual, fdisk(8) fdisk from utils-linux-ng blkid - command-line utility to locate/print block device attributes Using the blkid Command Archived 2016-09-13 at the Wayback Machine . FreeBSD System Manager's Manual, FDISK(8)

Illustrations

Fdisk illustration
Fdisk: The fdisk command on Microsoft Windows 95
The fdisk command on Microsoft Windows 95

Worked examples

Example 1 — a first encounter with Fdisk

Start with the simplest possible case. Write down what Fdisk claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Fdisk before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Fdisk ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Fdisk

In research
Fdisk appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Fdisk in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Fdisk is common in secondary-school and first-year university syllabi. It links to neighbouring topics Disk partitioning software, External DOS commands, OS/2 commands, so understanding it makes those chapters shorter.
In everyday life
Look for Fdisk outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Fdisk” →

How to study Fdisk in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Fdisk means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Fdisk out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Fdisk in simple terms?

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, NetBSD, OpenBSD, DragonFly BSD and macOS for compatibility reasons.

Why does Fdisk matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Fdisk?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Fdisk.

Tags

  • Disk partitioning software
  • External DOS commands
  • OS/2 commands
  • Unix file system-related software
  • Windows administration
  • Windows commands

Keep exploring