DiskPart is a powerful command-line tool, and this article introduces one of its functions - DiskPart format. It will explain in detail the meaning of DiskPart formatting and how to use it to format disks. Besides DiskPart, you can also use the MiniTool Partition Wizard to format hard drive.

What Is DiskPart Format?

DiskPart format is a command within the DiskPart tool that can erase data on a disk or partition and reset the file system. Its syntax is as follows: format fs=* (quick).

Here, * represents the name of the file system, such as NTFS, FAT32, or exFAT. While the “quick” parameter determines whether a quick format is performed. If this parameter is omitted, a full format is executed instead.

When using DiskPart formatting, there are several important things to know: the application scenarios for different file systems, the difference between quick format and full format, and the difference between DiskPart format and DiskPart clean.

It will explain these points in detail below.

1. File Systems and Their Use Cases.

When formatting with DiskPart, you can choose different file systems depending on your needs:

  • NTFS: Ideal for storing large files and used primarily by Windows systems.
  • FAT32: Offers high compatibility across different operating systems and devices, but has a 4GB file size limit.
  • exFAT: Supports multiple operating systems/devices and can store single files larger than 4GB.
NTFS vs FAT32 vs exFAT: In-depth Comparison and Analysis
NTFS vs FAT32 vs exFAT: In-depth Comparison and Analysis

This post comprehensively explains NTFS vs FAT32 vs exFAT from aspects including features, differences, and different applicable scenarios.

Read More

2. Quick Format vs. Full Format.

  • Quick format: It formats a partition by deleting the corresponding partition table entry and then creating a new one. In some ways, it’s like deleting a partition and then recreating a new one in the same location.
  • Full format: A full format completely erases all files on the partition with 0 and 1. It also scans the partition for logical bad sectors and marks them, and then rebuilds the file system, volume labels, and cluster size.

3. DiskPart Format vs. DiskPart Clean.

When discussing the DiskPart format command, the DiskPart clean command is often mentioned as well, since both can operate on the disk, but their purposes differ.

  • DiskPart Format: This command works on a partition or volume. It formats the selected partition by logically removing the existing data and creating a new file system, while the disk’s partition structure remains intact.
  • DiskPart Clean: This command works on the entire disk. It removes all partition and volume information from the disk, effectively wiping the partition table and turning the whole disk into unallocated space.
Note:
Additionally, after running the DiskPart clean command, when you open Disk Management, you will see a window prompting you to initialize the disk.

Also read: A Comprehensive Guide to DiskPart Clean VS Clean All Commands.

How to Format Hard Drive Using DiskPart Format Command?

Formatting a disk using DiskPart requires extreme caution, as improper operation may result in data loss.

Tips:
In Windows, regardless of whether you use built-in formatting tools such as DiskPart, Disk Management, or File Explorer, you cannot format a storage device with a capacity exceeding 32GB as FAT32.

This guide uses Windows 10 as an example to show the specific steps to format drive using DiskPart.

Step 1: Open the DiskPart utility.

  1. Press the Win + R key, type diskpart, and press Enter.
  2. When the User Account Control prompt appears, click Yes to proceed.

Step 2: Type the following commands in sequence, and hit Enter after each.

  1. list disk (Running this command will show every disk detected on the computer)
  2. select disk * (* represents the disk number)
  3. clean (Completely delete all partitions and volume information on the selected disk)
  4. convert mbr/gpt (This command changes the disk’s partition table type. MBR only supports disk capacities up to 2TB and can only create a maximum of 4 primary partitions. GPT, on the other hand, supports much larger disk capacities and can create partitions up to 128.)
  5. create partition primary (Create a primary partition on the selected disk)
  6. assign letter=* (This command is used to assign a drive letter to the selected partition)
  7. format fs=ntfs quick (This command performs a quick format of the drive to NTFS. If needed, you can replace NTFS with FAT32 or exFAT, and also leave out ‘quick’ to run a full format instead.)
The Command Prompt interface to format a hard drive.

Step 3: Once the formatting process is complete, type exit or click the X icon to close the DiskPart command prompt window.

DiskPart Format Alternative – MiniTool Partition Wizard

Besides using the DiskPart format command to format a disk, you can also use the MiniTool Partition Wizard.

It’s a free disk partition software that can help you format HDDs, SSDs, SD cards, and USB flash drives.

