MoinMoin Logo
  • Kommentare
  • Geschützte Seite
  • Menu
    • Navigation
    • AktuelleÄnderungen
    • SeiteFinden
    • ÜbersichtsKarte
    • Help
    • HilfeInhalt
    • HilfeZurMoinWikiSyntax
    • Anzeige
    • Dateianhänge
    • Info
    • Rohform
    • Druckansicht
    • Editieren
    • Laden
    • Speichern
  • Anmelden

Navigation

  • AktuelleÄnderungen
  • SeiteFinden
  • HilfeInhalt
Revision 8 vom 2020-11-17 15:10:03
  • Raspberry SD-Karte schonen

Raspberry SD-Karte schonen

/var/log in eine RAMDisk auslagern:

In die /etc/fstab schreiben:

tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=50M 0 0

Jetzt noch das varlog-Script aus diesem Thread umsetzen! (Siehe Dateianhänge an dieser Seite)

cat >> /etc/logrotate_varlog.conf << "EOFCONF"
# see "man logrotate" for details
# rotate log files weekly
#daily

# keep 4 weeks worth of backlogs
rotate 7

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
compress

# Logs are moved into directory for rotation
olddir /var/archive

# packages drop log rotation information into this directory
#include /etc/logrotate.d

/var/log_save/journal/8c5604e85c924195aef34a3e4079998d/system.journal {
    missingok
    notifempty
}

# system-specific logs may be configured here

EOFCONF

Swap abschalten:

systemctl disable dphys-swapfile


KategorieRaspberry

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01