Flashing hard drive get stuck at 31% (balena fetcher)

doesn’t look that way. Also they are talking about usb .

couldn’t make it work on Ubuntu. But worked great on Windows 10 custom live USB after using it with -a .
So yeah, overall is looks like Usbimager solves the problem when balena freezes on 4 percent or 31 or what even number you get.

My homeassistant loaded before after 31 percent freeze and it seems fine, but it doest not work properly.
So now hopefully it will work. So thanks for the tip!

UPD: works like a charm!

1 Like

Had the exact same issue, same HP thinclient T620. Using USB imager instead of Balena Etcher solved it.

Instead of Ubuntu used Manjaro as I had that ready on a bootable stick, worked just fine. I did not unzip the image prior to writing.

2 Likes

Success! This worked for me. Thanks so much for taking the time to outline this step by step. The one tricky part for me was creating the one big Ext4 partition. I first tried Ubuntu’s Disk utility. I could delete all the partitions from my previous install to create one big empty space. But when I tried to create the partition, despite selecting the whole space, it only let me create a tiny one at the front end of the empty space. So I switched to Gparted. It detected and fixed some issue and I was good to go.

1 Like

I just did the same.
Dell Mini PC. Boot off Ubuntu trial USB, Balena Etcher the HASS image to the internal SSD.

Was stuck at 32% for like 20 minutes and everything was frozen. Was just about to pull the plug. Came back some time later and the etch finished

That seemed to work for me too, HA initialized and did some discoveries.
But then I ran inDNS errors when installing/downloading custom integrations.
I did a new try with balena with the same result. (hanging balena, running HA, error when installing integrations). Don’t know how or why, but it seemed to be related.

But then I created 1 big partition and that made balena work and solved the DNS problem.

1 Like

Hello all, typically I am a reader of forums, not a poster, but I have to say I am very happy I found this tread and had to respond.

I ran into the same issue as described (Balena Etcher freezing while running Ubuntu LTS from an USB drive, while flashing HA to a TC520 Intel NUC). Multiple tries, stuck at 14% or 32%, but afterwards (typically a hard shutdown after an hour) HA was running so I thought all was good.
The radio and metrology integration not working was fine for me, but not getting Z-wave to integrate was extremely frustrating. Add-on was running perfect, but the integration could not connect, failed to connect or just ignored any response. I almost gave up completely to move back to Domoticz…

I have now done the same but with the USBimager instead of Balena etcher, flashing was quick and easy (same as above, used Gparted to make 1 ext4 drive of my NUC drive).

And now HA is running 10 times quicker, radio and metro work, Zwave JS UI add-on and integration were truly 1 minute to setup and everything works as it should.

Thanks a lot and I would definitely vouch for adding this option to the installation manual!

2 Likes

This is so bad. :warning:

And this somewhat indicates that the balena etcher adware actually fiddles/messes with HaOS - probably “unintentional” like all trackers when the devs got burned :fire:

The results of our investigation showed that Etcher will make connection to the following systems:

Connection Included intentionally
Sentry YES
Mixpanel YES
Google Analytics (&doubleclick) NO
Go Squared NO
Facebook Pixel NO
Gstatic .com NO
jquery NO
Cloudfront NO
facebook .com/facebook .net NO

At this point HA should definitely stop suggesting using this spyware - not only does it not respect user privacy (opt-out VS opt-in) but also ads are mandatory with this badware based on a EOL browser (with known 0-day exploits :boom:) and easily being bigger than a HaOS image it should juat write :man_facepalming:

2 Likes

As far as I remember I raised an issue in Git Hub or in the documentation site.

2 Likes

Thanks a lot @Damos, I had exactly the same problems (etcher freeze, HA Cloud services ko…) this post saved my day ! :slight_smile:

1 Like

Be aware there is a ‘fake’ balena etcher out there…

Is the fake etcher any better? Does it come without ads and trackers? Any link?

The discussion linked recommended that you don’t use etcher.

Here is another tool that was linked to.

https://bztsrc.gitlab.io/usbimager/

1 Like

For your info, I was warning for the fake

And to answer your question: No…the original is Better;Without ads (except for their own) and without trackers (not sure, but according @orange-assistant there are issues).

Any Link? → balenaEtcher - Flash OS images to SD cards & USB drives (this is the original, DO NOT USE THE FAKE, as it has all that you mentioned)

But as @pcwii said, you can use usb imager as well :stuck_out_tongue:

I read a little bit in the balena github repo and actually it looks like “some” fake etcher sites were just distributing old unmodified etcher binaries WITHOUT ANY ADS (but with all the tracking as this is part of etcher for a long period already).

I will avoid etcher for now thanks to all that information (it also has unfixed security issues according to devs on github).

USBimager looks great! They have a table on gitlab and (also) compare it with etcher - looks like it wins in all categories!

2 Likes

What a lifesaver it was to find this thread. I had exactly the same issues two days ago, with my NUC, a fresh Ubundu live and Etcher. I have all the symptoms, I had the Ubuntu freeze, the dns container halting and have been tryting to get it to work for two days now. Thanks! I will try again with high hopes.

Update: 1 day later and success using sudo .\usbimager -a to be able to flash my SSD.

3 Likes

I think it’s time update the HA docs to don’t suggest etcher (with it’s known vulnerabilities and trackers/ads) anymore as it looks like it is the root cause of many HA related problems (not limited to writing/flashing but also DNS manipulations?).

A quick look shows that for raspberry based installs the pi imager (and not etcher) is already suggested so it should be no problem to replace the docs which still promote etcher with usbimager I guess?

3 Likes

I already raised that issue in GitHub: Flshing with Etcher results in faulty DNS behavior. · Issue #28706 · home-assistant/home-assistant.io (github.com).

1 Like

This is a balena etcher issue and have nothing to do with the image by itslef. I would recommend using the dd pre-installed tool in the live ubuntu image.

  1. Download haos_generic-x86-64-11-1.img.xz
  2. Unpack the image and you will get instead haos_generic-x86-64-11-1.img
    unxz haos_generic-x86-64-11-1.img.xz
  3. Flash the image to your device
    sudo dd of=/dev/{YOUR_DEVICE} if=./haos_generic-x86-64-11-1.img bs=64k oflag=dsync status=progress
1 Like

Sadly you can’t verify the written image with dd.

But USBImager does that and isn’t bloated (ads, tracking, …) and broken (security issues, broken writes’ …) like etcher.

1 Like