How to Format Pen Drive using CMD?
Geeks - To format a pen drive using the Command Prompt, you will need to follow these steps:
Plug the pen drive into your computer.
Open the Command Prompt. You can do this by searching for "cmd" in the Start menu or by pressing the Windows key + R, typing "cmd" in the Run box, and then pressing Enter.
Type the following command and press Enter:
Copy code
diskpart
Once you are in the DiskPart utility, type the following command to list all available disks on your computer:
Copy code
list disk
Identify the disk number of your pen drive from the list. It will likely be the disk with the smallest capacity.
Type the following command to select the pen drive:
Copy code
select disk <disk number>
Type the following command to clean the pen drive, which will delete all the existing partitions and data on the drive:
Copy code
clean
Type the following command to create a new primary partition on the pen drive:
Copy code
create partition primary
Type the following command to select the newly created partition:
Copy code
select partition 1
Type the following command to format the pen drive with the NTFS file system:
Copy code
format fs=ntfs quick
Type the following command to assign a drive letter to the pen drive:
Copy code
assign
Your pen drive should now be formatted and ready to use. Keep in mind that this process will delete all data on the drive, so make sure you have backed up any important files before proceeding.