balena-io / etcher

Flash OS images to SD cards & USB drives, safely and easily.
https://etcher.io/
Apache License 2.0
29.94k stars 2.11k forks source link

Keep getting flash failed when trying to a flash file on to a sd card #3399

Open d0llarbills opened 3 years ago

d0llarbills commented 3 years ago

I am trying to flash a file on to my sd card but keep getting the flash failed message. can someone help?

I have bought a new sd card reader and sd card but that has not worked. Desktop Screenshot 2021 01 04 - 16 23 30 69

appreciate all help in advance thanks :)

thundron commented 3 years ago

Please fill in the information in the template, there are some steps to help you gather more information on the issue to provide some context

mrocach commented 3 years ago

Hi. I have the same problem. The first time I could flash a sd card. After the third time, and the next times , didn't work. Even with the one sd card I had worked it before. I tried with SanDiskUltra HCI 10 (32GB y 64GB) and Kingston SDC 10 (32 y 64GB).

I would appreciate any help you could provide. Thanks.

sergiomoraes commented 3 years ago

I suggest you try running the Etcher as Administrator. I was having the same issue but that solved my problem.

On previous versions, Etcher would throw a warning before starting the flashing process saying that it couldn't proceed without Admin permissions, but that is not happening on the latest version for some reason.

nocom commented 3 years ago
            Im sorry, I thought I had posted that everything was ok after updating Etcher to the actual version. GreetingsAm 23.01.21 um 19:34 schrieb Sergio Moraes

                Von: "Sergio Moraes" <notifications@github.com>Datum: 23. Januar 2021An: "balena-io/etcher" <etcher@noreply.github.com>Cc: "nocom" <ebussmann@web.de>,"Comment" <comment@noreply.github.com>Betreff: Re: [balena-io/etcher] Keep getting flash failed when trying to a flash file on to a sd card (#3399)

I suggest you try running the Etcher as Administrator. I was having the same issue but that solved my problem. On previous versions, Etcher would throw a warning before starting the flashing process saying that it couldn't proceed without Admin permissions, but that is not happening on the latest version for some reason.

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/balena-io/etcher/issues/3399#issuecomment-766157709", "url": "https://github.com/balena-io/etcher/issues/3399#issuecomment-766157709", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Ahmad1z1 commented 3 years ago

I keep getting the exact error, using version 1.5.116, It doesn't pass the validation step. the drive seems to work fine on windows but my 905x, 2gb box does not recognize it. Keeps telling me its corrupted. I’ve tried to run Etcher in admin but that still keeps giving Flash failed.

image

maxmar391 commented 3 years ago

same here

apetridis commented 3 years ago

Same problem here, it goes to 100% of Validating and then fails. But if I skip validating, no warnings or errors are displayed. I guess it's etcher's problem validating some SD cards.

fearixarmada commented 3 years ago

Hi, I had this problem and it was being caused because controlled folder access was switched on in Microsoft Defender and I wasn't getting the notifications because Focus Assist was also on - Note. I download to my Desktop and had added this to my controlled access but I'm sure the download folder is on by default, hope that helps

LiNuBeLM commented 3 years ago

Still the same problem

thundron commented 3 years ago

does @fearixarmada 's solution help by chance? re: whitelisting etcher in controlled folder access options

nhphuong91 commented 3 years ago

image Press Ctrl+Shift+I and look for log in Console tab. Mine shows that it's just an Error: Unmount failed so I can safely ignore it. It's just quite annoying to see something FAIL :))

thundron commented 3 years ago

true @nhphuong91 , in fact it's interesting that there's no error modal accessible as it should provide the error message you see in the console, so something isn't right for sure there

nhphuong91 commented 3 years ago

@thundron Just accidentally found something which might be the cause of Error: Unmount failed issue. I use a USB port hub on my monitor (Asus PA279CV). It has 2 modes: USB2.0 & USB3.1. If I flash my SD card in USB2.0 mode, it's success. However, If I switch to USB3.1 mode, the flashing process end with Error: Unmount failed log. Using the USB3.1 port directly on notebook yield the same issue. => could be some incompatibility with USB3.1 specs, which prevent the ejection at the last step

thundron commented 3 years ago

interesting, so it would hint to differences between unmounting different USBx specs?

ccondrup commented 2 years ago

I encountered this problem after I enabled Windows' Ransomware protection. The way I got Balena to work was to let it fail, then open Windows Protection History (Win+R explorer windowsdefender://History) and choose action "Allow on device" for the most recent item, a "Protected memory access blocked" instance. Try etching again. Hope it helps others.

lurch commented 2 years ago

