How to use DiskPart to clean and format a storage drive not working on Windows 10

If you think your drive just went bad and it could simply be a software issue, use DiskPart on Windows 10 to fix it.
When you have an external storage drive connected to your Windows 10 PC, such as a USB flash drive or hard drive, or even an SD Card that isn't working correctly because of data corruption or another serious issue. Many times the Format tool may not be able to fix the problem, and this is when DiskPart can come in handy.
DiskPart is a powerful command-line utility that has been part of Windows for a long time, and it allows you to manage storage devices, partitions, and volumes with features that other tools such as Format or Disk Management can't fix.
In this Windows 10 guide, we'll walk you through the steps to use DiskPart to successfully clean, format, label, and assign a drive letter using the Command Prompt.

How to use DiskPart to clean and format a drive

Important: Using DiskPart will completely erase everything on the drive you select, making it impossible to undo any changes. It's crucial that you correctly choose the drive you want to clean and format. We always recommend making a full backup of your system before proceeding.

  1. Type the following command to clean the drive and press Enter:
    clean
  2. Type the following command to double-check the drive still selected and press Enter:
    list disk
    If the drive still selected, you will notice an asterisk (*) next to the disk.
  3. Type the following command to create a partition and press Enter:
    create partition primary
  4. Type the following command to select the partition you just created and press Enter:
    select partition 1
  5. Type the following command to set the partition active and press Enter:
    active
  6. Type the following command to format the partition using NTFS and to set a label, and press Enter:
    format FS=NTFS label=WC-Drive quick
    Remember to change the WC-Drive in the command with the drive name you want to use.
  7. Type the following command to assign a drive letter and press Enter:
    assign letter=W
    Remember to change W in the command with a letter you want that isn't in use by another drive on This PC.
  8. Use the exit command to close DiskPart to complete the task.
Again, using this guide, remember to take your time and carefully select the drive you want to repair. If you have multiple external drives connected to your computer, it's a good idea to temporary disconnect them before proceeding to reduce the chances of erasing the wrong drive.
Keep in mind that while there is many other tools to format a drive, DiskPart is likely to be your best choice when you're dealing with data corruption, drive inaccurately showing the storage capacity, and other serious problems.
Share on Google Plus

About Readers

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment