• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] Re: 40 GB Partition fast voll

A

Anonymous

Gast
Mir aufgefallen dass meine Partition, worauf sich Leap 42.1 befindet (40GB Größe ext4 /dev/sda), nur noch 10GB freien Speicher hat.
Kann da etwas gelöscht werden, wie unter Windows, eine Art Bereinigung? Oder anderweitige Tipps, mit denen Datenmüll entfernt werden kann. Weiterhin ist die SSD (120GB OCZ) seit einiger Zeit etwas "lahm" beim Seitenaufbau (Chrome & Firefox), wenns ins Internet geht. Bin dankbar für alle Ratschläge.
 

josef-wien

Ultimate Guru
http://linux-club.de/forum/viewtopic.php?f=90&t=121466#p776303
http://linux-club.de/wiki/opensuse/Tipp%3A_systemd-tmpfiles
 
OP
A

Anonymous

Gast
Moin Josef,
Danke.
Code:
Passwort: 
linux-oem5:~ # du -xh / | grep "[0-9],[0-9]G" | sort
linux-oem5:~ # find / -xdev -type f -size +1G -printf "%k\t%p\\n" | sort -g
linux-oem5:~ #
Davon http://linux-club.de/wiki/opensuse/Tipp%3A_systemd-tmpfiles lasse ich meine Finger weg, weil: Davon sehr viel wenig Ahnung :D

Gerade nachgesehen: Mein .tmp Ordner hat 19.1 GB ... :( Kann ich diese Dateien & Ordner darin alle löschen (kann schon, aber ohne dass ich anschließend Probleme mit dem 42.1 habe)?
 

josef-wien

Ultimate Guru
du hat bei Dir wohl ein anderes Ausgabeformat. Was ergibt als root:
Code:
du -xh / | grep "[0-9][.,][0-9]G" | sort
 
OP
A

Anonymous

Gast
Code:
Passwort: 
linux-oem5:~ # du -xh / | grep "[0-9][.,][0-9]G" | sort
1.4G    /usr/src
1.7G    /var
2.2G    /usr/share
2.6G    /usr/lib64
7.0G    /usr
linux-oem5:~ #
Habe eben via Suche das gefunden, aber das schaut bei mir alles etwas anders aus, unter
Code:
/etc/sysconfig/cron
Code:
Da gibt es:
MAX_DAYS_IN_TMP=
oder:
CLEAR_TMP_DIRS_AT_BOOTUP=
http://linux-club.de/forum/viewtopic.php?t=71382 (auch schon von 2006 ...)

Unter
Code:
/etc/sysconfig/cron
steht bei mir
Code:
DELETE_OLD_CATMAN
auf yes und
Code:
CATMAN_ATIME
auf 7
 

admine

Ultimate Guru
cerberos schrieb:
http://linux-club.de/forum/viewtopic.php?t=71382 (auch schon von 2006 ...)
Das ist eben schon 'ne Weile her und funktioniert seit "systemd" nicht mehr.
Du wirst um "systemd-tmpfiles" nicht umhinkommen.
 
OP
A

Anonymous

Gast
Habe das nun mal geändert, ob es funzt, das sehe ich nach dem Neustart :D (also bis gleich, oder später ...)
Code:
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# See tmpfiles.d(5) for details

# Clear tmp directories separately, to make them easier to override
# SUSE policy: we don't clean those directories
d /tmp 1777 root root 2d
d /var/tmp 1777 root root 7d

# Exclude namespace mountpoints created with PrivateTmp=yes
x /tmp/systemd-private-%b-*
X /tmp/systemd-private-%b-*/tmp
x /var/tmp/systemd-private-%b-*
X /var/tmp/systemd-private-%b-*/tmp
 
OP
A

Anonymous

Gast
Also: Alles gut ;) Das http://linux-club.de/wiki/opensuse/Tipp%3A_systemd-tmpfiles war die Lösung :D
Habe nochmals die Änderungen kontrolliert, und auch gespeichert. Nach Neustart nun 10 GB genutzte und 30 GB freie Partition.
Die tmp ist nun auf 195,6 MB geschrumpft.

Danke noch mal.
 
Oben