0 disk space - PureOS won't boot gnome -what I did

The /dev/sda1/ got out of space so pureos couldn’t start gnome 3.38.5
Blame flatpak telegram.desktop package automatic media download.

I press Ctrl-Alt-F2 to get tty access with my user and password

 $ df -h 
 /dev/sda1 size 14G  Used 14G avail 0%  use 100% Mounted on /

$  flatpak uninstall -all

10 items to uninstall

ID,Branch,Op
1.  org.freedesktop.Platform.GL.default, 23.08, r
2.  org.freedesktop.Platform.GL.default, 23.08-extra,r
3.  org.freedesktop.Platform.VAAPI.Intel,23.08,r
4.  org.freedesktop.Platform.ffmpeg-full,23.08,r
5.  org.telegram.desktop,stable,r	
6.  org.freedesktop.Platform,23.08,r
7.  org.freedesktop.Platform.Locale,23.08,r
8.  org.freedesktop.Platform.openh264,2.2.0,r
9.  org.telegram.desktop.webview,stable,r
10. org.telegram.desktop.Locale,stable,r

after which

$ df -h

Filesystem, Size, Used, Avail, Use%, Mounted on

/dev/sda1, 14G, 13G, 1.2G, 92%, /

Deleting data from telegram.desktop

$ flatpak uninstall --delete-data
 Delete data for org.telegram.desktop?[y]

take its time…

now

$ df -h

Filesystem, Size, Used, Avail, Use%, Mounted on
/dev/sda1, 14G, 13G, 1.2G, **93%**, /

$ poweroff

reboot…

done! It works now!

Recover more space

sudo journalctl --disk-usage 

Archived and active journals take up 928.3M in the file system.

You rotate the logs to archive them with

sudo journalctl --flush --rotate

To clear out by size to keep the last 200 mb of logs an wipe everything else:
sudo journalctl --vacuum-size=200M

this two commands in one line:

sudo journalctl --flush --rotate --vacuum-size=200M

Now you have freed 720.3M

$ df -h
Filesystem, Size, Used, Avail, Use%, Mounted on

/dev/sdb1 14G 12G 1,7G 88% /

2 Likes

I prefer to tame the journal on an ongoing basis by editing /etc/systemd/journald.conf

3 Likes