Bug 71181

Summary: Wish: Check disk/quota space on startup
Product: [I don't know] kde Reporter: Dik Takken <kde>
Component: generalAssignee: Thiago Macieira <thiago>
Status: RESOLVED FIXED    
Severity: wishlist CC: bugseforuns, finex, glua, nate, travier
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dik Takken 2003-12-24 16:34:16 UTC
Version:            (using KDE KDE 3.1.94)
Installed from:    Compiled From Sources
OS:          Linux

When KDE loads, it needs disk space. When the user is out of diskspace, KDE fails to load. It just freezes half-way the startup sequence, or jumps back to KDM. 

The only way for the user to fix his account is to switch to a textmode console and clean up. 

As we should not assume the user to be able to do this, KDE should check for disk space on startup, and offer to clear personal icon/thumbnail/web/font caches and any temporary files the user may have.
Comment 1 Thiago Macieira 2003-12-24 18:13:25 UTC
How much disk space does KDE need to run? In what filesystems?
Comment 2 Waldo Bastian 2003-12-24 23:23:54 UTC
We need a few free blocks to create communication sockets and to store ICE authentication information. Mostly in the home directory and in /tmp I guess.

Cachable data is stored in /var/tmp these days, so it will depend on how the file system has been mounted whether cleaning that up would help.
Comment 3 Thiago Macieira 2003-12-25 05:41:39 UTC
Yes, sure, if the user is at the limit or over the quota, KDE won't start, that's for sure. That's something easy to do and to check (touch a file from the script; abort if failed -- also checks for a Read-Only home).

But then we'll have those users who have 4 kB free and still can't get KDE to start and will start complaining. We don't have a number of how much free space KDE requires to start in every system, in every setup.
Comment 4 Thiago Macieira 2003-12-25 15:47:03 UTC
Take a look at Bug #71206 (closed for other reasons) for an example of possible free-space check. It would seem Red Hat did it in their scripts, so we could maybe use their ideas.

(And do it right the first time, of course)
Comment 5 Danny Allen 2006-08-30 20:28:30 UTC
Seems to be a genuine concern, so confirming as a "bug".
Comment 6 FiNeX 2008-05-05 15:51:37 UTC
A disk/quota space check could be useful!
Comment 7 Médéric Boquien 2008-11-09 04:34:44 UTC
Hello,

Any news regarding this wish?

Thanks.
Comment 8 Dominik Haumann 2015-08-02 10:01:47 UTC
No complete solution for logging into KDE, but for Plasma 5, there will probably be a plasmoid called "Disk Quota", which - once added to the panel or systray - continuously tracks disk quota restrictions. It displays the quotas and warns the user if the quota is about to be reached. For further details, see here: http://kate-editor.org/2015/08/02/plasma-5-keeping-an-eye-on-the-disk-quota/

This Disk Quota plasmoid has nothing to do with a full hard disk, though. So it most certainly is only useful in networked installations (companies, universities, enterprise).
Comment 9 Nate Graham 2020-09-28 23:55:49 UTC
This is done now.
Comment 10 Nate Graham 2020-09-29 04:28:59 UTC
*** Bug 290778 has been marked as a duplicate of this bug. ***
Comment 11 Patrick Silva 2020-09-29 13:53:57 UTC
Which version fixes this?
I tried to start Plasma session on neon unstable without free space in root partition and my system just got stuck at login screen without any feedback.

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.20.80
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.0