Installing Home Assistant on a RPi 4b with SSD boot

Sorry, but for that step a monitor and keyboard connected directly to the Pi are needed.

There seems to be an option in Raspberry OS to enable SSH by adding an empty file named ssh to the Pi’s boot partition. With that step it could be possible to execute all needed steps from the command line through SSH. But I did not test that option.

This is exactly what I did and how I set it up @uniquecool , no keyboard/mouse/display connected to my new RPi4. Just place an empty file called ‘ssh’ no file extension, nothing, just put that file on the boot microSD and the Pi checks for it on boot and if it finds it, the SSH server is automatically started and then the file is deleted, so make sure you go into raspi-config to enable SSH still otherwise if you reboot it for whatever reason you won’t have SSH access anymore.

2 Likes

Hi @LondonBenji, thanks for the confirmation. I have added your info to the guide!

1 Like

@Noobz I received the ELUTENG adapter today.
It boots HA from my SSD on USB 3 within 1.5 minutes!
GREAT!!! Thanks for that info.
I will update the guide accordingly tomorrow.

2 Likes

@Jpsy
I’m glad I could be of help.
Waiting for my own shipment ELUTENG adapter.

1 Like

Thank you for the response.

This is the piece I am not clear about. I have created an empty file as ssh ( not sure where is that boot partition, I assumed here, attached image) and I see the light is blinking as mentioned on pi documentation. I have connected Ethernet cable, I couldn’t see any new IP assigned on my modem DHCP reservation to ssh.

what am I missing?

image

I do not know what is the mistake I am doing. This is very first time I am using pi4 ( 8GB) and brought to install HA. I tried to follow this doc, but seems I am missing something here.

I tried ssh way and have an issue , mentioned here. Installing Home Assistant on a RPi 4b 8GB with SSD boot

now somehow I loaned a Keyboard, mouse and a monitor and connected it. I do see a green screen after starting the pi ( I have loaded Raspberry Pi 4 EEPROM boot recovery with Raspberry Pi Imager). I do see a green screen on monitor which is a good sign. But thats it, the monitor is turing off after sometime. I want to proceed to next step to do

sudo raspi-config

can someone guide me pls ? thanks in advance.

You should not see a green monitor. A healthy RPi shows (within seconds after power-on) a black background and a colored raspberry in the upper left corner.
Have you attached your monitor with a micro-HDMI cable or adapter?
Does the LED on the Pi blink green? If not, your Pi is not starting correctly.

Why did you do that? That tool is only needed if your EEPROM is corrupted. This is not part of the guide. Have you removed the SD card with the recovery software or is your screen turning green because this software is still loaded?
Check the guide again. I think you took a wrong turn somewhere during the first steps.

Ok now I completely understand what the mistake I did. Thank you for writing this, It really opened my eyes.

now coming to the issue why I faced what I faced.

RPi 4 has a boot EEPROM (which RPi 3 did not!). You have to update that EEPROM to the latest firmware (2020-09-03) which enables USB boot. To update the EEPROM you have to temporarily install Raspberry OS. I used an SD card for this. The procedure is described in the Raspberry Pi docs but the following list of steps should get you flying.

Here it was referred as there is a procedure to follow from docs, so I went a head and read that docs. Which is why I am saying the green screen etc ( it mentioned on that docs).

May the one who created can reword these things. On the other hand, may be I am only one who faced this issue and the wording might be right.

but now finally I am able to setup everything. Thank you again!

I have followed the steps and installed hassio and able to see the GUI as well. But I do not have any monitor or keyboard.

how to setup ssh to login and I want to verify the version to start with.

I have done some research and found a way to ssh with an add-on called , Terminal & SSH. Please let me know if this is a good method or any other method is recommended?

Thank you reading.

Is see your problem. I have reworded that paragraph. Sorry for the ambiguity!

I actually answered that question in my OP:

You can use “Terminal & SSH” too, but Frencks tool goes far beyond that, even if you only use the SSH server part. But I guess we are going off-topic here.

1 Like

This is good advice and I recommend more people follow it.

Using the Pi imager would make this guide a lot simpler too. There is no need for ssh or keyboard.

  1. Use Pi Imager to create eeprom recovery SD card
  2. Boot Pi4 with SD and wait for blinking green light
  3. Remove SD card
  4. Attach HassOS SSD to USB and bootloader will use USB-MSD boot
7 Likes

5.x 64b development build is capable booting from USB3 using an SSD. It is confirmed by using a few SSD’s and a SATA to USB3 adapter cable.

However, when using a NVMe SSD and a NVMe SSD Enclosure, it fails to boot from USB3 ports. It boots successfully from USB2 ports.

I am using the following:

It looks like UASP is not supported by the development build so far.
I have tried to set the quirks in the CONFIG folder by editing the cmdline.txt file, but it doesn’t work.

The same NVMe set boots normally from USB3 at Raspbian.
Confirmed at Pi4 2G, and Pi4 8G.

Hopefully it will be fixed at the next releases.

1 Like

I wanted to report I was able to get this SSD for $56 USD on Amazon Prime day and it’s working fantastic with my RPi 4 w/ 8 gig.

RAVPower Portable External SSD Pro, 512GB Hard Drive with 540MB/S Data Transfer, NAND Flash, USB 3.1 Gen 2 Interface, ATA Lock, Mini USB C Solid State Drive

I have been using one of these for some time on a Pi3, and more recently on a 4gb Pi4, running HA Supervised as a backup to my production machine.

This page has a list that is useful for known working drives and enclosures and info on using quirks. I have purchased this one and can confirm it works well with a WD Green SSD.

I am not a big fan of bloating the comments on this guide with personal reports of working / non-working peripherals. The guide already contains a link to a good article, containing just these lists. If you want to add to that: Please take the liberty to edit the guide itself and add a list that contains goes and no-goes (guides are wikis and you can edit them!). If you pour it all into the comments, we will end up with hundreds of postings that users have to read through to get a final image.

2 Likes

Hi guys,
yes this is really a much simpler way to do it. I was not aware of it.
I am tempted to add it to the article. But then again it would be possible that the boot order of the Pi is not set to SSD boot. And I guess raspi-config is the only way to set it. So we are back to Raspberry OS for a really complete guide. Or are we?

You can see the defaults on https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md

I have tried this numerous times and it works. Flash via SD, remove SD, attach USB and it boots up.

Specifically:

  • The default boot order is 0xf41 which means continuously try SD then USB mass storage.

As long as you remove the SD card, it will boot from USB.

The default options also include ENABLE_SELF_UPDATE=1 which means it can be kept up-to-date by HassOS in the future.