Diskpart: How to Format a USB Drive Using CMD

Want to format your USB but get "Windows couldn't complete the format"? You can use Diskpart to do it. If you want an easier, restriction-free solution, try Partition Assistant.

#USB #flashdrive #format #diskpart #cmd

2025/11/10 Edited to

... Read moreHey everyone! I wanted to share a lifesaver tip for when your USB drive just refuses to format. We've all been there, right? You plug in your trusty flash drive, try to format it, and then BAM! 'Windows was unable to complete the format.' Ugh! It's super frustrating, especially when you need to reformat your USB drive to get rid of old files or fix corruption. I learned about Diskpart a while back, and it's become my go-to 'hidden tool inside Windows' for these stubborn situations. It’s a powerful command-line utility that gives you much more control over your disk partitions than the standard Windows Disk Management. Here’s how I use it to fix un-formattable USBs and get them working perfectly again. My Step-by-Step Diskpart Fix for Stubborn USBs: Open Command Prompt as Administrator: Search 'CMD', right-click, 'Run as administrator'. Launch Diskpart: Type diskpart and press Enter. List Disks: Type list disk and hit Enter. Careful here! Identify your USB by size (e.g., 16GB USB might be 'Disk 1'). Selecting the wrong disk means data loss! Select Your USB: Type select disk [your disk number] (e.g., select disk 1). Clean the Drive: Type clean and hit Enter. This erases all data and partitioning. It's often the fix for formatting and write protection issues, especially if you saw 'Windows failed to format the drive'. Create Primary Partition: Type create partition primary and press Enter. Select the Partition: Type select partition 1 and press Enter. Activate (Optional, for bootable drives): If creating a usb bootable cmd drive, type active and press Enter to mark it active. Format the Drive: General use: format fs=ntfs quick For compatibility (e.g., older devices, 64GB USB to FAT32): Type format fs=fat32 quick and press Enter. This is key for specific needs like formatting a 64gb usb to fat32. Assign a Drive Letter: Type assign and press Enter. Exit Diskpart: Type exit and press Enter twice. Voila! Your USB drive should now be formatted and accessible. I've used this method countless times to bring seemingly dead flash drives back to life. It truly is a lifesaver when the standard Windows formatting just won't cut it. Sometimes, when Diskpart itself seems to struggle or if you prefer a graphical interface for more advanced partitioning, I've found tools like Partition Assistant (as mentioned in the original post!) to be super helpful too. They offer a more user-friendly way to handle complex situations or when you need to format to file systems not easily handled by Windows' native tools.

Related posts

⚠️ Ran DiskPart Clean Files by Mistake? Recove Now
Accidentally used the DiskPart “clean” command and lost all your partitions? Don’t panic—your data may still be recoverable. This guide explains how to recover files using Windows File Recovery (Winfr) and advanced tools. #windowstips #diskpart #datarecovery #windows11 #TechTips
XanthusTechCore

XanthusTechCore

0 likes

format bootable usb drive
Learn how to format bootable USB drive with CMD, Disk Management. By the way, I’ll also show you how to recover data from formatted or crashed USB if you run into trouble. #tipsandtrick #USB #techno #pcostips
Moon Bureau

Moon Bureau

1 like

How to Fix a RAW USB Drive on Windows 11, 10, 8, 7
If your USB drive or external hard drive shows up as RAW, you might be wondering why it happens and how to repair it. Watch this video to learn more details about it. Partition Assistant can help you repair it quickly. #raw #usb #flashdrive #repairing #windows
TechEase

TechEase

2 likes

A close-up of a notebook with handwritten notes highlighted in blue, featuring the overlay text 'How to Study At 2x speed'. A light blue highlighter rests on the page, emphasizing the study theme.
A hand holding a green pen over a spiral notebook filled with handwritten notes. Overlay text highlights 'Use study techniques' and explains methods like Pomodoro and 'Eat the Frog' for smarter studying.
Multiple open spiral notebooks with handwritten notes are visible, with overlay text stating 'Test your knowledge'. The text suggests using flashcards, the Feynman technique, and practicing PYG's, along with teaching material to oneself.
How to study faster 🤓
We have all been there. And it’s understandable for us to be so tired is studying so much material. I’m here to give you great tips on how to study at 2x speed. 1. Use study techniques 2. Test your knowledge 3. Plan your day 4. Take breaks What are some things you do to ,are your study ti
essynotes