I use a USB port hub on my monitor (Asus PA279CV). It has 2 modes: USB2.0 & USB3.1. If I flash my SD card in USB2.0 mode, it's success. However, If I switch to USB3.1 mode, the flashing process end with Error: Unmount failed log.

Curious, USB is supposed to be forwards- and backwards-compatible in both directions. Perhaps your SD reader is actually USB3-capable, and uses UASP when it's connected via USB3, but not when via USB2? (and that's causing the USB storage drivers in Windows to behave differently?)

Andrewn2 commented 2 years ago

Hi, I had this problem and it was being caused because controlled folder access was switched on in Microsoft Defender and I wasn't getting the notifications because Focus Assist was also on - Note. I download to my Desktop and had added this to my controlled access but I'm sure the download folder is on by default, hope that helps

THIS WAS MY SOLUTION!!

hbsbh81 commented 2 years ago

I encountered this problem after I enabled Windows' Ransomware protection. The way I got Balena to work was to let it fail, then open Windows Protection History (Win+R explorer windowsdefender://History) and choose action "Allow on device" for the most recent item, a "Protected memory access blocked" instance. Try etching again. Hope it helps others.

THIS!

azhikin commented 2 years ago

I had this problem trying to flash used cards for PiAware when trying to update to 7.2. I had to remove the partitions on the SD card (Win 10 or 11, search "create and format hard disk partitions", right-click on each volume and select "delete" until there's only one volume), then balena-Etcher worked just fine.

kelvingarger commented 2 years ago

I suggest you try running the Etcher as Administrator. I was having the same issue but that solved my problem.

On previous versions, Etcher would throw a warning before starting the flashing process saying that it couldn't proceed without Admin permissions, but that is not happening on the latest version for some reason.

thanks a lot my friend... it worked smoothly after running belena with admin permissions. cheers

WaffyCactus commented 1 year ago

Try turning off the Windows Defender it worked for also don't forget to turn on the Windows Defender back after the purpose is full filled

Cheers 🤗

chadericstevens commented 1 year ago

I had the same failure problem. Tried several things. I took my sd card and card reader and plugged it directly into my comuter's USB port. Previously it was plugged into a USB 3.0 4 port hub. Now it is writing the image correctly.

casivaagustin commented 1 year ago

On windows 11 you have to disable controlled folder access in order to make it work.

https://forums.balena.io/t/unable-to-use-etcher-with-win11/349919/7

pilotwithnoITskills commented 1 year ago

disabled controlled folder was already switched off, i switched off windows defender firewall, used etcher as an administrator to flash the image on my SD card, used 3 different SD cards, and still get the message during verification stage: flash failed.... Any suggestions? If i put the SDcard with the failed flash, in the pi3b, the stratux worked during a few weeks, now i get after a while error message gps disconnected not communicating. Changed GPS mouse, same issue. Also the wifi tends to stop working, then connceting again... I use iphone and ipad to check, they both cant find the wifi from stratux anymore. After reboot of stratux, it works again for a short period, and then the issues start again.... What could be wrong? In the beginning it all worked ok...

bcutter commented 10 months ago

Also fails. Win 11, tested with several target drives, same outcome. Write is actually successful (target drive written fine) but the error rises up anyway everytime.

grafik

chrisdafer commented 8 months ago

TLDR, do yourself a favor and try using a USB 2.0 port directly on your machine and running Etcher with Admin rights.

Windows 10 here, and I was having this issue and tried numerous devices including flash drive, microSD card, card reader, USB hub, USB port directly on the machine, I did not have controlled folder on and I was running with Admin rights. Flash drive failed on validation, but microSD card failed instantly. I was just now able to successfully flash both by......plugging the flash drive and the SD card reader directly into a USB 2.0 port on the computer. There must be a compatibility issue with Etcher. This was a fresh installation of Etcher, too.

bcutter commented 8 months ago

TLDR: I don't have a USB 2.0 port anymore.

Etcher needs to be fixed. Period.

Polpix commented 6 months ago

I had the same pb with the USB key plugged on a hub-power supply. It re-failed in Admin mode It succeeded in Admin mode, plugged directly in the pc.

vinser commented 2 months ago

I keep getting the exact error, using version 1.5.116, It doesn't pass the validation step. the drive seems to work fine on windows but my 905x, 2gb box does not recognize it. Keeps telling me its corrupted. I’ve tried to run Etcher in admin but that still keeps giving Flash failed.

image

You should set the windows defender real-time protection exception for etcher and it will go right. See https://support.microsoft.com/en-us/topic/how-to-add-a-file-type-or-process-exclusion-to-windows-security-e524cbc2-3975-63c2-f9d1-7c2eb5331e53