DiskPart: Clean up and format a corrupted drive in Windows 10

Here's how you can use DiskPart to clean and reformat a drive in Windows 10.


In Windows 10, when you have an external storage device (such as a USB flash drive, removable hard drive, or card ) that stopped working as a result of data corruption or other problem, you can use DiskPart to properly delete everything and start a fresh configuration with a clean partition.

The DiskPart is a command tool that existed even before Windows 10 and allows you to use the Command Prompt to manage disks, partitions, and volumes when other όπως η Διαχείριση δίσκων και η Διαμόρφωση δεν θα λειτουργήσουν για την of the problem.

In this Windows 10 wizard, we will guide you through the steps to use the DiskPart command tool to clean and format a hard drive that has been corrupted or has other problems.

To fix a problematic hard disk with DiskPart in Windows 10, follow these steps:

Important: These instructions will delete everything on the drive you select, and your changes will not be undone. If the drive is still accessible, it is recommended that you create one copies of her data before continuing. If you have multiple units connected to you are advised to disconnect to avoid making the wrong choice.

1. Press Win + X at the same time and click “Command Prompt (Administrator)".
A new black Windows 10 command prompt window will open.

2. Type the following command there to start DiskPart and press Enter:

3. Type the following command to display all active drives and press Enter:

4. Type the following command to select the drive you want to clean and press Enter:
select disk 0

In this command, make sure to replace 0 with the drive number you want to repair. If you do not perform this step correctly, you could catwrong drive. Proceed with this DiskPart command carefully.

5. Type the following command to delete everything from the drive and press Enter:

6. Type the following command to confirm that the drive is still selected and press Enter:
lisk disk

Note: The output must include an asterisk (*) next to the selected drive.

7. Type the following command to create a new partition and press Enter:
create partition primary

8. Type the following command to select the new primary partition and press Enter:
Select Partition 1

9. Type the following command to activate the partition and press Enter:

10. Πληκτρολογήστε την ακόλουθη εντολή για να διαμορφώσετε το διαμέρισμα χρησιμοποιώντας το σύστημα αρχείων και να ορίσετε μια ετικέτα μονάδας δίσκου και πατήστε Enter :
format FS = NTFS label = iGuRu quick

In the command, remember to replace the data for the drive name by putting what you want to appear in File Explorer. Also the flag quick is optional to move the format faster and you should not use it unless you are sure that the drive has no bad sectors. The only downside to skipping the "quick" option is that the formatting will take a long time.

11. Type the following command to assign a letter and make the drive available in File Explorer and press Enter:
assign letter = g

In the command, replace g with the letter of the drive you want to use, which is not currently assigned by another drive.

12. Type the following command to quit DiskPart and press Enter:

13. Type the following command to close the command prompt and press Enter:

Once you have completed the steps, and as long as the drive does not have a hardware problem, it should be available through File Explorer and you can start saving files to it.

iGuRu.gr The Best Technology Site in Greecefgns

Written by Dimitris

Dimitris hates on Mondays .....

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).