Disc filling up

Hi, I am new to Mycroft.
I am using a Raspberry 3 with a 64 Gb USB Stick.
After installation and leaving it alone the last days it seems to fill up /dev/root for no reason. It is using 45Gb on root partition now. Checking with df it says that the root partition is filled up 94%.

Any suggestions why Mycroft is doing this and how I can free disc space?

Hi @Olivia_La_Moto and welcome to this great comunity of Mycroft :slight_smile:

I dont see that behavior on any of my Picrofts

(.venv) pi@picroft:/opt/mycroft/skills $ df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root       59881944 6206692  51830984  11% /
devtmpfs         1867792       0   1867792   0% /dev
tmpfs            1999888       0   1999888   0% /dev/shm
tmpfs            1999888  213420   1786468  11% /run
tmpfs               5120       4      5116   1% /run/lock
tmpfs            1999888       0   1999888   0% /sys/fs/cgroup
tmpfs              20480       8     20472   1% /ramdisk
/dev/mmcblk0p1    258095   53926    204170  21% /boot
tmpfs             399976       4    399972   1% /run/user/1000
(.venv) pi@picroft:/opt/mycroft/skills $ 

Can you see any big files or folders filling up with something new and unexpected ?

you could try look for .core files that would be memory dumps when kernel crashes.

It could also be your USB stick that is failing.

1 Like

Seems very likely there’s another issue going on that definitely needs some investigating/fixing.

ive seen reports of log files pilling up before reaching hundreds of MB, maybe worth checking?

I find the du command useful for pinpointing what is taking up all the space in a filesystem. It stands for ‘disk usage’ and you can set the depth of recursion using the -d flag so

du -hd 1 provides a list of the directories in your current path and a “human friendly” representation of their disk usage eg:

42G	    ./var
110M	./boot

Piping that to sort quickly shows you the largest directory.
du -hd 1 | sort -h

1 Like

Another method here is to run

ls -lat /dev/root

This will show you which files have been most recently modified, in case there is an errant process writing to a file or a directory.


Think I have done a mistake when checking the size… lol
Have done df -h and it shows me that /dev/root has only a size of 4.8G. Actually it is filled with 4.3G.