USB Drive Not Working? Fix it Using Commands! (Step-by-Step 2026)

Опубликовано: 22 Май 2026
на канале: Rico’s Best Pick
57
like

Is your USB drive not working or showing "Access Denied"? In this tutorial, I show you how to fix it using CMD and DiskPart commands to force a format even when Windows fails.

We’ve all been there: you plug in your drive, but it’s unreadable. Whether you’re using different types of flash drives, connecting through USB hubs, or even trying to access files via an adapter, sometimes the system just locks you out. In this video, we go beyond simple chargers and cables to perform a deep fix cmd (Command Prompt) reset.

This method clears readonly attributes and repairs corrupted partitions so you can get back to saving your pictures and files.
If this helped you save your drive, please Like and Subscribe for more tech fixes!

⚠️ IMPORTANT SAFETY DISCLAIMER
PLEASE READ: The commands used in this video (DiskPart and Clean) will permanently erase all data on the selected drive. Please ensure you select the correct Disk Number (check the size carefully!) before proceeding. I am not responsible for any data loss or hardware damage resulting from the misuse of these commands. Always back up your important files!

🛠️ Troubleshooting: How to Fix "Access is Denied" in DiskPart
If you reached the clean step and received the error "DiskPart has encountered an error: Access is denied," don't worry! This usually happens due to a software lock.
Follow these steps to bypass it:
✅Run as Admin: Ensure your Command Prompt was opened by right-clicking and selecting "Run as Administrator."
✅Clear Attributes: Before typing clean, run this command:
attributes disk clear readonly
This removes the hardware/software write-protection that is blocking the format.
✅Check Hardware: Ensure your USB adapter or drive doesn't have a physical "Lock" switch on the side.
✅Close Background Apps: Sometimes a USB hub or another program is trying to read the files while you are cleaning it. Close File Explorer and try again!
✅Note: If you're using a USB hub or a microSD adapter, try plugging the drive directly into the computer's port to avoid power issues that cause this error.

The Steps: The commands we used:
diskpart
list disk
select disk X
attributes disk clear readonly
clean
create partition primary
format fs=fat32 quick
assign
.
.
.
#USBfix #DiskPart #WindowsTips #TechTutorial #FixCMD #FlashDrive #2026Tech