Quick answer — format raw usb drive cmd: open an elevated CMD → type diskpart
→ list disk
→ select disk N
→ clean
→ create partition primary
→ format fs=fat32 quick
→ assign
→ exit
. ⚠️ This erases data—recover files first with free tools like iCare Recovery Free.
When a USB shows as RAW, Windows can’t read its file system. Below, you’ll first recover your files using a free utility, then repair and format USB drive cmd-style (and with alternatives) so it works like normal again. ✓
Important: formatting fixes structure but destroys existing directory metadata. Before any write operations, try recovery:
⚠️ Tip: Stop using the RAW USB immediately; new writes can overwrite lost data.
Use DiskPart to wipe broken partitioning and recreate a clean FAT32 volume.
diskpart
list disk
select disk N ← replace N with your USB's number
clean
create partition primary
format fs=fat32 quick
assign
exit
⚠️ Warning: clean
removes all partitions on the selected disk. Double-check the disk number before pressing Enter.
Formatting a RAW USB drive using Command Prompt involves utilizing the diskpart
utility. This process will erase all data on the drive. Follow these steps carefully:
diskpart
and press Enter.
list disk
and press Enter to display all connected disks.select disk X
(replace X with the disk number of your USB drive) and press Enter.
clean
and press Enter. This command removes all partitions and data from the selected disk.
create partition primary
and press Enter.
format fs=NTFS quick
(for NTFS) or format fs=FAT32 quick
(for FAT32) and press Enter.quick
for a full format (takes longer).
assign
and press Enter to auto-assign a letter.assign letter=Y
(replace Y with a desired letter) to specify one.
exit
and press Enter to leave Diskpart.exit
again and press Enter to close the Command Prompt window.
✅ Your USB drive should now be formatted and accessible.
Here are the steps for formatting raw usb ntfs using cmd.
Option, instead of fat32, you may also format the raw usb to ntfs using cmd, the following guide would show you the detailed steps.
If the USB already has a valid partition but shows errors, try a simple format command:
format X: /FS=FAT32 /Q /V:USB_DRIVE
Replace X:
with your USB drive letter. Use /FS=exFAT
or /FS=NTFS
if you prefer those file systems.
If you prefer tools or a GUI, these free options can also format a RAW/corrupted USB:
Get-Disk | Where PartitionStyle -Eq 'RAW'
Get-Partition -DiskNumber N -ErrorAction Ignore | Remove-Partition -Confirm:$false
Initialize-Disk -Number N -PartitionStyle MBR
New-Partition -DiskNumber N -UseMaximumSize -AssignDriveLetter |
Format-Volume -FileSystem FAT32 -NewFileSystemLabel 'USB' -Confirm:$false -Force
If you don’t want to rely only on CMD or Windows Disk Management, there are several reliable free USB format utilities that can quickly repair and reformat RAW or corrupted USB drives:
These tools provide a safe and user-friendly alternative to raw command-line formatting, and can often handle USB drives that Windows refuses to process. 🚀
Also read: 8 usb format tools
chkdsk X: /f
if the drive mounts but shows errors.convert mbr
(or initialize GPT in Disk Management) then recreate the partition.chkdsk X: /f
if the drive mounts but shows errors.convert mbr
(or initialize GPT in Disk Management) then recreate the partition.Summary: Recover first with iCare Recovery Free → rebuild the partition and format via CMD (DiskPart) → if needed, use FAT32 alternatives like Disk Management, PowerShell, Rufus, or SD Card Formatter. → Test and safely eject. ✔️
Last updated on 27/8/2025
Related Articles
Hot Articles