Yesterday, I was trying to create a recovery drive for Windows 10 using a USB flash drive.
But, as with the majority of things you try to do in Windows, it resulted in an error.
After the error, I noticed that my USB flash drive went down to 39 GB, which is not its full capacity.
It has 64 GB, therefore, it should have displayed around 59.7 GB of space.
Fortunately, I found a fix for that and I’ll share with you ladies and gentlemen.
Restore USB Drive to Full Capacity in Windows 10
I’ll start by posting the screenshot with all the
cmd commands that you need to type. Use it as a reference for the below steps.
cmd in Administrator mode. The easiest way is to right-click on Start (Windows icon) and select Command Prompt (Administrator).
However you do it, make sure you’re using it in Administrator mode to avoid errors!
cmd should start with a default path that contains
The drive might differ, depending on where you have Windows installed:
diskpart and hit Enter.
The path should be changed from
list disk and hit Enter.
A list with all your disks/drives (internal or external) should appear.
Make sure that the disk you select is the USB drive that you want to restore to full capacity! You can see which one is it by looking at the Size shown there.
select disk # and hit Enter.
select disk 2
2 with the number of your own disk shown in the disk list table from step 3! In my example, it’s Disk 2.
This will wipe the disk! So, make sure you made the correct choice pointed out in the previous step! Having Windows/files backed up would be a good idea, just in case.
clean and hit Enter.
If you get
DiskPart has encountered an error: Access is denied, read the below section, then proceed with step 6.
create partition primary.
Check your USB drive. It should now be restored to full capacity.
Fix the “DiskPart has encountered an error: Access is denied” error
When you type
clean (see step 5), you might get the following error:
DiskPart has encountered an error: Access is denied
This can happen because:
- You’re not using
cmdin Administrator mode, as I mentioned in the first step;
- Or the drive is Read-Only, without Writing permission;
- Or some other weird Windows issue.
For the second problem, type this before you type
attribute disk clear readonly
I added extra
select disk 2 commands because I’m paranoid and I wanted to make super sure it selects Disk 2. 🙂
That’s a Wrap
I hope you found this guide useful and it helped you restore your USB drive to full capacity in Windows 10.
If you have questions or thoughts, please leave a comment or send me a message using the contact page.