essynotes

1118 likes

Recover Hidden Files from USB Using Command Prompt
Can’t see your files on a USB stick even though they’re there? This video shows how to use Command Prompt commands (like attrib) to unhide files hidden by system attributes or viruses — plus what to try if that doesn’t work. #USB #cmdanks #windows 11 #techtutorial #newonlemon8
XanthusTechCore

XanthusTechCore

2 likes

[Solved] USB Drive Keeps Asking to Be Formatted
Is your USB flash drive asking to be formatted and you can’t access your files? Here are several effective methods to fix it and regain access. #usb #format #repair
SmoothTechie

SmoothTechie

0 likes

What is a GPT Disk? Convert Without Data Loss
What is a GPT disk and when do you need it? Discover a simple method to convert your disk without losing any data. #gpt #mbr #disk #conversion #pctips
SmoothTechie

SmoothTechie

1 like

📍USB Write Protected? Fix It Instantly
Seeing “The disk is write-protected” error on your USB drive? This quick guide shows how to remove write protection and regain full access to your files. Learn how to check the physical lock switch, use DiskPart commands, repair file system errors, and fix registry issues step by step. Many cases a
XanthusTechCore

XanthusTechCore

5 likes

Data Recovery from RAW USB or Hard Drive
If your USB or hard drive suddenly shows RAW, don't format it. With AOMEI FastRecovery, you can scan the RAW device and restore your files in a few simple steps. Simple, fast, and beginner-friendly. #recovery #data #raw #harddrive
TechEase

TechEase

4 likes

Why Can't I Format My USB to FAT32?
Trying to format your USB to FAT32 but the option just won't show up? You're not alone. There's a simple way to fix it. Check my bio for a quick way to unlock the full option. #fat32 #format #pctips #usb #windows
SmoothTechie

SmoothTechie

0 likes

Remove Write Protection from Your USB/Pen Drive
Is your USB drive suddenly showing "Write Protected" and stopping you from copying, deleting, or editing files? Don't worry! This video walks you through several quick and effective methods to remove write protection from any USB flash drive. #usb #protection #remove #format
SmoothTechie

SmoothTechie

3 likes

USB "Current Read-Only State: Yes"? 4 Quick Fixes!
Is your USB showing "Current Read-Only State: Yes" on Windows? That means your drive is write-protected and you can't copy, delete, or edit files. In this quick guide, learn 4 effective ways to remove the read-only state and make your USB writable again. #usb #fix #readonly #writ
SmoothTechie

SmoothTechie

1 like

A student's desk with a laptop displaying a probability assignment, a spiral notebook with handwritten notes, and two energy drink cans. The image is titled 'HOW I TAKE NOTES IN COLLEGE'.
A blank page of a spiral notebook with 'Section # here' written in red at the top, illustrating the first step of note-taking.
A spiral notebook page showing 'Section # here' and the second step of note-taking, which involves writing and highlighting terms and their definitions.
How 4.0 Students Take Notes 📝❤️
Steal my notes! 🫧💋🪩 This is the technique I use to take my notes in classes. I just perfected my format and find this to be the most functional. I take these notes in class and it isn’t time consuming or hard! I find this method to work best for me because the terms and examples stick out th
lizzie matthias

lizzie matthias

3092 likes

5 Ways to Repair a USB Drive Without Formatting
Can't open your USB drive and Windows wants to format it? Discover 5 reliable solutions to repair your drive and recover your files safely. #repair #usb #format #solution
SmoothTechie

SmoothTechie

2 likes

How to Initialize a Disk Using Diskpart?
Is your disk uninitialized? Don’t worry! You can easily initialize it using Diskpart. But if you want to skip the command lines and take a faster approach, Partition Assistant is a good option. #disk #initializeharddrive #solution #method #PC
SmoothTechie

SmoothTechie

0 likes

