How to format USB flash drive using Command Promt

Before learning the steps for cleaning the drive, let’s first understand what does DiskPart clean do? When you use the “clean” command in Diskpart, the utility software will clean the selected disks and information from the hidden sectors. All the stored data gets deleted, and you can’t undo it. It is recommended to take a backup first if there is some important data in the drive.
The time taken by the complete process depends on the disk size. To clean the drives follow the following steps:


Step 1- Open Command Prompt
Search command prompt, right-click, and run it as an administrator. 

Step 2- Type diskpart
Type the command as mentioned above and press ‘‘Enter’’ to launch DiskPart.



Step 3- Type list disk

The command will show the list all the drives that are available with the computer. After typing the command, press "Enter".


Step 4- Select the Drive by typing select disk X
The "X" mentioned in the command needs to replaced with the drive number that requires cleaning. Make sure you put the right number else you will end up cleaning the wrong drive.

 

Step 5- Type clean
The “clean” command will wipe out required hard drive. Press ‘‘Enter’’ after typing it. It will clean up all the files and folders of the drive permanently.





Step 6- Type created partition primary and press "Enter".

It will create the new partition of the device.

 

Step 7- Type active and press ‘Enter’ after that.
This will active created partition.



Step 8- Type format fs=ntfs. Press "Enter" to begin the process.
For format the drive with the command.This is the most common file system type.But there are some other types



Step 9- Assign a letter to the drive, to make it available in the File Explorer and then exit.
Press "Enter" after typing assign letter=*, (type your preferred letter in place of * that you want to assign to the partition.).Then to exit the DiskPart, type exit and "Enter" or "ctrl+c".

7 comments: