Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Access is denied. Trying to format a flash drive (in cmd)

10 Dec 2016   #1
laufing

Windows 7 Ultimate x64
 
 
Access is denied. Trying to format a flash drive (in cmd)

Hello everyone!

I've been trying to format a 32GB flash drive. I'm using DiskPart to format it, but still have no success. I've been trying and trying, but I always encounter the same error. "DiskPart has encountered an error: Access is denied. See the System Event Log for more information". I tried different commands to format it, but I still arrive at the same error. I am the admin, so I don't think that's the problem.

LIST DISK
SELECT DISK 1
CLEAN ALL
CONVERT MBR
CREATE PARTITION PRIMARY
SELECT PARTITION 1
ACTIVE
FORMAT FS=NTFS QUICK
(I did try FAT and FAT32, none of those worked)

Help me please!
Thank you and have a nice day!


My System SpecsSystem Spec
.
11 Dec 2016   #2
ICIT2LOL

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

Hello and welcome laufing mat why are you using DISKPART to format the drive?

It would just as simple to go to Computer click on the drive and format it there unless you are trying to specifically clean all that drive. My suggestion would be to use this Best Free Partition Manager for Windows | MiniTool Partition Free > run the program and use the wipe function see pic

Oh and the program is a very useful tool for lots of things such as anything to do with partitioning wiping testing etc etc


Attached Thumbnails
Access is denied. Trying to format a flash drive (in cmd)-mini-tool-wipe.png  
My System SpecsSystem Spec
11 Dec 2016   #3
snickerz124

Windows 7 Ultimate 32bit
 
 

Maybe it's write protected? You can get rid of this by:

1. Open up your start menu and click "Run"
2. Type "regedit" into the box.
3. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
4. Now double click the "WriteProtect" key and change the value to 0.

Hope this helped you.
My System SpecsSystem Spec
.

11 Dec 2016   #4
laufing

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by snickerz124 View Post
Maybe it's write protected? You can get rid of this by:

1. Open up your start menu and click "Run"
2. Type "regedit" into the box.
3. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
4. Now double click the "WriteProtect" key and change the value to 0.

Hope this helped you.
Thank you so much for your time!

I tried this, but is it odd that my computer doesn't have that? I checked, but after I got to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control there was no StorageDevicePolicies.


Attached Thumbnails
Access is denied. Trying to format a flash drive (in cmd)-sssda.png  
My System SpecsSystem Spec
11 Dec 2016   #5
ICIT2LOL

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

Hmm that is odd neither do I and I am running Pro and I would have thought that Ultimate would have had the policies setting.

Now did you try the Partition Wizard method of wiping that drive or formatting it because it is so simple. In fact if formatting is all you want to do is to do it through Windows > Computer > right click on the drive > choose Format ?? If it is write protected then it will balk at you doing that. Now some sticks come with the makers own software on it and it can be a nuisance when trying to clean or format the drive - I always get rid of that stuff through a wipe.
My System SpecsSystem Spec
11 Dec 2016   #6
laufing

Windows 7 Ultimate x64
 
 

I'm currently trying your suggested software. I'm at 19%, I'll update you on what happened after it's done.

Thank you for your time!
My System SpecsSystem Spec
13 Dec 2016   #7
snickerz124

Windows 7 Ultimate 32bit
 
 

Quote   Quote: Originally Posted by laufing View Post
I'm currently trying your suggested software. I'm at 19%, I'll update you on what happened after it's done.

Thank you for your time!
It's been two days. Did you get the software? If you did, did it work for you?
My System SpecsSystem Spec
13 Dec 2016   #8
ICIT2LOL

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

Hello laufing mate as snickers has asked have you run that software yet because it should only take a half hour to run the wipe or did you try the other method I linked.
My System SpecsSystem Spec
17 Dec 2016   #9
laufing

Windows 7 Ultimate x64
 
 

Sorry i had exams this week, I was able to try the software and finished wiping. After that I really don't what to do, so what I did was create a new partition and formatted it, then after formatting it says unformatted? Am I doing something wrong?

I forgot to mention that windows doesn't allow me to format that way. Right click on drive > Format. It says "Windows was unable to complete the format". That is why I use cmd. My other flash drive was unable to format that way and I used cmd then it was K.

Thank you so much
My System SpecsSystem Spec
17 Dec 2016   #10
ICIT2LOL

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

Ok mate now use that software I linked Partition Wizard and do as in the pic


Attached Thumbnails
Access is denied. Trying to format a flash drive (in cmd)-wipe-2.png  
My System SpecsSystem Spec
Reply

 Access is denied. Trying to format a flash drive (in cmd)




Thread Tools




Similar help and support threads
Thread Forum
Access denied on dvd drive
Just started - upon clicking dvd drive, message says "may not have permission." I can right click and open and play the movie, so drive is operable. I went into registry and followed directions to delete lower filter. - no change. I checked permissions and that is OK as well. I also...
Hardware & Devices
Cannot format usb flash drive
I have migrated from XP to Win 7 Ultimate recently. I am unable to format 1GB Simple tech USB Flash drive. The formatting process starts as usual, towards the end “Windows cannot format usb flash drive " and everything stops. Under Properties>general no file system is displayed. I download...
Hardware & Devices
flash drive don't format
help me!!! my cooldisk was formatted and worked earlier but now it dosn't work and dosn't format what can i do ? it's name is ts16gjfv30 brand:transcend . when i try to open this this message appear :the volume doesn't contain a recognized file system
Hardware & Devices
Denied Access to D:\ drive
Seems i ****** up my permission settings pretty badly thistime. cmd is run as admin, and uac is off. C:\>whoami troll\hákon C:\>net user Hákon User name Hákon Full Name Hákon Comment
General Discussion
Access Denied To C: Drive
Hello, I was messing around trying to share my local disk on my home network and in an attempt to give everyone access I deleted some Users from the Groups or User Names box and added "Everyone" with full permissions. Now when I click on the c: drive I get a message saying "Access Denied" Has...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 03:17.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App