🌐
Home Assistant
community.home-assistant.io › installation › home assistant os
Grub config on hassoss - Home Assistant OS - Home Assistant Community
November 25, 2022 - I’m trying to get rid of the A/B boot options from grub. The B option can’t boot so i dont want it to be tried at all anymore tried to edit the grub.cfg, but it’s not helping. Grub commands dont seem to be present on t…
🌐
Reddit
reddit.com › r/homeassistant › how to gain access to home assistant after misconfigured configuration.yaml file with network settings
r/homeassistant on Reddit: How to gain access to Home Assistant after misconfigured configuration.yaml file with network settings
January 17, 2024 -

Hi, today I was trying to setup Home Assistant to be accessible outside of my network via reverse proxy (not interested in discussing proxy vs VPN/tailscale, etc for remote access). I lost access to the web UI because I misconfigured configuration.yaml. I've now regained access, and I'm going to make a straightforward post that I wish I would have found when I was trying to figure it out. Props to this thread for the instructions, I just want to make another post so somebody else can find the information easier.

My scenario:

  • Running Home Assistant OS on Unraid via VM

  • Reverse proxy is managed by NGINX Proxy Manager. Added new proxy host to NGINX, configured CNAME to my domain via Cloudflare, etc.

  • Was updating HA configuration.yaml to allow for external network access by adding addresses with the 'trusted_proxy' line and also setting 'use_x_forwarded_for' to true. I added the internal range (x.x.x.0/24) but mistakenly forgot to add host. Unraid lives on x.x.x.1, HA on x.x.x.2. I should have added x.x.x.1 to 'trusted_proxy' (I think).

  • Did not have access to configuration files via SMB share

I updated configuration.yaml, restarted HA, and subsequently lost access to the web interface as I hadn't properly added the host address and HA was not allowing access. I did not want to nuke my setup and thus needed to edit configuration.yaml to remove the network lines I just added. I did not have external access to the VM filesystem. I was able to edit configuration.yaml via Home Assistant console from VNC in Unraid's VM manager.

Steps to fix:

  1. While Home Assistant is running, access console via Unraid VM manager by clicking your HA VM in Unraid to view options, and click 'VM Console(VNC)'. This should launch a new web window with the HA console / hass.io CLI. This is where we will fix the configuration.yaml file.

  2. Type 'login'

  3. Type 'cd /mnt/data/supervisor/homeassistant'

  4. Type 'ls' to list the files in this directory. You should see ‘configuration.yaml’ in this directory.

  5. Type 'vi configuration.yaml' to enter edit mode for the config file. From here you can thumb around to delete/modify the appropriate lines. In my case I deleted the new network lines. Reference the guide below to navigate between commands.

  6. Once edited and saved (you must save!) then restart VM via Unraid UI.

VI editor commands:
i — Switch to Insert mode.
Esc — Switch to Command mode.
:w — Save and continue editing.
:wq or ZZ — Save and quit/exit vi.
:q! — Quit vi and do not save changes.
🌐
Home Assistant
community.home-assistant.io › installation
Boot and GRUB - Installation - Home Assistant Community
November 20, 2022 - Hello, totally beginner here. I have installed Home Assistent OS on Intel NUC ATKC4. I have used Samsung 980 M2 SSD drive for that, flashed with Balena etcher etc. Everything is pretty much working just OK, the only un…
🌐
Ask Ubuntu
askubuntu.com › questions › 1438168 › stuck-at-grub-command-line-gnu-grub-version-2-06-3deb11u2
boot - Stuck at GRUB command line - GNU GRUB version 2.06-3~deb11u2 - Ask Ubuntu
Arrow down to Power-On Password, hit Enter (brought up Set Power On Password), Hit Enter 3 times (taking me back to Security) 5.) System Configuration: selected Language (hit Enter on English, then Enter again taking me back to System Configuration) 6.) Same process as above with Virtualization Technology (disabled), Fan Always on, Action Keys Mode (enabled) 7.)Picture of where changes were madeThen when I select Boot options I NOW have the ability to change UEFI boot order, etc. (before there were only 3 options under boot options) ... Load HP Factory Default Keys 8.) Don't know if this is the correct / safe way to work around the “Stuck at GRUB command line - GNU GRUB” problem but now I'm able to shut down/restart with no hangups.
🌐
Reddit
reddit.com › r/homeassistant › restore home assistant from gnu grub
r/homeassistant on Reddit: Restore home assistant from GNU GRUB
June 22, 2023 -

