Share this article

Improve this guide

What is Fdisk & Which Tasks Can it Perform?

This is a legacy tool and it’s not available anymore

3 min. read

Published onAugust 15, 2024

published onAugust 15, 2024

Share this article

Improve this guide

Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more

When it comes to managing your hard disk, understanding fdisk can be a useful tool, and in today’s guide, we’re going to show you everything you need to know about it.

What is fdisk and how does it work?

What is fdisk and how does it work?

What is fdisk?

FDISK is a disk utility included in all versions of MS-DOS, Windows, and Linux for formatting, partitioning, or deleting portions of a hard disk drive.

It allows the creation of multiple partitions on a hard drive and can be used to prepare the disk for new operating systems or manage partitions on existing drives.

In Linux, the FDISK utility provides commands to create, delete, resize, change, and move partitions.

What does the fdisk do?

Fdisk allows you to see the current partition table along with all partitions on a specific disk, including information about disk size, type, and other attributes.

It also allows you to create partitions, delete them, and change their type. It can also be used to fix problems with corrupted partition tables.

Basic Commands for FDISK in MS-DOS and Windows

fdisk /mbrRewrites the master boot record.

fdisk 1/pri:100Creates a 100 MB partition on the hard drive.

fdisk 1/log:250Creates a logical drive of size 250 MB.

fdisk /statusShows the current status of the hard drive.

fdisk /qPrevents the FDISK utility from automatically booting the system after exiting.

Basic commands for fdisk in Linux

sudo fdisk -lViews details of available disk partitions.

sudo fdisk -l /dev/sdaViews the partitions on a specific disk.

sudo fdisk /dev/sdaStarts FDISK to create or manage partitions on a specific disk.

sudo fdisk -s /dev/sdaViews the partition size.

What replaced fdisk?

Fdisk hasn’t been a part of Windows for a while, and modern versions of Windows don’t support it, so it has been replaced with diskpart.

To learn more, we have an in-depth guide ondiskpart commands, so you might want to check it out. However, fdisk is still available on Linux.

Does fdisk erase data?

No fdisk doesn’t delete data, but if you choose to create a new partition table on data that has files on it, all data will be erased.

What is the limitation of fdisk?

Fdisk works only with the MBR partition scheme, so if you’re using the GPT scheme you won’t be able to use fdisk.

This means that you won’t be able to work with disks larger than 2TB. The command can’t be used to resize existing partitions, so you can’t change their size.

It’s worth mentioning that fdisk doesn’t have a graphical interface, so using it can be hard for users who aren’t used to the command line.

Lastly, fdisk doesn’t automatically align partitions for optimal performance on modern storage devices which can result in performance issues on SSDs.

When to use fdisk?

Fdisk is a legacy tool and in most cases, you’re better off using a different tool such as diskpart or gparted.

By mastering fdisk you can effectively manage your disk partitions, but this is a legacy tool and you’ll be better off using a different application.

For this purpose, don’t miss our guides on how toopen Disk Management in Windows 11and how to use it tosplit disk space in Windows 11.

More about the topics:command prompt,disk management

Milan Stanojevic

Windows Toubleshooting Expert

Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He’s a PC enthusiast and he spends most of his time learning about computers and technology.

Before joining WindowsReport, he worked as a front-end web developer. Now, he’s one of the Troubleshooting experts in our worldwide team, specializing in Windows errors & software issues.

User forum

0 messages

Sort by:LatestOldestMost Votes

Comment*

Name*

Email*

Commenting as.Not you?

Save information for future comments

Comment

Δ

Milan Stanojevic

Windows Toubleshooting Expert

Before joining WindowsReport, he worked as a front-end web developer. Now, he’s specialized in Windows errors & software issues.