How to Format C Drive Using Command Prompt in Windows 11, 10, 8, 7?

Need to format C drive using Command Prompt to reinstall your Windows 11, 10, 8, 7 operating system? Here comes the step-by-step guide.

Posted by @Emily December 17, 2024 Updated By @Emily November 19, 2024

Failed to format C drive in File Explorer

“I have an Acer 5101 laptop with 2 drives. I have bought Windows 7. I managed to install this on the D drive having reformatted it before. Now I wish to do the same on the C drive. When I try to format it, I receive the message "You cannot format this volume. It contains the version of Windows that you are using…”. Any ideas?”

On Windows computer, you can format any partition except the system C partition in File Explorer or Disk Management when the OS is running. When you try to format C drive in File Explorer, you will receive the above error message. That’s because Windows sets this limitation out of security consideration to prevent users from deleting the system by mistake. In one word, this partition cannot be formatted or deleted within Windows.

When you want to format the C drive, you need to create Windows installation media or use a third-party tool - AOMEI Partition Assistant. With this software, you can format your hard disk without the need for a Windows installation CD or tool. The tool is easy to use and is suitable for all users.

Download Freeware Win 11/10/8.1/8/7
Secure Download

Successfully format C drive using Command Prompt (Windows Setup CD required)

Though you cannot format C drive within Windows like you format other drives, you can format C drive outside of Windows. To do that, you need to boot your computer from the Windows setup media (CD, DVD or bootable USB device), and use the Command Prompt to format C drive. Specific steps are listed as below:

Importance: because formatting will delete everything on the C drive, you can first back up system drive if necessary.

Step 1. Insert Windows installation media into the (Windows 10/8/7) computer and enter BIOS to set computer boot from it.

Step 2. In the pop-up window, select “Language to install”, “Time and currency format” and “Keyboard or input method”. Then, click “Next”

Step 3. On the next window, click “Repair your computer” from the lower-left corner.

Step 4. In the “Choose an option” window, click “Troubleshoot”> “Advanced options” in the next Window.

Step 5. When the “Advanced options” window appears, select “Command Prompt”.

Step 6. In the Command Prompt window, type “format c: /fs:ntfs” and hit “Enter”.

Or you can click “Install now” in the above step 3 to enter the screen of “Install Windows” where you can select C (primary) drive and click “Format” to format C drive.

Can we format C drive without Windows Setup CD?

As demonstrated in the last part, we can know that format C drive through Command Prompt requires the usage of Windows installation CD. But what if you don’t have one? Thus, you can switch to AOMEI Partition Assistant Standard. With it, you can first make a bootable USB, boot your computer from it to enter WinPE environment, and then format C drive easily. You just need to prepare a USB device (min 8GB) and do as following:

Tip: creating a PE bootable USB drive will delete everything on the selected USB, so back up files you require in advance.

Step 1. Connect the USB drive to your Windows computer, and free download AOMEI Partition Assistant. Install and launch it on PC.

Download Freeware Win 11/10/8.1/8/7
Secure Download

Step 2. In the main interface, click "Tools” in the top toolbar, and choose “Make Bootable Media”.

Step 3. Choose the USB drive and click “Proceed”.

Step 4. Wait for the process to complete. The created bootable USB drive will contain the pre-installed AOMEI Partition Assistant Standard.

Step 5. Restart the computer and enter BIOS to change boot order, so that this computer will boot from the USB device.

Note: If you do not know how to enter BIOS or change boot sequence, you can ask help from the motherboard tech support. Once your computer boots from the bootable disk successfully, AOMEI Partition Assistant Standard will be launched automatically.

Step 6. In the main interface of AOMEI Partition Assistant, right-click the C partition and select “Format Partition”.

Step 7. In the pop-out mini window, you can select a proper file system for your needs and click “OK”.

Step 8. Hit on “Apply” and “Proceed” to commit the pending operation.

Apart from formatting C drive without using Windows installation media, AOMEI Partition Assistant Standard permits you to delete system partition within Windows. That is to say, you can skip the steps of creating Windows PE bootable media above as well.

Why format C drive in Windows PC?

In general, C drive is usually the partition that holds OS, booting files like boot.ini, bootmgr, bcd, etc. on most computers, and formatting C drive means deleting operating system and other related crucial information on it. As a result, Windows will stop working. Why do users still want to format C drive using Command Prompt? Here are some common reasons:

▸Upgrade system disk: Windows is installed on traditional mechanical hard disk drive (HDD), so you want to upgrade the system HDD to SSD for better performance.

▸Reinstall OS: the operating system on your computer has crashed and cannot boot. In this case, you can format C drive and reinstall system.

▸Replace computer: when your computer is failing and needs to be replaced with a new one, you had better format C drive to erase data before selling or donating in view of data security.

▸Eliminate virus and malware: Windows OS is always the focus target of virus and malware. Once it is infected, personal data or files will be dangerous. Formatting C drive can help remove virus and protect computer.

Normally, you cannot format the C drive containing the operating system using normal tools. If you have to format C drive to erase the hard disk and delete all system information, settings, files, and programs on this partition, please choose the partitioning tool for all Windows 11/10/8/7 - AOMEI Partition Assistant.

Download Freeware Win 11/10/8.1/8/7
Secure Download

Summary

We have talked about how to format C drive via Command Prompt by using Windows Setup CD, as well as introduced how to format system partition without Windows Setup CD. Hopefully, you can this task done after reading this article.

If you format C drive with the purpose of upgrading to a larger disk, you can upgrade to AOMEI Partition Assistant Professional, which allows you to clone the system disk to larger SSD or HDD while ensures you can boot from the cloned hard drive successfully. Besides, it also comes with many other fantastic functions such as extending system partition, converting system disk between MBR and GPT, recovering lost data, and more.