Skip to main content

Using Command Prompt to Format a Hard Drive: What You Need to Know

Formatting one of the best hard drives or SSDs is the same as buying a new hard drive since the process erases all the data in one fell swoop. When you format your hard drive, you can clean internal as well as external storage media.

In this tutorial, we explain how you can format a hard drive using the command prompt. Before proceeding further, make sure you backup all available data to prevent data loss. Follow the steps below to format a drive:

STEP 1:    Open Command Prompt As Administrator

Opening the command prompt.

Search for command prompt, right click and run as Administrator.

STEP 2:    Use Diskpart



Using diskpart

Once command line is open, type 'diskpart' and press Enter.

STEP 3:    Type List Disk




Using list disk

The above command will open a Diskpart window. In this window, type 'list disk' and press Enter. It will list all the available drives.

STEP 4:    Select the Drive to Format


Formatting a drive.

Now type 'select disk (disk number)' as shown above. Specify the drive number which needs to be formatted.

STEP 5:    Clean the Disk


Using the clean function.

In this step, type 'clean'. This command will permanent delete all files and folders, and successfully clean up the disk.

STEP 6:    Create Partition Primary


Creating primary partition.

To make the drive again accessible, type 'create partition primary'.

STEP 7:    Format the Drive




Now format the drive with FAT or NTFS file system. Type 'format fs=ntfs' and press Enter.

STEP 8:    Assign a Drive Letter


Assigning a drive letter.

To assign a drive letter, you can type 'assign' as shown above. 























Comments

Popular posts from this blog

Starlink is only for the rich or for big offices!" — that’s what many people think

  "Starlink is only for the rich or for big offices!" — that’s what many people think. But actually, that’s not true. With a little effort and some smart planning, even ordinary people in villages — shopkeepers, rickshaw pullers — can use this high-speed internet if they come together as a group. How is it possible at such a low cost? Let’s break it down: Starlink’s monthly bill is around 4,200 to 6,000 BDT. That may seem expensive for one person, but if 20 to 25 people share the cost, it becomes very affordable: Monthly cost per person (if 20 people share): 4,200 ÷ 20 = just 210 BDT! One-time setup cost (dish, router, etc.): Around 50,000 BDT (only paid once) So even a rickshaw puller could use high-speed Wi-Fi by paying just 200–250 BDT per month! Here’s how it works, in simple steps: 1. Install the Starlink dish in an open space with a clear view of the sky. 2. A cable runs from the dish to the Starlink modem. 3. The modem is connected to a Wi-Fi router. 4. The ...

Level Up Your Code: Discover 2025's 10 Leading AI Assistants for Coders

  In 2025, testing software isn't just about finding bugs — it's about working smarter. With the rise of powerful and accessible AI tools, Vibe coders now have the opportunity to test faster, more efficiently, and with fewer headaches. AI testing tools are driving this transformation. These tools go beyond basic automation — they can detect edge cases, write test scripts, debug in real time, and even suggest fixes or improvements. In this list, we’ll explore the top 10 AI testing tools every modern developer should know. Whether you're coding a quick prototype or managing a large-scale project, having the right AI assistant in your workflow can make a huge difference. That’s why we’ve put together this list of 20 must-try AI coding agents. From full-stack builders to browser automators and IDE companions, these tools are shaping the future of development and you’ll want to know about them. Build APIs Faster with  Apidog  Say goodbye to tab-switching. If you are working wi...

5 Great Linux Utilities to Monitor Your System Resources in the Terminal

  Although the standard Linux utilities have served us well over the years, in some scenarios they fall short. If you've ever found yourself writing a one-liner to poll a command or struggling to parse a badly formatted table, then it's a clear sign that the tools at hand are lacking. What you need are better tools; what I have are better tools—five that will make your Linux life easier. 1 NCurses Disk Usage (ncdu) To view the sizes of directories, du is a solid choice, and it's generally the first pick for most people. However, it lacks exploratory capabilities. A few times a year, my system complains to me that it's running low on disk space, and I find myself exploring the file system to manually delete large directories of accumulated garbage. This is where du lacks, and where ncdu shines. With its simple interface,  ncdu provides blazing-fast exploration to size up directories . Those familiar with Vim will feel at home because it uses Vim keys for navigation; tho...