Formatting a drive erases everything on it. It is one of the simplest ways to reset a drive and delete its contents. After a format, you get a drive that is ready to store files or run an operating system free of any and all previous files or settings that were applied to it.
With formatting, there are some exceptions e.g. formatting will not remove encryption from a drive but if you think your drive is infected with a virus and is beyond repair, formatting it is the nuclear option. You will still walk away with a drive that can save/store files.
Format a drive on Windows 10
On Windows 10, you can format a drive from File Explorer, the Disk Management tool which offers a GUI for formatting drives, and the Diskpart tool which is a command-line tool.
All tools come with the same formatting options and limitations. One major limitation of these tools is that you cannot format the Windows drive while you’re on your desktop.
That’s not to say you cannot format the Windows drive. You can but the process will be different and you can only use the Diskpart tool to do it.
Access Diskpart tool – Windows 10
If you’re formatting a non-Windows drive i.e., a drive that Windows is not installed on, you can access the Diskpart tool by following these steps.
- Open Command Prompt with admin rights.
- Run the following command.
- The Diskpart tool will be loaded.
Access Diskpart – Outside Windows 10
Accessing the Diskpart tool from outside Windows 10 is slightly complicated. You need to create a Windows 10 installation disk. You do not need to buy a license but you will have to download the OS.
- Visit Microsoft and download the Media Creation tool.
- Use the tool to download Windows 10 and burn it to a USB drive.
- Turn your computer off.
- Connect the USB drive.
- Turn the computer On and boot from the USB drive.
- Enter Windows 10 installation and select the repair option.
- You will see a bunch of tools for repairing the system.
- Select Command Prompt.
- In Command Prompt, enter
Diskpartto activate the tool.
Format a drive – File Explorer
For a non-Windows 10 drive, you can use File Explorer to format it. It’s easier than going through the Diskpart tool.
- Open File Explorer.
- Right-click the drive.
- Select Format.
- Uncheck Quick Format.
- Change the file system if you need to.
- Click Start.
Format a drive – Diskpart
The process for formatting a Windows or non-Windows drive with Diskpart is the same. The only thing that matters is how you access the Diskpart tool.
- Open Command Prompt with admin rights and run the
- List all connected drives with this command:
- Select the disk with the drive you want to format:
select disk no.
- Remove all data on the disk with this command:
- Run this command to create a primary partition:
create partition primary.
- Format the drive with this command:
- To format a partition on a drive, follow steps 1-3.
- Run this command to list the partitions:
- Select the volume you want to format:
select volume no.
- Format the volume with this command:
You should only use Diskpart if you’re trying to format a Windows drive. File Explorer works just as well as the Diskpart tool but you, as a user, have to make fewer selections. There is far less chance of selecting the wrong disk or partition for formatting.