For the second time my sd Card is DEAD.
I see in the doc than an Application Class 2 is better, never ear about that before (mine are just HC 1).
Is that really make a difference ?
Is it really reliable for long term ?
An other idea is to install HassIO on an other hardware than a raspberry, but I’m not really familiar with linux, I’ve already install and use some linux, but I can’t solve complex install problem with it.
what do you think is the best way ? I really don’t want to reinstall hassio and reconfigure stuffs every 6 month
The longest lifespan cards are Industrial ones. The next longest lifespan will be ones designed for dashcams and similar.
Everything else is about performance, not lifespan.
The best way is personal, but running on a NUC removes SD cards from the list of possible problems. Though, if you’re having to reconfigure things it suggests you’ve not been taking snapshots regularly, or you’ve not been copying them off the Pi automatically.
I have snapshot, but (last times I have do that), the secrets file was not in the snapshot, (now I have save it separately) and just after install I don’t remember all, but I have do different thinks before reinstall the snapshot.
i also have a Synology, but it seems than it is not so simple to use hassio on a Synology (mine is an old one, I think my rbpi is more powerful lol)
You think A2 card will also be dead after a few months ?
For the moment, I have no sd card in stock, so i need to buy one before the rest lol
It entirely depends on why they’re getting killed. If it’s because of the amount of data you’re logging in the database then look to excluding noisy entities you don’t care about (like sun.sun). If it’s the amount of information being logged in the log file you can limit the logging too.
You can also, with some effort, move the Docker containers to a USB attached drive, and that should largely solve your problem. So far I’ve not seen anybody document that in a step by step guide though. You’d need to to the following in the HassOS host:
Attach a USB drive, format it (ext4), and mount it somewhere convenient (/mnt/)
Stop all the add-ons and containers, then clone them (cd /usr/share/hassio; find . -depth -print | cpio -pdm /mnt)
Update /etc/fstab to mount that drive on /usr/share/hassio - I’d recommend using the UUID
Reboot and see if you got it all right
I don’t use HassOS, it’s possible some of those commands (particularly cpio) may not exist.
For the last two and a half years I’ve effectively been using Hassbian (it was the old All-in-one installer, but the result was the same). That’s Raspbian with Home Assistant in a Python virtual environment. My main instance is now running on a VM, again with a Python virtual environment, but my Z-Wave is still on the old instance for now.