This image shows a guide titled 'Fixed: Lenovo Recovery USB Not Working'. It features a screenshot of the Lenovo USB Recovery Creator tool, with a red 'no' symbol overlaid on the 'Flash USB Device' section, indicating a problem or warning during the USB creation process.
This image outlines 'Way 1. Check USB Recovery Key Properly', detailing steps to download and use the Lenovo Recovery USB Creator. It displays a screenshot of the tool's welcome screen, highlighting the 'Start' button and mentioning the requirement for a USB key with at least 16GB capacity.
This image presents 'Way 2. Create a 32GB FAT32 Partition on a Larger Drive', providing step-by-step `diskpart` commands. A command prompt screenshot illustrates the execution of commands like `list disk`, `select disk`, `clean`, `create partition primary`, and `format` for disk management.
Lenovo Recovery USB Not Working? How to Fix It
My Lenovo recovery USB not working at all. Tried different ports, still failed. I finally fixed it by rebuilding the recovery media. I also used an alternative to create a bootable USB easily. #Lenovo #RecoveryUSB #BootProblem #AOMEIBackupper #PCFix
RealUserTech

RealUserTech

0 likes

Looking to format a drive to exFAT using DiskPart? This step-by-step guide will teach you how to use Windows’ built-in command-line tool to prepare your drive for large files and cross-platform use. #DiskPart #FormatexFAT #Windows10 #Windows11 #USBFormat #CommandPrompt #DiskManageme
tech hu

tech hu

0 likes

Learn how to format a disk in Windows using File Explorer, Disk Management, and Command Prompt. This guide covers selecting the correct file system (NTFS, FAT32, exFAT) and ensuring no data loss risks. #FormatDisk #DiskManagement #WindowsTutorial #HardDriveFormat #USBFormat #CMD #Wind
techsheldon

techsheldon

1 like

How to Fix “Invalid Dynamic Disk” in Windows
Is your dynamic disk showing as invalid? Don’t worry! Watch this video to fix it quickly and easily. With Partition Assistant, you can resolve a variety of disk issues and get your drive back to normal in no time. #dynamic #disk #invalid #fix #windows
SmoothTechie

SmoothTechie

1 like

Cannot format USB drive write protected?
Why can’t format drive in Disk Management? Don’t worry, in this post, you’ll learn how to format drive in other ways. #format #USB #disk #management #windows
tech_buggie

tech_buggie

0 likes

📍Deleted Photos from SD Card? Recover Them Easily.
Accidentally deleted pictures from your SD card? The files may still exist until new data overwrites them. This video shows how to recover deleted photos using Windows recovery tools or photo recovery software that scans memory cards, helps you retrieve deleted images safely—restoring from a smartp
XanthusTechCore

XanthusTechCore

2 likes

Sell Using Your Content
Remember, the right content can turn followers into customers. Focus on these tips, and you’ll start seeing the results! 💡 #ContentStrategy #SocialMediaSelling #MakeMoneyOnline #InstagramMarketing #DigitalMarketingTips
Anne

Anne

17 likes

🎮Switch “Unable to Access microSD Card”? Fix It
Getting the “Unable to access microSD card” error on your Nintendo Switch? This issue is often caused by compatibility problems, file system corruption, improper insertion, or physical damage. Learn how to fix it step by step—by reinserting the card, checking the lock switch, updating your device,
XanthusTechCore

XanthusTechCore

3 likes

External Hard Drive Asking to Format? Fix it Now!
What if external hard drive asking to format? It may be caused by various reasons. This video will show you how to fix it in two easy and effective ways. #external #harddrive #format #windows
techease_zone

techease_zone

0 likes

How to PRE-READ a syllabus
Before you finalize your next semester schedule, here’s a game-changing move: The actual syllabus tells you everything you need to know before you commit! 🤍🎧 • Check exam dates (don’t accidentally book back-to-back nightmare weeks) • Look at grading policy (is the final exam worth 60%?) • Sca
Tyra-Lee 🩺

Tyra-Lee 🩺

146 likes

How to Fix Format Hard Drive Gets Stuck in Windows
This video presents two simple and effective methods to resolve the “format FS=NTFS stuck at 0%” issue in Windows 11, 10, 8, or 7. #format #disk #stuck #windows
techease_zone

techease_zone

2 likes

Fix My External Hard Drive Needs to Be Formatted
It is annoying to find “my external hard drive needs to be formatted”. In this video, we’ll tell you how to solve this problem easily and quickly. #external #harddrive #format #windows
tech_buggie

tech_buggie

1 like

My External Hard Drive Says It Needs to Be format
If you receive the “my external hard drive keeps saying it needs to be formatted” message, don’t worry, you can watch this video to learn two easy fixes. #external #externalharddrive #harddrive #format #windows
Techcrafter

Techcrafter

