openSUSE 13.2 Out-of-space-on-root

posted Apr 9, 2015, 8:31 AM by Niels Jensen
If you run out-of-space on root with openSUSE 13.2, then your system will boot, but X will not start. So your graphical desktop will not appear. This happened ones to us, and almost a second time. The second occurrence have resulted in cleaning up the major temporary file areas /tmp and /var/tmp. However, to avoid the situation in the future we have implemented a procedure for cleaning these directories on reboot, which usually happens daily.

This is accomplished by copying the file tmp.conf from /usr/lib/tmpfiles.d to /etc/tmpfiles.d and editing the tmp.conf in the /etc/tmpfiles.d directory by changing the end of the lines for the /tmp and /var/tmp directories from '-' to '1d'. This means any files older than 1 day will be deleted on a reboot.

Al alternative to this procedure would be to move /tmp - and possibly also /var/tmp to tmpfs, which is currently being discussed in several linux fora.