0% found this document useful (0 votes)
0 views

How to use DiskPart to clean and format a drive

This document provides a step-by-step guide on using DiskPart to clean and format a drive, emphasizing the importance of selecting the correct drive to avoid data loss. It includes commands for opening DiskPart, listing drives, selecting the desired drive, cleaning it, creating a partition, formatting it, and assigning a drive letter. The guide advises caution and suggests disconnecting other drives to prevent accidental data erasure.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

How to use DiskPart to clean and format a drive

This document provides a step-by-step guide on using DiskPart to clean and format a drive, emphasizing the importance of selecting the correct drive to avoid data loss. It includes commands for opening DiskPart, listing drives, selecting the desired drive, cleaning it, creating a partition, formatting it, and assigning a drive letter. The guide advises caution and suggests disconnecting other drives to prevent accidental data erasure.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

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.

1. Open the command prompt


2. Connect the drive you want clean and format to your computer.
3. Type the following command and press Enter:

diskpart

4. Type the following command to list all the available drives and press Enter:

list disk

5. Take your time and very carefully, on the output from the previous command,
identify the drive you want to clean.

Use the following command to select the drive and press Enter:

select disk 3 (the number will be whichever drive you want to clean)

Remember to change 3 in the command with the number of the drive you want to
clean. If you fail to choose the correct number will erase all the data from the wrong
drive.
6. Type the following command to clean the drive and press Enter:

clean

7. 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.

8. Type the following command to create a partition and press Enter:

create partition primary

9. Type the following command to select the partition you just created and press Enter:

select partition 1
10. Type the following command to set the partition active and press Enter:

active

11. 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.

12. 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.
13. 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.

You might also like