OldPCGuy
Posts: 82
Joined: Mon Jan 02, 2017 4:53 pm
Location: Detroit Michigan

Win32 Disk Imager 1.0 Error 5:

Sun Jun 10, 2018 10:39 pm

I'm trying to image/clone my SD card to my Win10 PC hard drive for backup.

I get this error;

"An error occurred when attempting to get a handle on the file. Error 5: Access is denied."

I'm running it as admin on a Win10 PC. I've never had issue going the other way using SDFormat and Win32 Disk Image to create an SD card.

Is there a better way to make image/clone copy backups?

User avatar
DougieLawson
Posts: 35589
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Win32 Disk Imager 1.0 Error 5:

Mon Jun 11, 2018 9:38 am

Use the piclone program that's built in to Raspbian. You get a better copy that way that isn't dependent on the size of your SDCard.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

OldPCGuy
Posts: 82
Joined: Mon Jan 02, 2017 4:53 pm
Location: Detroit Michigan

Re: Win32 Disk Imager 1.0 Error 5:

Mon Jun 11, 2018 3:40 pm

I initially looked at using the Pi utility. The way the Pi shows my card reader and devices made me nervous. It appeared to list each partition separate, microSD /boot and a separate device for microSD/system or something like that. It did the same thing for the target card because it is already loaded with the Raspbian Switch OS

Pi/Linux file systems confuse me a bit.

Is there an easy tutorial for the Pi clone utility?

User avatar
DougieLawson
Posts: 35589
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Win32 Disk Imager 1.0 Error 5:

Mon Jun 11, 2018 3:42 pm

The piclone utility takes the current active system and copies it to an SDCard in a USB reader. No instructions or tutorial needed. Just fire it up and forget it until cooked.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

OldPCGuy
Posts: 82
Joined: Mon Jan 02, 2017 4:53 pm
Location: Detroit Michigan

Re: Win32 Disk Imager 1.0 Error 5:

Tue Jun 12, 2018 1:18 am

Ah! struggling. Tried a card already loaded with Stretch hoping it would simple overwrite; nope. Formatted with SDFormat, now I get can't create file system.

edit: Got it!

with SDFormat I skipped Quick erase went to Full (Erase) that didn't work. I had to format FULL (Overwrite) and the SD cloned fine after that.

I just wish SD copier (piclone) had a pre-format overwrite option built-in.

Old dog learning new tricks! :mrgreen:

User avatar
rpdom
Posts: 14766
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Win32 Disk Imager 1.0 Error 5:

Tue Jun 12, 2018 5:10 am

The SD copier shouldn't need the new card to be pre-formatted as it reformats the card when it runs.

Having said that, I wonder if there is a bug that prevents it formatting if the card is already formatted in a certain way? I have no way to test this at the moment.

Rinco van der Baan
Posts: 1
Joined: Thu Jun 21, 2018 8:10 am

Re: Win32 Disk Imager 1.0 Error 5 + Windows 10 1709 [SOLVED: switch off Defender]

Thu Jun 21, 2018 8:45 am

Windows 10 Pro
Version 1709
OS Build 16299.492
Win32 Disk Imager - 1.0

I got the "Error 5 access denied error" when trying to write an image to
the (empty) SD-card.
I tried almost every solution I could find with Google but the error stayed.
I even tried "etcher", which also gave a similar error.

In the past this always worked without problem. So I suspected, that some
Windows 10 update caused the problem.

Finally (after 4 hours of stress) I tried the unlikely possiblity of
disabling the (standard Windows) virusscanner:

- Windows Defender Security Centre
- Virus & threat protection setting
- Real-time protection: switch to Off

After this writing the image worked without a problem!

hela
Posts: 3
Joined: Fri Mar 09, 2018 10:24 am

Re: Win32 Disk Imager 1.0 Error 5:

Mon Sep 24, 2018 7:54 am

Similar situation here - after switching off the real time protection off Avast / Avira it works.

Return to “Troubleshooting”