New install on a 32Gb SD card only used 2Gb

I’ve just created a new install for my Pi3 as my previous SD card seems to have become corrupted. For some reason the image has only unpacked to a 2Gb file leaving 30Gb of the recommended 32Gb disk unused.

What is the point of recommending a 32Gb disk if the image is only going to create 2Gb of partitions and how do I resize the hassos-data partition to use the remaining space?

When the system boots for the first time it will expand the file system to use the whole SD card.

Ah, of course. Sorry, I should have considered that :frowning:
While you’re here, do you know the best way to restore my previous set up from my old sd card? I’ve made a copy of the whole Supervisor folder but I’m not sure what I should copy back. Or should I just import one of the backups?
Thanks for your help.

It was a long time since i did something like that but then I just restored from a backup, if I remember correctly.

Did you take a snapshot (stored off pi) ?

I have a few snapshots, yes. Last one is from December, but I’ll take that over nothing.

Yep that’s the best you can do if the card is corrupted.
You ‘may’ be able to mount it under Linux and try to run a repair, possibly getting a few recent yaml files back but I wouldn’t hold out much hope (I hope I’m wrong though)
(you could then apply the yaml’s over the snapshot (make sure they are clean first) and that may assist in rebuilding your most recent config back)

The card isn’t totally corrupted. I’ve made a backup of the entire supervisor folder.

Building on from this…
My pi seems to not be booting or at least I’m not able to connect at all. Attempting to re-build from fresh Home Assistant OS install but the card is showing as 2GB and therefor not enough space to flash… It’s a 32gb card. Any advice?
Thanks,
Matt