Forum Discussion
How to format a usb drive when not showing on my computer?
When a USB drive does not show up in your standard file explorer, it is often due to a corrupted partition table or a lack of an assigned drive letter. In these cases, the DiskPart command-line utility in Windows provides a more powerful way to "clean" the drive of all its current data and configuration, allowing you to build a fresh, working partition from scratch.
How to format a USB drive with diskpart
Press the Windows Key, type cmd, right-click on "Command Prompt," and select Run as administrator.
Launch DiskPart: Type diskpart and press Enter. The prompt will change to DISKPART>.
Identify Your USB Drive: Type list disk and press Enter. This displays all connected drives.
Look for the disk number that matches your USB’s storage size (e.g., Disk 1 or Disk 2).
Select the USB: Type select disk X (replace X with your USB’s number, e.g., select disk 2) and press Enter.
Wipe the Drive: Type clean and press Enter. This removes all existing partitions and hidden formatting information.
Create a New Partition: Type create partition primary and press Enter.
Format the Partition: Type format fs=fat32 quick (use fs=ntfs if the drive is larger than 32GB) and press Enter.
Assign a Drive Letter: Type assign and press Enter. This gives the drive a letter (like E: or G:) so it finally appears in File Explorer.
Exit: Type exit and press Enter twice to close DiskPart and the Command Prompt.
Using DiskPart is a deep clean method to format a USB drive that resets a USB drive to its factory-new state. By using the clean command, you bypass standard file system errors that prevent the drive from being recognized, and by manually assigning a letter, you force Windows to display the drive in your list of devices.