Hard disk getting full

I have been using Endless for about 2 years now and i am very happy with it so far.
Lately though i have been getting messages saying my hard disk is almost full. This is weird since there is next to nothing installed on my pc.
I cant find a way to free up space. any ideas?
eos-diagnostic-210406_225006_UTC 0200.txt (942,9 KB)

  1. Open the application called ‘Terminal
  2. In this application run the command:
eos-updater-ctl update
flatpak update --appstream && flatpak update -y


At first i would check which installed applications are eating up your space. Use the following script for it:


export TOTAL=0

while read -r line;
    APPID=$(echo $line | awk '{print $1}')
    BRANCH=$(echo $line | awk '{print $2}')
    NAME=$(echo $line | awk '{$1="";$2=""; print}' | cut -b 3-)    
    echo $APPID \(${NAME}\)
    # get size of flatpak
    SYS_SIZE=$(echo "scale=0; $(flatpak info --show-size ${APPID}//${BRANCH})/1048576"  | bc)
    let TOTAL=$TOTAL+$SYS_SIZE    
    echo "    Installed: ${SYS_SIZE} MiB"    
    # get size of user data for flatpak if there is any
    if [ -d ~/.var/app/${APPID} ]; then
        USR_SIZE=$(echo "scale=0; $(du --max-depth=1 -h ~/.var/app/${APPID}  | tail -1 | awk '{print $1}')/1024" | bc)
        if [ ${USR_SIZE} -gt 0 ]; then
            echo "    User:      ${USR_SIZE} MiB"
            let TOTAL=$TOTAL+$SYS_SIZE
done <<< $(flatpak list --columns=app,branch,name)

echo "Total size: ${TOTAL} MiB"

To use it, copy it to a new file like size.sh in your home directory, then open a Terminal and execute:

chmod +x ~/size.sh

It will output the size of every application installed including it’s hidden data size in your home directory, something like:

io.atom.Atom (Atom)
    Installed: 629 MiB

net.fsuae.FS-UAE (FS-UAE)
    Installed: 58 MiB
    User:      5 MiB

Check through every application to see if there is anything eating up space which you dont need and uninstall it in this case.

Unused files from an OS Upgrade

There are situations when files no longer are in use after some upgrades to the OS. Use the following commands to delete them:

sudo ostree admin cleanup
sudo ostree prune

Doing that as we speak. Getting a message “this computer has only 0 byte diskspace left”. Though the command is still downloading so we’ll see what it does i guess.

Update: That worked. Freed up 5.6gb, thanks a lot!

That gave back “No unreachable objects”. I have a solution though, thanks a lot!