HassOS on SSD

Tags: #<Tag:0x00007fc415615068>

You don’t create CONFIG or a my-network file and use my guide. They are two different choices to achieve the same thing.

1 Like

I did indeed get the wrong hassoss image. My pi3 now boots from USB with no problems, but Im having a hell of a time migrating my config over. Ive tried restoring a snapshot, copying the config folder via samba, copying the homeassistant folder on a different linux machine, everything results in HA not starting or not remotely working properly. What is the correct procedure?

anyone succeeded install on ssd with raspberry pi 4 hassOS ? My SSD does not boot or showing activity lights when i turn on raspberry pi … ssd connected with usb cable…

or do i have to wait for a ssd support for the pi 4 ?

Here works perfect. Use SD to boot and rest boot from root on SSD

@poudenes
How did you do it ? what image did you download ? pi 3 or 4?

This worked for me perfect. Tried this couple of times to be sure this is working. Now running for 3 months Hassio on SSD on RPi. Only first boot part from SD

Flash on SD Card Debain Buster Lite Image put in RPi4 and bootup

Now do some things on command prompt of Buster on your Pi:
(In my case my SSD is /dev/sda1, it can be different ar your setup)

sudo mkfs.ext4 /dev/sda1 -L root
sudo mkdir /media/newdrive
sudo mount /dev/sda1 /media/newdrive
sudo rsync -avx --progress / /media/newdrive
sudo nano /boot/cmdline.txt

Copy the full line in the cmdline.txt so you have 2 same lines. command 1 out with #
Replace the second line the “root=“ see below.

root=/dev/sda1 rootfs_type=ext4 root_wait rootdelay=5

Save the file

reboot now

If you have something with resize, remove that part also.

Correct location and timezone

raspi-config

Install Docker

sudo -i
apt-get install software-properties-common -y
apt-get update
apt-get install apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq socat
curl -fsSL get.docker.com | sh

Install Hass.io

curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s -- -m raspberrypi3

After about 20 Min login via WebUI. Create account

2 Likes

Are you using a PI3 installer for a pi4??

Since August 2020 it is possible to directly boot your ssd attached via usb on a RPI4 without a SD card. Finally a firmware Update on the RPI opened this door.

And HassOS 5.2 (64bit Version) finally boots from SSD.

To use this feature you need to run the latest eeprom update.

Steps (source: boot-raspberry-pi-4-usb)

  1. Boot from a standard microSD card with the latest Raspberry Pi OS on it.
  2. Update your OS and firmware by typing:
    sudo apt update
    sudo apt full-upgrade
    sudo rpi-update
    
  3. Reboot the Raspberry Pi 4
  4. Install the latest bootloader by typing
    sudo rpi-eeprom-update -d -a
    
  5. Reboot the Raspberry Pi 4 again.
  6. Launch raspi-config
    sudo raspi-config
    
  7. select Boot Options (item 3) - press Enter
  8. Select Boot Rom Version - press Enter
  9. Select Latest and then OK
  10. Select No to not Reset boot ROM to Defaults
  11. Select Boot Order and press Enter
  12. Select USB Boot
  13. Select Finish to reboot
  14. Download HassOS 5.2 or later 64bit version (HassOS 4.x will not work) from here
  15. Now use Balena Etcher or a similar program on your Desktop Computer to copy HassOS 5.2(64bit) or later on your SSD
  16. Connect your SSD to the RPI4 via USB3.0 Connector
  17. Remove the SD card and reboot

Your PI should now boot directly from SSD and installs hassOS

3 Likes

I had it working on a Hassio 5.1 I’ve updated to 5.2 and I got a completely black screen after the splash screen.
I tried this method installing

Raspberry Pi 4 Model B (1 GB, 2 GB and 4 GB model) 64-bit

and I have the same result.
reflashing 5.1 or 5.2 worked

1 Like

Wait - is this true?! we can finally boot directly from an USB drive?! No Docker or other shenanigans?! Simple, plain old HassOS?!
Does it also work with the RPi 3B+???
Dreams do come true!

well docker is integral part of hassOS and this worked for the Pi3 already for a long time.

It did?!
What kind of “long time” are we talking about?! I last tried to do that early 2020 - but then it was only possible to install home assistant in a virtual machine running on the pi (if I understood correctly) … But now (starting with HassOS 5.0?!) it’s the same thing as running it on a SD card, right?!

1 Like

Which HassOS version should I use for a RPi3 B+ ? Does the latest stable 4.13 work too, or do I need to use 5.x?

I am not sure what you are talking about. I was able to install HassOS 4.x on a RPI 4 via SD card last year without a problem. And a Rasbian OS based HA installation also worked on SSD with a SD card to boot since last year. that was exactly my setup since last week.

Unfortunately I cannot recommend anything for RPI 3 because I don’t have own experience here.

I have the same question- is the dev version (5) needed to run Home Assistant (HassOS) from an SSD, or does this work with HassOS 4? I’ve followed the threads but am confused still. :man_shrugging:

No, it does not work.
The only possibility to use HassOS 4 on SSD with a Pi 4 is to use a SD-card to boot and have the data-partition on the SSD.

2 Likes

Thank you! So for people like me who want to switch to SSD because of previous SD issues, but are in no rush, we can simply wait till HassOS 5 is in production? :slight_smile:

I would say so!

1 Like

So news?
Boot from SSD in RasPi 3 B?
I tested also LATEST 5.4 DEV but screen stay black and no video signal.
So still boot from sd and data in ssd? I read that is possible to boot from SSD!
Maybe the problem is only for Hassos?

That should be possible also in older versions of HassOS I thought. Because the 3B can boot after a not reversible patch (don’t ask me how it works!) from USB.
The 3B+ can boot from start from USB.