etcher icon indicating copy to clipboard operation
etcher copied to clipboard

Prevent "Format disk?" popup on Windows

Open jhermsmeier opened this issue 6 years ago • 7 comments

I stumbled upon the reason & the solution for the annoying "Format disk?" popup on Windows, when a storage device without a recognized partition table is detected by the system:

[...] when a new volume created in system, it is possible that the system bring up a windows prompt for “Format disk?”, that is not what I expecting, I need to format the volume using my special parameter. To disable this prompt, need to stop/restart server “ShellHWDetection“, there is a sample about how to control a service [...].

Source: How to format a RAW disk in windows by C++

I suppose we could implement the service control, to silence the shell's hardware detection while Etcher is processing devices.

jhermsmeier avatar Apr 17 '18 14:04 jhermsmeier

Presumably you'd need to be extra-careful that the ShellHWDetection service gets started again when Etcher exits and also if it crashes?

lurch avatar Apr 18 '18 14:04 lurch

This pop up seems to interfer with validating on Win10. When I etch a micro SD card progress goes to 100% without issue but after validation starts, it hangs either from the start or after 2 - 7 % and then ends with an error that etcher is unable to write to the drive. I have noticed two things in regard to the "format..." popup. One is that if etcher's validating does not start at all, the pop up stays away until after I click away etcher's error. If etcher is able to start validating, it hangs a soon as the pop up shows, wgch some times takes from 5 - 15 seconds.

I have witnessed this behavior on two different desktops and a laptop, all running Win10 that I keep updated regularly (but not too regularly to prevent new bugs from M$). To exclude the SD card I have used two 2GB and 1 4GB card with the exact same results. Also, witnessed the same behaviour for v1.4.4 and 1.4.5. Running as adminstrator makes no difference. Different card readers, with or without SDcard-to-microSdcard adapters also makes no difference.

So IMHO it is either Win10 or Etcher :-)

BTW If the cards were fine after this I wouldn't give it a second thought, however I do run into issues. As I use these SD cards for my raspberry pi's who have been running without issues for a while, ssh'ing into them won't work. Running them with display and keyboard is ok, I can ping them, just not SSH. And yes I have checked all and tried various settings, including the most obvious enabling SSH from the raspbian config utility.

Apart from all this, I do not understand the error. When validating etcher shouldn't need to write to the disk, just read, right?

Anyway, maybe it's all just a weird coincidence, don't know. Just thought I'dmention it here.

EDIT: It doesn't make a difference if I click away the pop up or not. I gets even weirder; I just etched a 16GB card without issue. What the...?

EDIT2: The 16Gb card that was validated successfully runs Raspbian wthout issues, including SSH. Now the question is, was it the other two cards that cause the issue or not? These cards have been working okay until a few weeks ago, I wanted to change some stuff, mainly upgrade form Jessie to Strech.

No idea what is going on. For now I can continue whith what I want to do, also 2GB and 4GB cards aren't that common anymore so no big deal I guess. Still I'll leave this here as info and reference for others that may have similar issues.

refthoom avatar Oct 23 '18 14:10 refthoom

Same issue here. It's kind of tedious to have windows popup 100 times the "format disk?" message, while etcher is still in validation phase. Whats going on?

Windows 10 here. It happened in two machines already. Never happened before with other sd writer software.

drakorg avatar May 18 '19 02:05 drakorg

Honestly, I'm more annoyed at how it keeps popping up afterwards. I have the USB plugged in so I don't lose. Windows begging to blow my gparted drive away is driving me nuts.

vezaynk avatar Jun 11 '20 20:06 vezaynk

Related to #3197 ?

lurch avatar Jun 12 '20 10:06 lurch

Any resolution to this? I am currently having this problem. Writing a 64 gb usb drive and during validation I get the dialog prompting me to format each partition windows thinks it recognizes. I didn't have this behavior on another machine. Both machines were windows 10. I'm writing a bootable linux partition for a Jetson Nano.

loophole64 avatar Mar 02 '21 19:03 loophole64

the issue was around for at least 10 years, nether removing usb disk letter with diskmgmt.msc nor giving the disk partition id=64 with diskpart.msc ever worked for me. seems there's still no reliable solution for the MS crap

sehrguey avatar May 20 '22 11:05 sehrguey

Did some searching. It the AutoPlay settings for windows 10. It can be disable. Open the search bar type AutoPlay. You can turn it off.

Use AutoPlay for all media and devices.

Lightnet avatar Jan 05 '23 06:01 Lightnet