1 like

Repair Your Hard Drive with CMD
Hard drive not working or showing errors? Use CMD commands like CHKDSK, SFC, BOOTREC to repair it. Or try a simpler method to repair it safely! #cmd #repair #harddrive #windows #pctips
TechEase

TechEase

1 like

How to Use CMD Command to Wipe Hard Drive
Here is how I CMD command to wipe hard drive. It’s simple and free to use, which helps to erase all data with ease, and there is also an GUI alternative for data wipe with one click! #RecyclePC #HardDriveWipe #AOMEIBackupper #TechTips #WipeData
Iris8010

Iris8010

0 likes

How to enjoy studying while in college! 📓🎒🫧
Studying is actually fun and enjoyable, if you allow yourself to enjoy it! These are few tips I do to encourage myself to study! Do you have any tips or hacks to enjoy studying? I feel like most of these tips will work well for you, and if not maybe other people. Let me know if you have some tips!
Nada

Nada

67 likes

How to Fix A RAW Drive in Windows 11/10/8/7?
If you find your hard drive becomes RAW, here you can learn how to fix RAW drive effectively in Windows 11, 10, 8, 7. #fix #raw #hdd #windows #repair
SmoothTechie

SmoothTechie

1 like

A million things to VLOG about!
“What do I even vlog about?” 📹 Hey you guys!! I started YouTube a little over a year ago and have enjoyed every aspect of it since. I post lifestyle, beauty, travel, and so much more so I wanted to share a some things you could vlog about too! - on second slide is a ton of ideas!! Drop yo
Abigail Wilson

Abigail Wilson

591 likes

How to Undo Hard Drive Format & Recover Lost Data
Formatted your hard drive and lost everything? It’s not too late! This video explains how to undo hard drive format and restore your important files using AOMEI FastRecovery. 📢Get your giveaway license code: code.aomeitech.com. 💥Use discount code Special30OFF for extra savings!  #format #rec
RedFFTech

RedFFTech

0 likes

5 Worst Study Mistakes
I’m sure you are making these 5 study mistakes that go unnoticed! Here they are: 1. Not having a study plan 2. Using passive recall 3. Not reading the syllabus!! 4. “All nighters” 5. Studying with distractions If you are studying with these^, there’s many ways to fix this! And it’s not h
essynotes

essynotes

727 likes

How to Wipe A USB Drive in Windows 10 or 11
If you need to wipe a USB flash drive, this video will show you how to wipe a USB drive Windows 10 or 11 in two easy and effective ways. #wipe #usb #drive #windows
techease_zone

techease_zone

1 like

Fixed: Check Disk Access Denied in CMD on Windows
This video shows how to solve “check disk access denied” issue while you run CHKDSK in CMD. Two effective methods are covered. #check #disk #access #denied #cmd
tech_buggie

tech_buggie

0 likes

AI software: Read papers faster ⚡️
[Save this to your useful tools folder] AI has been a game-changer for reading papers faster. Here are two tools that work well together to help you read papers faster and find the answers to the questions you’re looking for. Unriddle.ai allows you to upload papers and ask the AI to explain c
Reeda ✨

Reeda ✨

592 likes

256GB to 2TB MacBook Upgrade
GOFIX

GOFIX

1 like

Can't format to Ext4 on Windows? Try this!
Windows can't read or format Ext4 natively. But no worries! With Partition Assistant, you can easily format your drive to Ext4 on Windows. #format #ext4 #windows #disk
SmoothTechie

SmoothTechie

0 likes

SD Card Is Write-Protected? Try These 5 Fixes
Can't copy, delete, or format your SD card? Don't worry. Here are 5 proven solutions to help you remove write protection and get your SD card working again. #sd #protection #fix
SmoothTechie

SmoothTechie

0 likes

Easily Fixed: DiskPart Format Stuck at 0 Percent
Encountering DiskPart format stuck at 0 percent issue? Don’t worry, this video outlines two effective solutions to format the target disk with ease. #diskpart #format #stuck #windows
tech_buggie

tech_buggie

1 like

CMD: Delete Windows Temporary Files
Temporary files and junk can slow down your PC. In this video, learn how to safely use CMD to remove these files and quickly free up disk space. #delete #remove #temporary #cmd #pcclean
SmoothTechie

SmoothTechie

4 likes

How to Recover Lost or Deleted Hard Disk Partition
Deleted your disk partition by mistake? No worries! Discover two ways to recover a lost hard disk partition. Act quickly to avoid overwriting your data. #recovery #partition #lost #delete #disk
TechEase

TechEase

0 likes

800GB Lost with Gemini 3? Back Up Your Hard Drive!
Gemini 3 is barely online, and users are already seeing disasters: one AI command can delete 800GB in seconds. Recursive scripts, dangerous delete commands, or even full formatting can erase your entire drive with a single click. If you work with AI code or manage large datasets, this could happ
TechEase

TechEase

2 likes

An iPad displaying a Miffy wallpaper and the text 'apps you need to study!' sits on a keyboard case next to an iced coffee in a cafe setting.
The Zotero app icon is shown with text highlighting its features: organizing and formatting citations, supporting many formats, automatically collecting and organizing research, and speeding up paper research.
The Evernote app icon is displayed with text detailing its capabilities: automatically syncing to all devices, managing tasks, tackling different projects, and capturing and arranging ideas.
Must have apps this back to school season!📚
When it comes to studying, using zotero and evernote together can make a huge difference in how organized and efficient you are. Zotero is an excellent tool for gathering, organizing, and citing your research materials. it helps you keep track of all your sources, from books to articles and websi
asmae🐸

asmae🐸

27 likes

Seeing “Current Read-Only State: Yes” when checking your drive in DiskPart means your USB, SD card, or external disk is write-protected. You won’t be able to modify, delete, or format files until you remove that protection #DiskPart #ReadOnlyState #RemoveWriteProtection #USBNotWritable
tech hu

tech hu

1 like

Minecraft New update #minecraft #minecraftcreative #highlight
GTA6.FreeGames

GTA6.FreeGames

1 like

The image shows a title 'I Almost Lost My Files!' and an example CMD command for file recovery. It introduces the topic of recovering deleted files from an external hard drive using CMD, encouraging users to swipe for steps.
This image outlines three CMD steps to recover deleted files: Winfr for recovery, Attrib to show hidden files, and CHKDSK to fix errors. It also suggests WinfrGUI as an alternative if CMD fails for recent deletions.
The image highlights CMD's limitations for file recovery, such as not restoring overwritten files and being tricky for beginners. It presents WinfrGUI as an easy, fast, and beginner-friendly alternative with no command line needed.
Recovered Deleted Files from External Hard Drive
In this video, I’m sharing exactly how I managed to get them back: 1. Using Winfr to recover different file types 2. Running attrib to reveal hidden files 3. Using CHKDSK to fix drive errors and restore missing data 4. And my backup plan — WinfrGUI (much easier if you’re not a fan of comm
TechFlowLab

TechFlowLab

1 like

Best terms to know for CNAs
Some hand written terms and conditions that are commonly seen in assisted living and skilled nursing facilities!!!🩺👩‍⚕️💗 #cna #cnalife #nursingstudent #nursing #nursingschool #medicalstudent
autumnpupo

autumnpupo

689 likes

How to Check the Format of an SD Card in Windows
How to check the format of an SD card? You can make it within Windows Explorer or Disk Management. If you want to change or reformat the SD card, try Partition Assistant to get it done. #check #format #sd #sdcard #windows
tech_buggie

tech_buggie

0 likes

How i edit photos using Canva 🎨
Editing with Canva is a game-changer for me. 🎨 From enhancing photos to creating stunning graphics, Canva's intuitive platform simplifies every step. With a plethora of filters, adjustments, and effects, I fine-tune images effortlessly. Plus, precise cropping and resizing tools ensure perfe
asmae🐸

asmae🐸

39 likes

A desk setup with a tablet, keyboard, a notebook with handwritten Sociology notes, a pen case, and a coffee cup, illustrating note-taking tips.
A hand writing in a notebook with a pen, showing Sociology notes, emphasizing writing in one's own words for better retention.
A hand holding three pens/highlighters over a notebook with notes, suggesting using a maximum of 2-3 colors for note-taking.
Notes That Work for Me-Not Just For the Aesthetic
These aren’t Pinterest-perfect tips, sit real things that i do that make a difference in how I understand + remember what im studying! I love my note-taking, and I’ve learned how to use it for my advantage in a big day. I’m sure you can do the same! These are tips I’ve used over the years,
essynotes

essynotes

526 likes

See more