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

Corrupted USB Drive? Recover Your Files First!
Getting errors like "USB not recognized" or "You need to format the disk"? Don't panic yet. This video shows proven ways to recover files from a corrupted USB drive, fix file system errors, and restore access to your important data before it's overwritten. #techtutorial
XanthusTechCore

XanthusTechCore

4 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

A guide titled 'Recover SD Card Files Using Command Prompt' shows a Command Prompt window and a SanDisk SD card. It introduces 7 CMD methods to recover lost photos, videos, or documents from damaged or formatted SD cards.
This image details the first four Command Prompt methods for SD card recovery: Recover, Undelete (Win 95/98), Attrib, and Chkdsk. Each method includes specific CMD commands and steps for execution.
This image continues the list of Command Prompt recovery methods, detailing Diskpart, Xcopy Command, and Windows File Recovery. Each method provides step-by-step instructions for recovering files from an SD card.
Tech Tutorial: Recover SD Card Files Using CMD
Want to recover files from an SD card using Command Prompt? This guide explains how to use CMD tools like CHKDSK to repair file system errors and attrib to unhide missing files. Learn when Command Prompt works, when recovery software is needed, and how to restore photos, videos, and documents safel
XanthusTechCore

XanthusTechCore

2 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

[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

How I Map My Story Using Trello 💻🖊️📝
I started off using Microsoft Word to get my thoughts down on “virtual” paper. I mapped out my beat sheet and started writing summaries for each chapter hitting certain markers within the story. I’m big on organization so I created a personal board on Trello to place my Acts, the chapters in th
Charina Taylor Studio

Charina Taylor Studio

899 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

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

An iPad Pro displays the Notion app logo on its screen, with a hand holding an Apple Pencil. The image highlights how the user stays organized using Notion, a productivity tool for managing tasks and information.
A Notion page shows a 'reading directory' database to track books, including title, author, status, and dates. Below it, a 'tbr/wishlist' database helps manage books to be read, demonstrating Notion's customizable features.
A Notion 'Weekly Planbook' template displays a customizable weekly to-do list with sections for Monday through Saturday. It includes tags for personal, health, assignment, and work tasks, illustrating Notion's organization capabilities.
How i stay organized using Notion 💡
Unlocking productivity with Notion: my ultimate organization tool 💼 From habit trackers to personal goals, Notion streamlines my life in one place. Customizable databases, calendars, and to-do lists keep everything tidy and accessible. Whether I'm planning my day or collaborating with other
asmae🐸

asmae🐸

65 likes

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

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 Drive Read Only? Here's Why It Happens
USB drive stuck in read only mode can be frustrating, especially when you need to save important files. This video shows why it happens and how to fix it fast. #usb #readonly #pctips #windows #repair
SmoothTechie

SmoothTechie

3 likes

Next Semester Prep: How I’m tracking my Internship
Starting my first-ever internship for my Human Behavioral Health program this Spring, and honestly? I’m equal parts excited and nervous! 🙈 To make sure I stay on top of my requirements, I created this Internship Tracker in Excel. What I’m tracking: 💻 Dates & Categories: To keep my tasks or
Avery Blu

Avery Blu

10 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

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

📍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

6 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

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

Recover Deleted Files Using Terminal Commands
Accidentally wiped important files on Windows/macOS/Linux? This video shows how to use terminal and command-line recovery methods to restore deleted data before it gets permanently overwritten. #cmdanks #datarecovery #windows11 #linux #TechTips
XanthusTechCore

XanthusTechCore

5 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 tutorial title slide showing how to recover photos from an SD card for Android, Mac, and Windows, with images of SD cards and floating photos.
Instructions for Windows photo recovery, detailing steps for Windows File Recovery (CMD) and MyRecover software, including command examples.
Instructions for macOS photo recovery, covering methods like checking the Trash Folder, restoring from iCloud Backup, and using Time Machine.
📍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

3 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

A gray cat peeks over a MacBook on a bed, with text overlayed: 'MacOS Hacks they dont tell you about Part 3'.
A MacBook screen displays a gallery view of multiple images in Finder, illustrating the '1. Preview Hack' for switching to gallery view.
A MacBook screen shows a ChatGPT window and a new page, with a note explaining the '2. Copy Paste Hack' for pasting text without formatting.
Mac Tricks Nobody Told You About (Part 3)
By now, you probably know the basics of using your Mac—but Apple still hides a ton of shortcuts that make life easier. From turning QuickView into a full-on gallery mode to reordering your menu bar, these hacks will save you time and clicks every single day. I’ve been testing these out, and h
Ayesha 🍋

Ayesha 🍋

230 likes

2 Ways to Check SD Card Format in Windows 10 or 11
It is simple to check SD card format Windows 10 through File Explorer or Disk Management. A powerful formatting tool is also covered to format and manage SD cards with ease. #check #sd #sdcard #format #windows
techease_zone

techease_zone

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

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

Visit OCMD 150 years in a condo not hotel!
Upgraded large bayside 3 bedroom 2 bath condo with ocean and bay views. See Facebook OCMD Coral Seas Condo Rental for link or to DM for Memorial Day M - F special and Labor Day Week special. We have first week in June too! Everything has been reduced to book We don’t charge extra for special even
ssherman61

ssherman61

1 like

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

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

✨ iPadOS 18 Complete Feature Breakdown + How-To
🎨 1. App Icon Tint Customization Change the color tint of your app icons to match your style or wallpaper — no third-party apps needed! How to use: Open Settings > Home Screen & App Library Tap Tinted icons Choose automatic, dark, light, or your accent color 📝 Pro tip: Match icon tin
SincerelyTee

SincerelyTee

15 likes

🚨Recover Permanently Deleted Files on Windows 10
Deleted files bypassed the Recycle Bin? Don’t panic. This video covers 5 effective ways to recover permanently deleted files on Windows 10 using backups, CMD tools, File History, Windows File Recovery, and professional recovery software before the data gets overwritten. #windows10 #techsupport
XanthusTechCore

XanthusTechCore

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
Information Lab

Information Lab

1 like

⚠️ 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

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

The image introduces how to recover deleted files from a pen drive using CMD, featuring a stylized blue USB drive icon. It states that Windows CMD offers three free methods to bring back lost photos or documents, with a yellow arrow pointing to the text.
This image details Method 1 for recovering hidden files using the attrib command. It outlines four steps: opening CMD, entering the USB drive letter, running the 'attrib -h -r -s /s /d G:\*.*' command, and restoring files hidden by errors or viruses.
This image presents Method 2 for file recovery using Winfr CMD and WinfrGUI. It describes Winfr CMD as a powerful but complex official tool and WinfrGUI as a free, simple graphical alternative for beginners, with a hand icon.
How to Recover Deleted Files from USB Using CMD
Ever lost an important file from your USB drive and felt that sinking panic? 😩 Don’t worry — your data might not be gone forever. In this short video, I’ll walk you through 3 free and easy ways to recover deleted files from a USB drive using CMD: 1. attrib command – bring back files hidden
Information Lab

Information Lab

1 like

Windows 10 Disk Management: Optimize Your Disk
Discover how to easily manage disk partitions using Partition Assistant on Windows 11/10/8/7. Download now and give it a try! #windows #disk #managment #space #partition
SmoothTechie

SmoothTechie

1 like

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

CMD Prompt: Information Commands📜
🌐 Command Prompt Commands Every IT Professional Should Know ✨ Part 3: Network Information ✨ When you’re troubleshooting a network issue, one of the first things you need is information. That’s where these commands come in. 💙 📡 IPCONFIG Quickly displays your IP address and basic network i
ITwDee

ITwDee

14 likes

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

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

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

Windows cannot Format USB? Fix It in Two Ways!
If your Windows cannot format USB, this article will tell you how to solve it in the most efficient ways. #windows #format #usb #drive
techease_zone

techease_zone

2 likes

Solved: Disk Format Did Not Complete Successfully
Seeing the “Format did not complete successfully” error and unable to format your drive? This video walks you through several solutions to fix the problem. #disk #format #complete #windows
techease_zone

techease_zone

0 likes

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

Solved: Can't Format Drive in Disk Management
If you can’t format drive in Disk Management, you can learn how to format drive in other two ways here. #format #drive #disk #management #windows
techease_zone

techease_zone

0 likes

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

How To Make A Seamless Pattern In Photoshop
I'm aware that most people who create digital products use Canva, and I do, too. But I tend to lean more toward Photoshop as I've been using it since I was 15 years old and now I'm 33. (Don't make me do the math. It was too long ago and I might cry. 😭😂) So this is a quick and ea
A Rea of Treasures

A Rea of Treasures

3 likes

Recover Data from Formatted USB Drive!
Formatted your USB drive by mistake? Don’t panic! Discover 4 easy ways to recover your important files for FREE. My Step-by-step data recovery guide for Windows users! #usbrecovery #datarecovery #formatteddrive #techtips #aomeifastrecovery
techview55hub

techview55hub

1 like

See more