How to Fix Storage Device Not Working Using Diskpart on Windows 10

4 minutes read

Storage devices play a crucial role in our lives. Whether it’s an external hard drive, USB flash drive, or SD card, we rely on them to store and transfer important data. However, there are times when these storage devices may encounter issues and stop working properly. When faced with such a situation on a Windows 10 system, using Diskpart can be a lifesaver. In this article, we will guide you through the process of fixing a storage device that’s not working using Diskpart.

Written By
Updated On

Even with our best efforts to keep our storage drives in tip-top shape, encountering error messages is almost inevitable. When these issues arise, it's natural to seek help, especially if you're not a tech wizard. However, tackling these problems without a clear understanding of their nature can sometimes make matters worse. So, let's start by identifying the problem.

Common Issues When Your Storage Device Stops Working

Picture this: You're running late for a crucial presentation, and suddenly, your computer freezes. To your dismay, it's not a PC issue; instead, it declares that your "drive is not accessible." This frustrating scenario can be caused by various factors, including data corruption, incorrect drive capacity display, or a drive that refuses to be formatted. These problems often arise when your storage device is filled with data and lacks proper formatting.

Troubleshooting Steps

When you encounter such a predicament, the first step is to perform some basic troubleshooting:

  1. Restart Your System: Sometimes, Windows fails to detect a drive due to minor glitches. A simple restart might resolve the issue.
  1. Change USB Ports: If Windows doesn't recognize your drive, try plugging it into a different USB port. If it's recognized in one port and not in another, you may have a faulty USB port.
  1. Clean or Format Your Drive: If neither of the above steps works, you can resort to cleaning or formatting your storage drive. While there are several methods to achieve this, one of the simplest is using Diskpart on Windows 10.

Before proceeding with drive cleaning, it's essential to emphasize the importance of caution. Cleaning a storage drive using Diskpart erases everything on the selected drive. Therefore, before proceeding, ensure you have a complete backup of your system.

Using Diskpart to Clean the Storage Drive

Follow these steps to clean your storage drive:

  • Right-click the Start button or press Windows Key+X, then select Command Prompt (Admin).
  • Type 'diskpart' into the command prompt window and press Enter.
  • Type 'list disk' to view all available drives and press Enter.
  • Identify the drive you want to clean and type 'select disk xxx' (replace 'xxx' with the correct disk number). Be extremely cautious in selecting the correct drive to avoid data loss.
  • Once you've verified the correct drive selection, type 'clean' and press Enter.

You have successfully used diskpart to clean the drive. In case you have erased the wrong drive or accidentally typed in the wrong disk number, then you can always go to DIY guide on recovering partitions after using DiskPart

Initializing Partition of the Disk

To initialize the partition and format the disk:

  1. Type 'create partition primary' and press Enter.
  2. Type 'select partition 1' (assuming this is the partition you just created) and press Enter.
  3. Set the partition as active by typing 'active' and pressing Enter.

Formatting the Disk

Now, format the partition:

  1. Type 'format FS=NTFS label=WC-Drive quick' (replace 'WC-Drive' with your desired drive name) and press Enter.
  2. Assign a drive letter by typing 'assign letter=W' (change 'W' to your preferred letter) and press Enter.
  3. Finally, type 'exit' to complete the process.

Formatting the USB flash drive and cleaning the drive using Diskpart can fix the storage capacity issues on the USB flash drive. We suggest you read this article if you are curious to know other ways to fix USB drive only showing half capacity.


While there are various tools available for drive formatting, Diskpart remains a reliable choice. Its straightforward approach ensures a quick and thorough process, sparing you the hassle of data recovery after a quick format.

About the Author: John Harris

With a decade of experience in data recovery, John Harris, Senior Editor at Remo Software, is your go-to specialist. His focus includes partition management, Windows solutions, and data troubleshooting, delivering insightful content that serves both users and search engines. John's expertise shines through in illuminating blog posts, untangling data loss intricacies across diverse storage platforms.…