How to format any drive using Diskpart in windows ?


  • DiskPart is command tool that has been around even before Windows 10, and it allows you to use Command Prompt to manage drives, partitions, and volumes when other tools like Disk Management and Format won't work to fix the problem.


Important: Using these instructions will erase everything on the selected drive, and you can't undo the changes. If the drive is still accessible, it's recommended to backup your data before proceeding. If you have multiple drives connected to your computer, it's also recommended to disconnect them to minimize the chances of selecting the wrong partition.l


1) Open Start menu

2) Search for Command Prompt, right-click the top result, and select the Run as administrator option.

3) Type the following command to launch DiskPart and press Enter:
diskpart

4) Type the following command to list all the drives connected to your computer and press Enter:
list disk

5) Type the following command to select the drive that you want to clean and press Enter:
select disk 1
In the command, make sure to replace 1 for the drive number that you want to delete. If you don't do this step correctly, you could end up wiping out the wrong drive, as such proceed with caution.

6) Type the following command to wipe out the drive and press Enter:
clean

7) Type the following command to confirm the drive still selected and press Enter:
lisk disk
Quick note: The output should include an asterisk (*) next to the selected drive.

8) Type the following command to create a new partition on the drive and press Enter:
create partition primary

9) Type the following command to select the new primary partition and press Enter:
select partition 1

10) Type the following command to make the selected partition active and press Enter:
active

11) Type the following command to format the partition using the Microsoft NTFS file system and to set a drive label, and press Enter:
format FS=NTFS label=Data quick
In the command, remember to replace Data for the name of the drive that you want to see when using File Explorer. Also, the quick flag is optional, but if you don't use it, the format will take a long time.

12) Type the following command to assign a letter and make the drive available in File Explorer and press Enter:
assign letter=w
In the command, replace w with the drive letter that you want to use, and it's not assigned by another drive.

13) Type the following command to terminate DiskPart and press Enter:
exit

Once you complete the steps, if the drive didn't have any physical issues, it should be available through File Explorer, and you can begin storing files on it.

No comments:

Post a Comment

What is Prototype content functions in JavaScript Framework Programming.mp4

  Download now Enjoy! Follow us for more...