However, formatting a hard disk might not always be the smoothest of processes. Many users have reported an acknowledged receiving an error message when trying to format the hard drive: Let us consider the two scenarios:

Windows cannot format this drive, Quit any disk utilities or other programs that are using this drive

Let us troubleshoot the issue on a case by case basis:

You wish to format the system drive C & erase all data from your system

To do this, it is best you use the Windows installation media during Setup and select the Format option when you are asked. You will usually want to do this when you plan to clean install an operating system.

You wish to format the Data drives D:, E:, etc.

The ideal procedure to format any of these drives would be to right-click on the drive, click on Format and then start the formatting procedure. But since it is not working, we will try the following steps:

1] Force Format using Disk Management

Press Win + R to open the run window. Type diskmgmt.msc and press Enter. This opens the Disk Management Tool. Right-click on the drive you wish to format and click on the option Format. The drive won’t format straight away but will give the following error message: It will format the drive forcefully and this could be verified by checking the space on the drive. Read: Can’t format USB Drive.

2] Use Diskpart

If this does not work for you, you may need to make use od the Diskpart command-line tool which ships with your Windows 10/8/7 OS.

To run this tool, open an elevated command prompt and run the following command one after the other: Here you have to replace with the number of the volume that you wish to format. This will format the drive. The optional switches you can use with the format command are:

FS= – Specifies the type of file system. If no file system is given, the default file system is used.REVISION = <X.XX> – Specifies the file system revision (if applicable).RECOMMENDED – If specified, use the recommended file system and revision instead of the default if a recommendation exists.LABEL=<“label”> – Specifies the volume label.UNIT= – Overrides the default allocation unit size. Default settings are strongly recommended for general use.QUICK – Performs a quick format.COMPRESS – NTFS only: Files created on the new volume will be compressed by default.OVERRIDE – Forces the volume to dismount first if necessary. All opened handles to the volume would no longer be valid.NOWAIT – Forces the command to return immediately while the format process is still in progress.NOERR – For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur.

Examples:

FORMAT FS=NTFS LABEL=”New Volume” QUICK COMPRESSFORMAT RECOMMENDED OVERRIDE

Hope this helps. See these posts if you receive such error messages:

Windows could not format a partition on disk – Error Code 0x80070057Windows cannot be installed to this disk, The selected disk is of the GPT partition style.