Hi. I updated ha os to 10.4 and now i don't have WIFI or LAN connection, so i can't revert to 9.5 If i select 'Slot A (OK=1 TRY=0)" it boots (in last known good boot?). But if machine restarts it boots in "Slot B" again. What should i do?

Running HA OS on mini pc.

🌐
Home Assistant
community.home-assistant.io › configuration
Install HA on old laptop without UEFI - #60 by lpt2007 - Configuration - Home Assistant Community
April 23, 2023 - I figuret out how to do this proces manualy. I run ha os from slot a when ha os is up and runing i ran command: ha os update from cli when update complete ha os goes to restart when pc starts I first boot to some linux and mount sda1 with command: mount /dev/sda1 /mnt then I edit /efi/boot/grub.cfg with command nano /mnt/efi/boot/grub.cfg end I changed default=99 to default=1 to get more time to select slot b then umount mounted sda1 with command umount /mnt type reboot to restart pc on syst...
🌐
Home Assistant
community.home-assistant.io › installation › home assistant os
Upgrading home assistant or reboot always get stuck on GRUB screen - Home Assistant OS - Home Assistant Community
September 3, 2022 - This started a long time ago, but every time I reboot the OS, or upgrade the OS version, I end up getting stuck on a GRUB screen and have to make a selection. This time I had to select Slot B in order to it booted up to OS 9.2 I went to the command shell and looked at the environment an it’s ...
🌐
Home Assistant
community.home-assistant.io › installation › home assistant os
GNU GRUB error on boot up - Home Assistant OS - Home Assistant Community
January 16, 2023 - I have Home Assistant running within an Oracle VM and recently upgraded. Since the upgrade, I am getting the GNU GRUB screen on boot up If I go to the command prompt, and do an ‘ls’, I get the following: I have se…
🌐
Home Assistant
community.home-assistant.io › installation
Stuck on GNU GRUB on boot - Installation - Home Assistant Community
November 3, 2023 - Hi, Last time I rebooted my Home assistant OS (which I do around once/wk) it now gets stuck on this screen and I can’t move forward. I have no idea about GNU GRUB but googled “ls”, which gives the list on screen. I am u…
🌐
Home Assistant
community.home-assistant.io › installation › home assistant os
HA occasionally halts to GNU GRUB menu - Home Assistant OS - Home Assistant Community
October 19, 2022 - Every couple of days, I find my haos halted on GNU GRUB screen with following options. *Slot A (OK=1 TRY=1) Slot B (OK=0 TRY 0) Slot A (rescue shell) Slo B (rescue shell) I have to hit ENTER to boot. What is happeni…
Find elsewhere
🌐
Home Assistant
community.home-assistant.io › community guides
Installing Home Assistant Supervised on a Raspberry Pi using Debian 12 - #573 by kanga_who - Community Guides - Home Assistant Community
April 6, 2022 - Installing Home Assistant Supervised on a Raspberry Pi using Debian 12 :stop_sign: Before proceeding, please read the following information :stop_sign: It is being made increasing difficult to run a Supervised installati…
🌐
Reddit
reddit.com › r/homeassistant › you don't need uefi to install haos. here's a simple guide to cover how it's done.
r/homeassistant on Reddit: You don't need UEFI to install HAOS. Here's a simple guide to cover how it's done.
May 28, 2024 -

First of all, credit to these two folks: (thread 1) (thread 2)

I spent too much time trying to figure out how to get this done, and in the end it takes very little to do it.

It also includes instructions at the end that can address the issue on any install that is not booting to the latest OS after an update. Anyway, I hope this is helpful!

NOTE: This was written by me, for me. So key presses or hardware may vary in your use case!

Here's the stuff from above for copying/pasting

LINK referenced early in image.

Code from above:

sudo mount /dev/sda9 /mnt
sudo apt install grub2
sudo grub-install --compress=xz --root-directory=/mnt /dev/sda --force
cat <<! | sudo dd of=/mnt/boot/grub/grub.cfg
set root=(hd0,1)
configfile /efi/boot/grub.cfg
!

grub.cfg changes:

load_env --file (hd0,gpt1)/efi/boot/grubenv
save_env --file (hd0,gpt1)/efi/boot/grubenv A_TRY A_OK B_TRY B_OK ORDER MACHINE_ID
🌐
GitHub
github.com › home-assistant › operating-system › issues › 3305
GRUB failing to load kernel on Intel Atom boards (Intel NM10 chipset) · Issue #3305 · home-assistant/operating-system
March 3, 2024 - I see GNU GRUB with 4 options - Slot A, Slot B, Slot A rescue shell, Slot B rescue shell. Selecting any of them results in a message that it's unable to boot. I dont get any CLI options. I have used Linux Reader to download the backups from the disk and have then tried to do a fresh installation with OS12.2.
Published   Apr 12, 2024
🌐
Home Assistant
community.home-assistant.io › installation
OS 12.2 upgrade left HA on grub menu, unbootable - Installation - Home Assistant Community
March 2, 2024 - Hi, I’m using this section as I believe it’s the most appropriate I clicked to upgrade to the latest HAOS (12.2) about 30’ ago. Never came back up. On plugging a screen and keyboard, I saw it was stuck on the grub bo…
🌐
Proxmox
forum.proxmox.com › home › forums › proxmox virtual environment › proxmox ve: installation and configuration
HomeAssistant: Booting 'Slot A (OK=1 TRY=1)' | Proxmox Support Forum
March 16, 2023 - #/boot/grub/grub.cfg # so war es zuerst GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt" # so ist es jetzt, brachte keine Veränderung GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt nofb nomodeset textonly video=vesafb:off initcall_blacklist=sysfb_init" ... # cat /etc/pve/qemu-server/103.conf ## Home Assistant OS #### https://github.com/tteck/Proxmox #[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/D1D7EP4GF) agent: 1 bios: ovmf boot: order=scsi0 cores: 4 efidisk0: local-lvm:vm-103-disk-0,size=4M hostpci0: 0000:00:02 localtime: 1 machine: q35 memory
🌐
Home Assistant
community.home-assistant.io › installation
Stuck on grub prompt after installing HAOS Supervisor? read this - Installation - Home Assistant Community
March 30, 2025 - I was installing HAOS on a Mini-PC which is one of those with Atom processor and uses an eMMC interface soldered to the motherboard. Mine is branded by BeeLink. I did try to boot the Ubuntu live USB, downloaded the image and wrote it to the /dev/mmcblk2 device using the procedure on HOme Assistant’s site, thru the disk utility that ships with the Ubuntu USB.
🌐
Reddit
reddit.com › r/homeassistant › make ha boot the latest os by default
r/homeassistant on Reddit: Make HA boot the latest OS by default
March 2, 2022 -

After GRUB2 was introduced last month in OS 8.0, anytime I reboot the host voluntarily or due to a power disruption, it loads OS 7.6 despite having 8.1 installed.

It's annoying and a cause of concern because every time it happens, I have to hook the box to a monitor and manually select Slot B (HA OS 8.1) to load that instead of HA OS 7.6 under Slot A. What if I'm out of town..etc.

See this for reference

Thank You!

🌐
Home Assistant
community.home-assistant.io › installation
HAOS Install on X86 fails with Grub prompt - Installation - Home Assistant Community
June 4, 2024 - Hi I tried to install HAOD on an oldish Intel NUC at the weekend, using the latest version from the site. I followed the instructions - fix bios to disable secure boot, make sure it’s UEFI. Boot with live Ubuntu on USB, download the ISO, copy to partition, reboot.
🌐
Home Assistant
home-assistant.io › common-tasks › os
Common tasks - Operating System - Home Assistant
This section will provide guides to some common tasks and information which you will need in order to run, maintain, and edit your Home Assistant OS system. For further details on any particular subject, make sure to refer to the documentation for specific add-ons or topics listed here · Your ...