home-assistant / operating-system

:beginner: Home Assistant Operating System
Apache License 2.0
5.04k stars 986 forks source link

Unable to boot 5.13 on USB SSD on Rpi3 #1306

Closed inverse closed 2 years ago

inverse commented 3 years ago

Hardware Environment

Home Assistant OS release:

nanowireUK commented 3 years ago

Seeing same thing on a raspi4 booting from SD card. Upgraded to 5.13 over an hour ago and it's not booted back up.

Update: power cycle next day and I didn't even get monitor output. Removed SD card, power cycled, replaced SD card and it then booted up. Possibly unrelated to the USB SSD issue but this is the first time I've seen this behavior.

jrousek commented 3 years ago

Same on rpi4 and usb ssd boot. Afternoon test hdmi output.

Update: when no one is dealing here, I had to perform a completely new installation. she also eventually fell. other installations are running.

carlhye commented 3 years ago

Same issue here.

  1. Installed 5.12 on Samsung T5 500GB USB SSD, worked fine
  2. Upgraded to 5.13 and could not get to boot
  3. Flashed 5.13 to see if this was related to disk failure, then not even monitor output
  4. I Flashed 5.12 to start over, then everything worked fine

R Pi 3B+ Samsung T5 500 GB USD SSD

inverse commented 3 years ago

Exactly - I tried to see if there was any output on the monitor, and there was nothing :(

bobruddy commented 3 years ago

I had the same issue on a pi4 4gb ram. Rpi64.

Did an upgrade and wouldn't boot. This was a new install so I just reflashed.

It boots. But behavior such as going to devices is broken.

caesar1987sk commented 3 years ago

today i was forced to restart raspbery pi 3 with usb drive 30 times to start it after update to os 6.0

inverse commented 3 years ago

ouch - yeah I stayed on 5.12 until this ticket is resolved.

bdurrer commented 3 years ago

Updated to latest yesterday on PI3 B v1.2 with USB SSD (no sdcard) and it won't come up. It keeps logging OOM errors and attempts to start endlessly 1624390373208

Sigh, I switched to SSD because SDcards sooner or later failed me, but HA always finds ways to waste my time

agners commented 3 years ago

Sigh, I switched to SSD because SDcards sooner or later failed me, but HA always finds ways to waste my time

Sorry about that :(

Unfortunately SSD has proven to be a bit unreliable with Raspberry Pi as well, just search through the issue tracker...

This is really odd, as at this point in boot process not much stuff is running. It seems as if a process goes awry already early during boot.

After three unsuccessful boot the system should go back to the last OS installation (which hopefully shouldn't show that problem anymore). If that doesn't help, you can set systemd.unit=rescue.target in cmdline.txt of the boot partition drops you to a Linux shell. Maybe it helps doing ext4.fsck -y /dev/disk/by-label/hassos-data. Otherwise a new installation is probably your best bet.

bdurrer commented 3 years ago

@agners Thanks for the input. I managed to get into the console with this, but I don't really have an idea what to do with it. I forgot to mention that this is already reboot >6. I saw the console once, I think at the third reboot (but it HA never started).

I am migrating to the NAS now, IMO ha-os is just asking for problems

agners commented 3 years ago

IMO ha-os is just asking for problems

Raspberry Pi 3/4 with SSD boot is, indeed :( But that is more a Raspberry Pi problem than HAOS. The fact that the input power is 5V is just not ideal for power hungry downstream USB devices. Plus external USB, and USB stack is rather brittle to boot from/run continuously data through.

Solid here on ODROID-N2. Also Intel NUC is a good alternative. :sunglasses:

inverse commented 3 years ago

has anyone tried the newer builds with a PI + SSD boot? I stuck with 5.12

Masteroshi430 commented 3 years ago

has anyone tried the newer builds with a PI + SSD boot? I stuck with 5.12

I had problems with 6.0 not starting (HDD on USB hub) then bought an SSD which had the same problem but I then tried without the USB hub and it booted. I'm now on 6.1 without any problem. Could it be the USB-micro B cable between the Pi3b and the USB hub which was causing problems⸮ :raised_eyebrow:

agners commented 3 years ago

FWIW, I tried to reproduce this with a Raspberry Pi 3 Model B+, using the 5.12 32-bit as well as 64-bit image. Installed a fresh installation on a USB mass storage device (Samsung flash drive) and booted it. I then upgraded to 5.13 and in both cases it successfully rebooted.

So it seems not to be a general problem, it (once again) seems to depend on the exact environment etc.

It also seems somewhat unlikely that 5.13 makes a difference here, since there is no change in the relevant components (same Raspberry Pi firmware, same U-Boot bootloader and Linux kernel version): https://github.com/home-assistant/operating-system/compare/5.12...5.13

@inverse @carlhye can you also share the exact model of SSD you are using? Also, are you using 32-bit or 64-bit image? Thre was a change in 5.11, so if 5.12 does not work, it could be a problem with the firmware. Are you sure that 5.12 works reliably? (e.g. is software rebooting working reliably on 5.12 multiple times?)

inverse commented 3 years ago

Hi @agners

Thanks for investigating - I am using

This SSD: https://www.amazon.de/exec/obidos/ASIN/B07G3KRZBX This Adaptor: https://www.amazon.de/exec/obidos/ASIN/B06XCV1W97

I'm on a RPi4 8GB now running the 64bit version but still on that 5.12 version... I vaguely remember having weird reboot issues, e.g. SSD not booting all the time, but tbf it's been up for a long while now so I haven't seen issues.

caesar1987sk commented 3 years ago

Same issue on external USB HD with own power supply on raspbery pi 3b+. Latest version of everything and its not possible to start hassio on first, sometimes its needed more than 10 power cicles. No issue with raspbian.

inverse commented 3 years ago

@agners just upgraded to 6.1 and it booted first time.

BertrumUK commented 3 years ago

I was running a Pi3B+ on SSD using Raspberry Pi OS so tried to move over to HAOS starting with 6.1. The Pi would ping but it would not boot using an Orico enclosure. 4.20 worked fine.

Bought a Sabrent EC-UK30, as it works fine with HAOS 6.1 on my Pi4, but it still would not boot the Pi3B+ using 6.1.

I got it to boot by copying "fixup.dat" & "start.elf" from 4.20 to a 6.1 build and the Pi3B+ starts up and HAOS works as expected.

Leapo commented 3 years ago

I'm seeing similar issues on a Pi 3B (original). It fails to boot from USB SSD with anything newer than 4.19.

4.20 tries to boot, but locks up. Anything newer than that doesn't even try to boot, and leaves the Pi on a black/blank screen.

inverse commented 3 years ago

@agners feel free to close this. just went from 6.1 -> 6.3 - all worked

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant OS version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.