No disk space and now HA won't start

I just restarted HA and without noticing it didn’t have any disks pace left (64gb SD, rpi3). So now HA won’t start. Can’t get to SSH, samba or anything. Can’t read SD on my windows pc. And the Linux reading tools on windows only let me read the files but not delete them. So now what I’m just out of luck? Have to reinstall everything?

Grab a Linux live CD and boot your pc off that. Alternatively install Linux in a virtual machine on the windows box.

Using the Linux system, Read the SD card and copy some snapshots (or whatever is taking up all the space) over to another drive. Then delete those files off the SD card.

2 Likes

Thank you I will try that

My HA is running on a 64gb SD card with the DB history moved to a Nas (recorder config) and only 4 snapshots of 200mb each. So what could be draining the disk space?

There’s some advice here on how to find out:

Thank you for your advice. I removed a file taking up 55gb. A querylog.json file from adguard. So thank you. I will find a way to stop letting that log fill up so much.

And yes my hassio is up and running again. Many thanks

1 Like

Yikes! Worth reporting that as an issue, asking for the log file size to be limited if there is no existing provision to do so.

I found a setting to limit it (by days) maximum was 90 days. So put it down to 7. DNS logs take a heck lot of space XD. Let’s see if this sorts it out in the future.

1 Like

Hello. I am having a similar problem.
I have Home Assistant installed on a RPi4 and 120Gb SSD external disk.

I accessed the SSD using a Ubuntu live USB, and found out that my home-assistant.log file is >100Gb.
The problem is that I don’t have permission to delete the file.
I already made a copy, but cannot get the write permissions to delete.

Tried using the terminal, but the user is ubuntu@ubuntu and cannot change to root.
Can anyone help on how can I get root access to the SSD files or at least manage to change the permissions on the homeassistant folder that allows me to delete the log file?

Thanks in advance

Admin users should have permission for this.

How did you install home assistant?

Is this an unsupported supervised installation on Ubuntu?

Only Debian is supported.

Thanks for your reply. My instalation was done on a RPi4 with an external SSD with a USB adaptor. I cannot access HA via web browser, so I followed the suggestion you gave earlier on this post, and booted my windows desktop with a live USB of ubuntu, connected the SSD to my desktop and was able to browse the disk. However, I don’t have write permissions to erase the file, and when I choose to acess via the ubuntu terminal, the user is “ubuntu@ubuntu”, and the file owner is “root”.

I have very limited linux knowledge unfortunately. I tried to search online on how to change permissions with chown, but it says I don’t have permission, and I can’t seem to change the user on the terminal from ubuntu to root. May it be because I am using a live USB on windows?

Thanks in advance

Not sure how I missed this:

Sorry.

Even using sudo?

This thread pop as the first answer for that issue so I’ll drop my two cents in,

in my case, it was some unused docker volume that did the thing.

What I did was boot on a liveCD, mount the partition on mnt (mount /dev/sda8 /mnt) and check in that folder what was taking this amount of space (du -sh /mnt/*)

I discovered it was /mnt/docker/volumes (or something alike)

I did restart in homeassistant and luckily I add the portainer agent addon installed so I was able to manage the docker part this way.

I did remove all the unused volume and managed to grab back almost my whole disk

I think the volume was linked to zonemapping that I did remove (but it didn’t empty the volume or maybe it was from an old backup I restored, not sure.

Hope it’ll help some people to find their way out of this