This might be (or not be) the right topic/group but hope you guys can help me out.
I started using Home assistant through hass.io and am very pleased with how it works up till now, unfortunately I installed it on a 8gb sd-card and it’s starting to run out of storage space (!!!) I’ve got a 32gb SD-card and know how to make an image of the current installation and afterwards place that image onto the bigger sd-card but will Hass.io manage the new filesize automatically?
I know the commands through the raspberry pi but since ssh access is very limited on hass.io (which I kind of dislike tbh and custom installation loses the hassio handyness) I’m not sure if it will even be worth the trouble.
I’ve got all my configurations backed-up but i’m quite sure that not everything i put in configuration.yaml is used for (as an example) the other libraries like duckdns/google assistant etc and tbh I really really reaaaallly don’t feel like reinstalling these
Use win32diskimager to clone (in win32 will said read) 16gb , file save is ***.img file (during insert the sd card to your computer, there will be popup said to format sd card, click cancel (not format).
Use SD Memory Card Formatter to format (full) to new 32gb sd card.
Use Etcher to write the ***.img (from 16gb) to 32gb sd card.
Put in your rp3. open putty do the sudo raspi-config to change the extension file size (I cannot remember the subject, probably advance).
Sorry for my bad english. I have done this with 8gb to 16gb, 16gb to 32gb. Works perfect.
So any idea on how to make the snapshots i’ve seen mentions of this while searching the documentation but can’t find how to actually pull it off… Found references to it here:
Where it states: Can I restore a snapshot on a different device? Yes, any Hass.io snapshot can be restored on any device. with no links whatsoever
can’t find anything in configuration panels regaring backup/snapshots nor in the hass.io panel, I did find hassio.snapshot_full in the services panel but i’ve got no clue on how to use that command …
Oh while writing i Found someone telling me it’s hidden under “…” on the right side of hass.io I never would have thought to look there since there actually nothing in the gui with such functionality… oh well the more you know, might be nice to see this better documented (and if it is better linked on for instance the mentioned first page that shows up when googling for the feature)
Thanks to you all will give this a try later today
So guys/gals. I made a backup, copied that to my desktop then created a new sd-card with the latest hassio image and apparently had to reinstall the samba server to put back the backup (fair enough). but the backup would not show up even after a full reboot and waiting several minutes to ensure it got recognized…
Nothing, thus I made a new backup, removed that one and gave my backup the filename of the newly generated backup. It seems that configuration files have been restored but not the hass.io plugins… The file is over 84mb thus I guess there is more then only the yaml files in there (and surely if the yaml files what hte only thing I could backup/restore i’m sure there wouldn’t be a snapshot feature just a copy/paste tutorial) so what am I missing…
P.s. Port number has been changed and also seems that there are certificates installed from duckdns but that’s about it…
Got it! renaming was hte issue after a few reboots, refresh clicks etc the backup appeared under the original filename and the import ran! Not sure why the filename change was an issue though (confused-sad-faced-smiley)
I am using HASSIO. I made an image of my 8 GB card and restored it to a 32 GB. It works fine but obviously is still using only 8 GB. Any way to make HASSIO use the full 32 GB (extend partition?).
For those saying “does not work”, please be more specific on what is not working and why
AFAIK any linux filesystem can be expanded given you enter the right commands.
I needed to do this recently. I did not have enough free space on the SD card to do a backup (took a while to figure this out because there is no error message).
I cloned the sd-card to a larger card using dd on linux. On first boot with the new card back in the pi it expanded the partitions to the full card size.
The command line steps to do this with from another linux machine.
Put the old SD card in a card reader.
Work out the device name (with the mount command or sudo parted -l), for me it was /dev/sdf
Unmount each partition sudo umount /dev/sdf1, sudo umount /dev/sdf2, …
Clone old card to an image file (note we clone the whole card /dev/sdf rather than the partitions /dev/sdf1, … )
I know this is years later, but the easiest way I can think of is to clone with Balena Etcher on Windows then after you confirm it worked, use DiskPart to properly wipe and repartition the SD card so they don’t have conflicitng IDs