-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RPi 5 - unable to mount root fs on unknown-block(179,2) #3065
Comments
@EnzoD86 I managed to reproduce this issue by intentionally breaking |
I ran into this, after I configured the WIFI and restarted the system. May this helps to reproduce. |
Here is a cmdline.txt those was broken |
hi, unfortunately as I wrote I restored the SD with the latest HA OS image. So I have no ability to recover that file. |
Unfortunately I flashed the SD Card after the problem. And the installation is on my other house far from me. This was a Raspberry Pi 5 8Gb with a 32Gb SD Card. If I do a restart from the HA - OK |
I also have a full image of the borked SD card, if needed |
Hi, Hardware: == Just found that this issue is addressed in # 3067 == |
Version 11.3 seems to be ok, ( haos_rpi5-64-11.3.img.xz ) and RPi5 survive a "power failure" and will reboot. So for now do not update to 11.4 |
While I can't confirm the issue I do believe it's related to
While I can't confirm the issue, I do believe it's something to do with WiFi settings. I've flashed my SD card a few times this week and have set everything up in different orders and rebooting at each step. Only when I have setup WiFi has it got stuck in the boot loop. I now have a fully operational 11.4 running (except Wifi) and have restarted a few times with no issues. Maybe a while for network needs to added to boot? |
Same issue, but I never connected to any wifi. I was using cabled network |
Same here, but running 11.3 started boot looping after a power outage. Also never used wifi. |
Just happened to me as well, if you need anything from my SD card let me know as im using another for now. |
Same here, i bought 2 new SD cards, after i had this issue 4 times, Happens when i each time i switch off Rasp. I try to recreate from backup... (hope this will work) --> BACKUP was working !!!! Puhhhh |
Editing on windows require to mount the first partition. Windows might not let you mount it despite it being a fat32. Linux subsystem for windows will allow you to access the disk and partition if needed. |
Is there a way to fix this without full reinstall? |
Replace your cmdline.txt with the stock one of your release and retry ? |
Hi, I would like to specify that the problem occurs only when you update the operating system. Instead, starting from a clean version, i.e. directly flashing the SD card with version 11.4 and restoring the backup there are no problems... in fact I'm currently using the latest version (11.4) and even with complete reboots the system works perfectly .... so it's something that only breaks during the update phase from the old version to the new one. |
Same here. Occurs every time I reboot the rpi5. Regardless if it is a fresh, "naked" image or the backup HA instance on a previously flashed SD |
That would be very helpful, thanks. Theoretically only boot partition content is what is interesting here, so you can extract it with
If anything, you can hit me up on Discord (https://discordapp.com/users/544193690806255616). |
boot.img.gz |
Path to cmdline is set in tryboot.txt to cmdline-tryboot.txt before attempting A/B boot. After successful boot, tryboot.txt is relocated to config.txt, yet the path to cmdline.txt is not changed and remains set to cmdline-tryboot.txt, which doesn't exist anymore at that point, causing following reboots to fail. Fixes #3065
Path to cmdline is set in tryboot.txt to cmdline-tryboot.txt before attempting A/B boot. After successful boot, tryboot.txt is relocated to config.txt, yet the config path of cmdline is not changed and remains set to cmdline-tryboot.txt which doesn't exist anymore at that point, causing following reboots to fail. Fixes #3065
If this pr is completed, is it possible to publish a release? This issue is the only thing keeping me from using ha on the new pi 5 |
thanks for the fix <3 |
Path to cmdline is set in tryboot.txt to cmdline-tryboot.txt before attempting A/B boot. After successful boot, tryboot.txt is relocated to config.txt, yet the config path of cmdline is not changed and remains set to cmdline-tryboot.txt which doesn't exist anymore at that point, causing following reboots to fail. Fixes #3065
For the broke installs, what should the the procedure? |
@EndermanAPM Today's dev image (I will start build later today) will have it resolved, so force-installing it will be one way. Otherwise manual edit of the |
So this turned out to be a bug in the initial implementation of the update system. The initial boot after update worked, but not another reboot 🙈 . I am not exactly sure how I've missed that in my testing. @sairon thanks for the find and fixing this with #3085. For everyone, the next dev/beta/stable update should work fine. To fix your installation, insert the SD card into your system. On the first FAT partition of the SD card, you'll find a file named |
@WillSoper Yes, the file is modified before the reboot to the new OS version and then once the system successfully boots. If nothing happens during the upgrade, you should be fine from then on. |
does this fix #3067? I know it's a different problem but was introduced with the same update (11.4) |
Since I installed hassio on Pi 5, every time I updated HA OS I had this bootloop problem.
Initially I thought it was because the release was still a candidate.
In these weeks (since HA OS for PI5 was released) I will have restored my SD about 4 times (practically with every new release).
The latest one was yesterday (HA OS 11.4)... although in this case I didn't expect it to break, as it was updated from a stable release 11.3 to another stable release 11.4.
I can only provide a screenshot of the first boot loop that happened to me when I upgraded from 11.3.rc1 to 11.3.rc2
I hope it can help you understand the problem.
Thank you
Originally posted by @EnzoD86 in #3059 (comment)
The text was updated successfully, but these errors were encountered: