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

Leap 42..(teilweise gelöst) Partition voll

dzug

Guru
Hei:
Wie schon in" Root Partition voll "geschrieben kann man tmp auch beim Start bereinigen.
Das geht, wie im Wiki ,für mich sehr kompliziert vonstatten.
Da habe ich nichts Verstanden.
Gibt es ein script welches man runterladen kann?
Was dann für einen "Doofen" wie mich händelbar ist.
Danke im Voraus.
Gruss dzug.
 
Hier ist das Löschen der Tmp Ordner gut beschrieben => https://linux-club.de/wiki/opensuse/Tipp:_systemd-tmpfiles

dzug schrieb:
Gibt es ein script welches man runterladen kann?
Noch nicht geschrieben. Vielleicht findet sich aber jemand der es kann.

Grüße Heinz-Peter
 
OP
D

dzug

Guru
Danke Heinz-Peter.
Das was in dem Link steht das ist für mich zu kompliziert.
Gruss dzug.
 
OP
D

dzug

Guru
Hier:
Code:
peter@linux-PlatteC-sda2-openSUSE-Leap-42:~> su
Passwort: 
linux-PlatteC-sda2-openSUSE-Leap-42:/home/peter # ls -al /etc/tmpfiles.d/
insgesamt 16
drwxr-xr-x   2 root root  4096 11. Apr 01:34 .
drwxr-xr-x 125 root root 12288 29. Apr 15:26 ..
linux-PlatteC-sda2-openSUSE-Leap-42:/home/peter #
und jetzt?
Gruss dzug.
 

Sauerland

Ultimate Guru
Als root:
Code:
echo '# Clear tmp directories separately, to make them easier to override' > /etc/tmpfiles.d/tmp.conf
Code:
echo '# SUSE policy: we don't clean those directories' >> /etc/tmpfiles.d/tmp.conf
Code:
echo 'd /tmp 1777 root root 2d' >> /etc/tmpfiles.d/tmp.conf
Code:
echo 'd /var/tmp 1777 root root 7d' >> /etc/tmpfiles.d/tmp.conf

Beachte im ersten Befehl nur 1x >, in den anderen 3 Befehlen immer 2x >>. Daher bitte Kopieren und in die Konsole einfügen........
Wenn ausgeführt, melden und posten:
Code:
cat /etc/tmpfiles.d/tmp.conf
 
OP
D

dzug

Guru
Danke Sauerland für die Anweisung.
Ich werde das mal wie Du Geschrieben hast in die Konsole eingeben.
Mir Schwant trotzdem etwas zur Neuinstallation.
Ich melde mich.
Gruss dzug.
 
OP
D

dzug

Guru
So.
Ausgeführt.
Passiert ist nix.
Code:
peter@linux-PlatteC-sda2-openSUSE-Leap-42:~> su
Passwort: 
linux-PlatteC-sda2-openSUSE-Leap-42:/home/peter # echo '# Clear tmp directories separately, to make them easier to override' > /etc/tmpfiles.d/tmp.conf
linux-PlatteC-sda2-openSUSE-Leap-42:/home/peter # echo '# SUSE policy: we don't clean those directories' >> /etc/tmpfiles.d/tmp.conf
> echo 'd /tmp 1777 root root 2d' >> /etc/tmpfiles.d/tmp.conf
> echo 'd /var/tmp 1777 root root 7d' >> /etc/tmpfiles.d/tmp.conf
> cat /etc/tmpfiles.d/tmp.conf
>
Danke.
Gruss dzug.
Nachtrag:
Code:
peter@linux-PlatteC-sda2-openSUSE-Leap-42:~> su
Passwort: 
linux-PlatteC-sda2-openSUSE-Leap-42:/home/peter # cat /etc/tmpfiles.d/tmp.conf
# Clear tmp directories separately, to make them easier to override
linux-PlatteC-sda2-openSUSE-Leap-42:/home/peter #
Da habe ich keine Ahnung von.
 
Es ist was verkehrt gelaufen.
Nochmal als root an der Konsole
Code:
echo '# SUSE policy: we don't clean those directories' >> /etc/tmpfiles.d/tmp.conf
Hier die Erklärung dazu: In die Datei /etc/tmpfiles.d/tmp.conf wird die Zeile # SUSE policy: we don't clean those directories dazu geschrieben.
 
OP
D

dzug

Guru
Als Root in der Konsole:
Code:
peter@linux-PlatteC-sda2-openSUSE-Leap-42:~> su
Passwort: 
linux-PlatteC-sda2-openSUSE-Leap-42:/home/peter # echo '# SUSE policy: we don't clean those directories' >> /etc/tmpfiles.d/tmp.conf
>
Dann die Konsole geschlossen.
???
Danke und Gruss dzug.
 
OP
D

dzug

Guru
Hier:
Code:
peter@linux-PlatteC-sda2-openSUSE-Leap-42:~> su
Passwort: 
linux-PlatteC-sda2-openSUSE-Leap-42:/home/peter # cat /etc/tmpfiles.d/tmp.conf
# Clear tmp directories separately, to make them easier to override
linux-PlatteC-sda2-openSUSE-Leap-42:/home/peter #
Das hatte ich schon mal.
Danke nochmals.
Gruss dzug.
 
Das hatte ich schon mal.
Ja. Die zweite Zeile # SUSE policy: we don't clean those directories wird nicht dazu geschrieben. Ich weiß nicht , warum?
Wir versuchen anders.
Als root an der Konsole
Code:
cp /usr/lib/tmpfiles.d/tmp.conf /etc/tmpfiles.d/tmp.conf
Wenn das gemacht hast dann zeigt mir die Ausgabe von
Code:
cat /etc/tmpfiles.d/tmp.conf
 
OP
D

dzug

Guru
Hier:
Code:
peter@linux-PlatteC-sda2-openSUSE-Leap-42:~> su
Passwort: 
linux-PlatteC-sda2-openSUSE-Leap-42:/home/peter # cp /usr/lib/tmpfiles.d/tmp.conf /etc/tmpfiles.d/tmp.conf



linux-PlatteC-sda2-openSUSE-Leap-42:/home/peter # cat /etc/tmpfiles.d/tmp.conf
#  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
q /tmp 1777 root root -
q /var/tmp 1777 root root -

# 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
linux-PlatteC-sda2-openSUSE-Leap-42:/home/peter #
Danke.
Trotzdem:Keine Ahnung.
Gruss dzug.
 
Als root Dolphin aufmachen und im Verzeichnis /etc/tmpfiles.d/ die Datei tmp.conf mit der rechten Maustaste anklicken und mit Kwrite öffnen.
Klappt das bei Dir? Noch nichts machen, nur ausprobieren.
 

josef-wien

Ultimate Guru
Heinz-Peter schrieb:
Ich weiß nicht , warum?
Das Zeichen ' kommt im Befehl dreimal vor. Das zweite Vorkommen beendet den ersten Teil des Textes, aber nachdem das Zeichen ein drittes Mal vorkommt, wartet die shell vorerst vergeblich auf das vierte Mal (und tut das durch > kund). Damit wird wieder einmal bewiesen, daß man Befehle vorher ausprobieren sollte.
 
OP
D

dzug

Guru
Danke an Alle welche mir Ihre Aufmerksamkeit gegeben haben.
Es wird mir zu Kompliziert.
Die Frage kommt daher weil yast2 zum Update installieren keinen Platz mehr gefunden hat.
Ich habe mir zeit genommen und die Updates in kleinen Portionen installiert.
Nun hat yast2 komischerweise Platz.
Gruss dzug.
 
Oben