If you have a USB flash drive, SD card, or any other storage drive that is not working properly, clearing, deleting the partition, and resizing it can easily fix the storage problems.
Every day we use different storage memories that may have many problems over time and may not function as before. In this article, we are going to solve the problems related to not formatting the drive and incorrect display of the storage memory capacity, etc., by completely clearing the storage memory, which is called Wipe, and deleting its partition.
Using this method can be extended to a variety of storage memories such as flash drive, solid state drive (SSD), hard drive (HDD) and ASD card.
Using the solution that we will explain below, you will be able to delete partitions that can not be done using normal tools such as disk management software (Disk Management) with a graphical user interface that is present by default in Windows. . In the cleanup process, the disk partition table will be removed so you can reset the partition table.
Execution of command line under admin
First, you need to run the command line window under admin. For this purpose, in Windows 10 or 8.1 you can simply right-click on the start button or press Win + X and select the option (Command Prompt (Admin) from the menu that appears.
In Windows 7, you must also in the Start menu Search for Command Prompt, look for the command line shortcut icon, and right-click on it and select Run as Administrator.
Use diskpart to clear the disk
We intend to use the diskpart command to clean and improve the desired storage memory. Before starting work, make sure that the storage memory is connected to the computer.
To use the diskpart tool, type the command “diskpart” in the command line window and press the Enter key on the keyboard.
Then by typing the command “list disk” and pressing Enter, you will see a list of disks connected to the computer.
Carefully check the output of the previous command to identify the drive number you want to clear. If you choose the wrong disk number, the wrong storage drive will be selected and you will lose your important data.
In the screenshot below, you can see that disk number zero (Disk 0) has a capacity of 238 GB and disk number 1 (Disk 1) also has a capacity of 14 GB. According to other capacities and specifications, it can be understood that disk number 1 is a USB memory and disk number zero is the internal storage drive of the computer.
Once you have identified the disk number you want to erase, type “# select disk” and replace it with the # disk number symbol identified in the previous step.
Warning: Be very careful in entering the correct disk number. Entering the wrong disk number will waste all the data on the wrong selected disk!
The DiskPart tool has now selected the disk you want to use, and the use of any command will be applied to the selected disk. To completely clear the selected disk partition table, type “clean” and press Enter.
After pressing Enter, a message stating that the diskpart succeeded in cleaning the disk will appear in the command line window if all goes well. The cleanup operation is now complete and you must close the command line window to continue.
Partitioning and disk formatting
Now you can partition and format the storage drive as usual using the Windows Internal Disk Management tool. Additionally,
you can use the Disk Part command to do this,
but it is likely that it will be easier for you to use the graphical user interface of the Disk Management software.
To invoke the operating system’s internal disk management software in Windows 10 or 8.1, right-click the Start button and select Disk Management. In Windows 7, to run the Run tool, first press Win + R on the keyboard and type diskmgmt.msc in the box and press Enter.
Inside the Windows Disk Management software, a partition-free drive with the Unallocated tag is easily visible.
Right-click on the drive and select New Simple Volume to create a partition on the drive and format it with the file system.
In the case of flash drives,
disk management software can be created by default using the entire storage space of a partition.
If using the above solution to improve your storage memory did not work for various reasons;
if you successfully erased the drive but had trouble partitioning,
or if the disk partition tool could not detect your drive,
it is very likely that your storage memory is physically damaged, and unfortunately more than that.
You will not be able to do anything. However, Disk Cleanup and Recovery is a solution that can, in most cases,
bring back to life the seemingly unusable and damaged drives!