In addition, it can create/format/delete partitions, move/resize/extend partitions, copy partitions, convert partitions between FAT32 and NTFS without data loss, convert MBR to GPT without deleting partitions, and more.

MiniTool Partition Wizard FreeClick to Download100%Clean & Safe

Here are four features of MiniTool Partition Wizard. They are related to formatting hard drives.

#1. Delete All Partitions.

If there are multiple partitions on the disk, you can select the disk and click Delete All Partitions.

  1. Launch MiniTool Partition Wizard to its main interface.
  2. Right-click the disk you no longer need and choose Delete All Partitions, and then click Yes.
  3. The original partitions will appear as Unallocated.
  4. Click the Apply button to perform all changes.
The MiniTool Partition Wizard interface with the selected Delete All Partitions option.

#2. Convert MBR/GPT.

The disk type must match your computer’s boot mode. If your computer uses BIOS, you need to use an MBR disk. If it uses UEFI, you should use a GPT disk.

Using MiniTool Partition Wizard to convert between MBR and GPT formats will not result in data loss.

  1. In MiniTool Partition Wizard, right-click the disk and choose Convert GPT to MBR Disk or Convert MBR to GPT Disk.
  2. Click Apply > Yes button.
The MiniTool Partition Wizard interface with the selected Convert GPT to MBR Disk option.

#3. Create Partition.

  1. In MiniTool Partition Wizard, right-click the unallocated space and choose Create.
  2. In the pop-up window, you can set Partition Label, Drive Letter, File System, Cluster Size, etc. Then, click OK > Apply > Yes to perform all changes.
The Create New Partition interface with the selected OK option.

#4. Format Hard Drive.

  1. Right-click the partition that you want to format and choose Format.
  2. Configure the formatting settings (file system, volume label, and cluster size) and then click OK.
  3. Click Apply to start the formatting process, and then click Yes to confirm this operation.
The Format Partition interface with the selected file system.

Recover Data from a Formatted Hard Drive

When a disk is formatted, if it contains important files, the data isn’t immediately and completely lost, but you won’t be able to access those files directly.

In this case, you can use the Data Recovery function of MiniTool Partition Wizard to retrieve the lost data from a formatted hard drive.

This software can scan formatted disks and recover various types of files, including documents, pictures, videos, and more.

MiniTool Partition Wizard DemoClick to Download100%Clean & Safe

The MiniTool Partition Wizard interface with the selected Data Recovery option.

Also read: How to Recover Files From Formatted Hard Drive on Windows.

DiskPart couldn’t format the drive to FAT32, so I tried MiniTool Partition Wizard instead, and it handled the formatting perfectly.Click to Tweet

DiskPart Format FAQ

1. Why does DiskPart display access denied?
Generally, access denied is not due to an error in DiskPart itself, but rather because system permissions or disk usage status are restricting the operation.
Therefore, it is recommended that you run Command Prompt as an administrator and ensure the command object (a partition or disk) is not currently in use.
2. Can DiskPart format the system drive?
The system drive cannot be formatted while the system is running. To successfully format the system drive, you must use external bootable media (such as a USB drive or DVD containing a bootable operating system or partitioning tool).
Once the formatting is complete, the system will be unable to boot. Therefore, please back up your important data before formatting.
3. DiskPart formatting failed, and the disk shows as read-only. What should I do?
A read-only disk is usually caused by physical switches, system settings, etc. This is common with USB flash drives, SD cards, and external hard drives. Here are the solutions:
1. Check the physical lock on the USB drive or SD card.
2. Run DiskPart in the command prompt and execute “attributes disk clear readonly” to clear the read-only attribute.
3. Remove write protection by modifying the registry.
4. Why does the “The volume size is too big” error occur when executing DiskPart format?
In DiskPart, if you attempt to format a drive larger than 32GB as FAT32, you will frequently encounter a “The volume size is too big” error.
This is because Windows’ built-in command-line formatting tool imposes a limitation on partition size, permitting only volumes of 32GB or less to be formatted as FAT32.

Bottom line

This article introduces two methods for formatting disks: DiskPart format and MiniTool Partition Wizard. If you have any questions or feedback about MiniTool Partition Wizard, feel free to contact our support team at [email protected] for additional help.

  • linkedin
  • reddit