Formatting a USB drive using the Command Prompt (CMD) in Windows is a straightforward process. Here’s a step-by-step guide:
Insert the USB Drive:
Open Command Prompt:
Windows + R
, type cmd
, and press Enter
.cmd
in the Start menu and select "Run as administrator" to ensure you have the necessary permissions.List All Drives:
Enter :
diskpart
Next, type:
list disk
This command lists all the disks connected to your computer, including the USB drive. Identify your USB drive by its size. It will be labeled as Disk X
(where X is the number corresponding to your USB drive).
4. Select the USB Drive:
Enter
(replace X
with your USB drive number):
select disk X
5. Clean the Drive (Optional):
clean
command. This step is optional but recommended for a fresh start:
clean
6. Create a New Partition:
create partition primary
7. Select the Partition:
select partition 1
8. Format the USB Drive:
format fs=fat32 quick
format fs=ntfs quick
format fs=exfat quick
quick
option speeds up the process by performing a quick format. Remove it if you want a full format.9. Assign a Drive Letter:
assign
10. Exit DiskPart:
exit
to leave the DiskPart tool.exit
again to close the Command Prompt.