Will hassos be able to boot from usb anytime soon?

I used to run hassbian from ssd on my rpi3b . im now using a rpi3b+ witch forces me to use sd card to run hassio. After 3 dead sd cards Im now spending to much time restoring images and that I am not enjoying…
I like the rpi very much as a server and uses the gpio for in and outputs so an nuc is not right for me.
Do anyone her know if it will be possible to run it from isb in the future?

Thanks

1 Like

How are you killing SD cards? I just started with my 3b+ this week. The recommended (by RPI Devs) path, if your machine is Windows or mac is to format your SD card with the SD Formatter tool.

That has been working for me with NOOBS. I plan on installing Raspian or Raspian Lite & then Hassio.
My testing of HassOs in a VM indicates HassOs flakiness.

To install Hassio I will use the Linux install instructions, skipping the non-existent Universe repo & adding the machine architecture argument to the Hassio install command.

It is about time this was added to hassio. Please look at this somebody.

I believe a number of people have done this but I cant find a decent guide.

Re Dave

1 Like

The way most people end up killing cards; exceeding the I/O cycles of the SD card.

If you have a lot of sensors which rapidly change, and are storing these in the logger, and maybe in InfluxDB, you’ll likely find that the SD cards wear out faster than you might expect.
It depends a bit on luck, picking a good “high-quality” SD card, and managing your system to limit excessive writes, but I’ve seen SD cards last anywhere from a few weeks to a few years.

1 Like

Not for HassOS.

If you really want to do this, install raspbian lite and docker and then a generic linux install for Hass.io. Works great.

3 Likes

I agree that HassOS really should be made USB bootable. Being forced to use a device as unreliable as an SD card for booting and the database is undesirable from the point of view of reliability. Automation and security both need to be reliable. USB memory sticks, SSD’s and hard disks are a much better option than an SD Card.
The ability to install Addons with one click is attractive, which is why, after a lot of frustration with HassOS, all caused by filesystem (SDcard) problems, I will switch to Raspbian with Hass.io installed on top, on a USB connected SSD.

1 Like

Would love to see this as well. Just gave up setting hass.io up based on Raspbian. It was above my head.

1 Like

You only need to run about 6 lines of code, it’s really not hard to follow. Copy-paste this.

Install Raspbian as normal, log into terminal/putty and… sudo apt-get update && sudo apt-get upgrade -y and then reboot once this has finished.

Next, log into terminal/putty;

sudo -i
apt-get install software-properties-common -y
add-apt-repository universe
apt-get update
apt-get install apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat -y
curl -fsSL get.docker.com | sh
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s -- -m raspberrypi3

That’s it, Hass.io will take 20mins or so to start up and you are away. This guide is in the install section of the HA website also.

edit: the -- -m raspberrypi3 dictates to install to a RPi 3, if your Pi is Pi2, adjust accordingly.

4 Likes

Hi Jason,

thank you for taking the time to help me out here.

I tried that and if I remember correctly I had the following issues with this approach:

Docker CE is not available for Raspian Buster. See this post:

I think I then run into this issue described here:

And then I browsed this page to fix another issue:

I finally had hass.io up and running but finally failed installing the deCONZ add-on. It always said “This add-on is not available”. I think I was not able to make my Conbee II stick available to the docker container I guess.

Happy to give it another try. Perhaps I made some simple mistakes along the way.

I just need to know how to make the USB stick available and/or install the deCONZ add-on. Then I would be fine.

Use Rasbian Stretch until Buster has been updated. Just this week I did a fresh install using the above method on an RPi3 running Stretch. Running perfectly. Buster is not needed (unless you are using a Pi4)

1 Like

Thanks Jason, I wanted to try this as well, but I could not find this image. Could you point me to the download page?

Edit: I think I found it:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2019-04-09/

Here you go. This torrent is direct from the Raspberry Pi website.

https://downloads.raspberrypi.org/raspbian/images/raspbian-2019-04-09/2019-04-08-raspbian-stretch.zip.torrent

1 Like

Thanks Jason, I made it work.

I documented the full process for anyone interested:
https://www.amalytix.com/en/home-assistant-with-conbee-ii-deconz-xiaomi-aqara-and-hass-io-from-scratch/#Installing_Hassio_on_a_SSD

The command add-apt-repository universe does not apply to Rasbian IMHO. I just left it out.

Thanks again for your tip to try Stretch and the adjusted command how to run the hass.io install script to make it work on a Raspberry.

4 Likes

Happy to help, glad you got it working.

hi, your tutorial looks very detailed, but what do you mean by the following?:

After flashing the SSD you need to login to your Raspberry Pi:

How to you flash and SSD (or a pen drive?)

Basically you download any image and use e.g. the balenaEtcher (for Mac) tool for put it on your hard drive. balenaEtcher normally works for USB sticks or SSD cards only but with some settings you can use it for SSDs too. Just be careful here to not accidentally wipe your main disk.

I think you are all going to have to bear in mind that any device has a number of write cycles (read cycles don’t seem to affect stuff much)
So most fails are (in order) : -

  1. SD cards (followed pretty closely by)
  2. USB Sticks (then a respectable gap to)
  3. SSD’s (followed by a truly significant gap (orders of magnitude))
  4. Hard disk

We are awaiting new solid state Hard disks based on varistors (I think that’s the term) the technology is available but they say being scaled down and tested (come on guys, that was 4 or 5 years ago). This ‘should’ extend cycles beyond hard disks (and maybe we can drop the ‘disk’ bit by then too) and no moving parts (like some of the current weaker options).
Whilst we wait : -
Reduce your write cycles
Most ‘drives’ (also refers to the motor spinning the disk) include wear evening, so it tries to ensure the ‘disk’ is worn out all at once (as it fails). This is why HA recommends a much larger card than you need, to spread the wear out.
So what do you use all those logs and history for ?
Turn off everything, then enable only for what you ‘need’ (not ‘want’, there’s a difference).
Buy a good quality ‘drive’ and treat it with respect, and it will be with you longer.
The devs hear your requests but they are constrained by meeting a reasonable price point for the ‘average’ user.
In the interim @kanga_who ('s excellent and continually updated guides) are able to help many people push the current envelope.
There are also guides on turning off history/logging and also for enabling specifics (it does help with debugging, but I’ve turned it all off)
My $0.02 anyway

1 Like

thanks … will try it out and will let you know how it goes

can you provide more details on the following?

Make sure you added your SSH key before.

Please check the link in the same section. There this is explained: