• Re: Are Pi Zeros more fussy about SD cards than other Pis?

    From druck@news@druck.org.uk to comp.sys.raspberry-pi on Sat Aug 8 00:29:37 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 04/08/2026 10:15, Chris Green wrote:
    E.g. how do you stop systemd's logging from writing to 'hard' disk?
    It would need a **lot** of reconfiguration before it would use a
    reasonable amount of space such as is available on a RAM drive.

    Here are the important lines of /etc/systemd/journald.conf

    [Journal]
    Storage=volatile
    RuntimeMaxUse=32M
    RuntimeMaxFileSize=8M
    RuntimeMaxFiles=4
    ForwardToConsole=no
    ForwardToWall=no


    That will log to RAM only, a maximum of 32M in up to 4 files, so it
    should automatically prune 25% when it gets full, but I'm often having
    to do it manually with:-

    journalctl --vacuum-files 3

    Maybe there are versions of the OS that are optimised for minimal disk writing, if so I'd like to know about them.

    It's the config that needs to be optimised.

    ---druck


    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Chris Green@cl@isbd.net to comp.sys.raspberry-pi on Sat Aug 8 08:59:09 2026
    From Newsgroup: comp.sys.raspberry-pi

    druck <news@druck.org.uk> wrote:
    On 04/08/2026 10:15, Chris Green wrote:
    E.g. how do you stop systemd's logging from writing to 'hard' disk?
    It would need a **lot** of reconfiguration before it would use a
    reasonable amount of space such as is available on a RAM drive.

    Here are the important lines of /etc/systemd/journald.conf

    [Journal]
    Storage=volatile
    RuntimeMaxUse=32M
    RuntimeMaxFileSize=8M
    RuntimeMaxFiles=4
    ForwardToConsole=no
    ForwardToWall=no


    That will log to RAM only, a maximum of 32M in up to 4 files, so it
    should automatically prune 25% when it gets full, but I'm often having
    to do it manually with:-

    journalctl --vacuum-files 3

    That last rather spoils things, I'm expecting the systems in question
    to run for months (at least) without any intervention from me.

    ... and systemd's journalling isn't the only thing that writes, it was
    just the first thing that I thought of (hence the 'E.g.').
    --
    Chris Green
    ·
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From The Natural Philosopher@tnp@invalid.invalid to comp.sys.raspberry-pi on Sat Aug 8 12:25:23 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 08/08/2026 00:29, druck wrote:
    On 04/08/2026 10:15, Chris Green wrote:
    E.g.  how do you stop systemd's logging from writing to 'hard' disk?
    It would need a **lot** of reconfiguration before it would use a
    reasonable amount of space such as is available on a RAM drive.

    Here are the important lines of /etc/systemd/journald.conf

    [Journal]
    Storage=volatile
    RuntimeMaxUse=32M
    RuntimeMaxFileSize=8M
    RuntimeMaxFiles=4
    ForwardToConsole=no
    ForwardToWall=no


    That will log to RAM only, a maximum of 32M in up to 4 files, so it
    should automatically prune 25% when it gets full, but I'm often having
    to do it manually with:-

    journalctl --vacuum-files 3

    Maybe there are versions of the OS that are optimised for minimal disk
    writing, if so I'd like to know about them.

    It's the config that needs to be optimised.

    ---druck


    +1. And this actually works
    --
    “But what a weak barrier is truth when it stands in the way of an hypothesis!”

    Mary Wollstonecraft

    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From The Natural Philosopher@tnp@invalid.invalid to comp.sys.raspberry-pi on Sat Aug 8 12:27:52 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 08/08/2026 08:59, Chris Green wrote:
    druck <news@druck.org.uk> wrote:
    On 04/08/2026 10:15, Chris Green wrote:
    E.g. how do you stop systemd's logging from writing to 'hard' disk?
    It would need a **lot** of reconfiguration before it would use a
    reasonable amount of space such as is available on a RAM drive.

    Here are the important lines of /etc/systemd/journald.conf

    [Journal]
    Storage=volatile
    RuntimeMaxUse=32M
    RuntimeMaxFileSize=8M
    RuntimeMaxFiles=4
    ForwardToConsole=no
    ForwardToWall=no


    That will log to RAM only, a maximum of 32M in up to 4 files, so it
    should automatically prune 25% when it gets full, but I'm often having
    to do it manually with:-

    journalctl --vacuum-files 3

    That last rather spoils things, I'm expecting the systems in question
    to run for months (at least) without any intervention from me.

    I haven't done mine manually. Ever.

    ... and systemd's journalling isn't the only thing that writes, it was
    just the first thing that I thought of (hence the 'E.g.').

    Well that was where a ramdisk is handy to replace /var/log

    There is a command that looks at real I/O calls to e.g. disk drives. It should return zero ponce you achieve Nirvana...
    --
    “But what a weak barrier is truth when it stands in the way of an hypothesis!”

    Mary Wollstonecraft

    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From druck@news@druck.org.uk to comp.sys.raspberry-pi on Mon Aug 10 19:06:57 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 08/08/2026 08:59, Chris Green wrote:
    druck <news@druck.org.uk> wrote:
    That will log to RAM only, a maximum of 32M in up to 4 files, so it
    should automatically prune 25% when it gets full, but I'm often having
    to do it manually with:-

    That last rather spoils things, I'm expecting the systems in question
    to run for months (at least) without any intervention from me.

    ... and systemd's journalling isn't the only thing that writes, it was
    just the first thing that I thought of (hence the 'E.g.').

    Exactly why I wish systemd would FOAD!

    ---druck

    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From The Natural Philosopher@tnp@invalid.invalid to comp.sys.raspberry-pi on Mon Aug 10 19:21:30 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 10/08/2026 19:06, druck wrote:
    On 08/08/2026 08:59, Chris Green wrote:
    druck <news@druck.org.uk> wrote:
    That will log to RAM only, a maximum of 32M in up to 4 files, so it
    should automatically prune 25% when it gets full, but I'm often having
    to do it manually with:-

    That last rather spoils things, I'm expecting the systems in question
    to run for months (at least) without any intervention from me.

    ... and systemd's journalling isn't the only thing that writes, it was
    just the first thing that I thought of (hence the 'E.g.').

    Exactly why I wish systemd would FOAD!

    ---druck


    Trust me, it can be done
    systenmd does NOT carry on logging. My system is up months at a time and
    I never need to manually shrink it

    Everything else is a matter of picking through anything that logss an
    either diverting it to a RAM disk at configuration level, or symlinking
    is entry in /var/log to a ramdisk
    It takes time and the thing you may well lack, patience.
    --
    Labour - a bunch of rich people convincing poor people to vote for rich
    people by telling poor people that "other" rich people are the reason
    they are poor.

    Peter Thompson

    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.sys.raspberry-pi on Tue Aug 11 00:03:39 2026
    From Newsgroup: comp.sys.raspberry-pi

    On Mon, 10 Aug 2026 19:06:57 +0100, druck wrote:

    On 08/08/2026 08:59, Chris Green wrote:

    ... and systemd's journalling isn't the only thing that writes, it
    was just the first thing that I thought of (hence the 'E.g.').

    Exactly why I wish systemd would FOAD!

    Ironically, it’s the one thing you can configure to work exactly the
    way you want.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Jim Jackson@jj@franjam.org.uk to comp.sys.raspberry-pi on Tue Aug 11 07:33:18 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 2026-08-11, Lawrence D?Oliveiro <ldo@nz.invalid> wrote:
    On Mon, 10 Aug 2026 19:06:57 +0100, druck wrote:

    On 08/08/2026 08:59, Chris Green wrote:

    ... and systemd's journalling isn't the only thing that writes, it
    was just the first thing that I thought of (hence the 'E.g.').

    Exactly why I wish systemd would FOAD!

    Ironically, it???s the one thing you can configure to work exactly the
    way you want.

    As long as its the systemd way :-)

    Actually linux has always been very configurable the way you want,
    probably too configurable, because the plethora of options/alternatives
    etc can put people off.




    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Stephan Elinghaus@seli@spamgourmet.com to comp.sys.raspberry-pi on Tue Aug 11 12:49:34 2026
    From Newsgroup: comp.sys.raspberry-pi

    Chris Green <cl@isbd.net> schrieb:
    I'd welcome any recommendations for cards that last well.

    Since I began using industrial grade cards (e.g. Kingston industrial) I
    never had any issues with a defective card any more. Those cards may
    not be the fastest, but they have proven to be very reliable.
    --
    [place signature here]
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.sys.raspberry-pi on Wed Aug 12 01:25:45 2026
    From Newsgroup: comp.sys.raspberry-pi

    On Tue, 11 Aug 2026 07:33:18 -0000 (UTC), Jim Jackson wrote:

    On Tue, 11 Aug 2026 00:03:39 -0000 (UTC), Lawrence D’Oliveiro wrote:

    Ironically, it’s the one thing you can configure to work exactly
    the way you want.

    As long as its the systemd way :-)

    The “systemd way” lets you send the logging wherever you want. Want it
    all to go to rsyslog? Send it there. Then you can blame rsyslog for
    eating your SD-card, not systemd.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Jim Jackson@jj@franjam.org.uk to comp.sys.raspberry-pi on Thu Aug 13 16:55:03 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 2026-08-12, Lawrence D?Oliveiro <ldo@nz.invalid> wrote:
    On Tue, 11 Aug 2026 07:33:18 -0000 (UTC), Jim Jackson wrote:

    On Tue, 11 Aug 2026 00:03:39 -0000 (UTC), Lawrence D???Oliveiro wrote:

    Ironically, it???s the one thing you can configure to work exactly
    the way you want.

    As long as its the systemd way :-)

    The ???systemd way??? lets you send the logging wherever you want.

    Oh dear you took it waaayyy too seriously! I never said it couldn't! I
    merely meant that, in the bits you edited out, that you could even
    Before Systemd "configure [it] to work exactly the way you want". But obviously I touched one of your buttons, as you did mine :-)


    And to be more on topic, I'd suggest to the original poster, that having
    a local syslog log server is useful. Configure your RPi machine to send
    the log entries to that. No SD writes and the logs are there even if the
    SD card gets corrupt for other reasons.


    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.sys.raspberry-pi on Thu Aug 13 23:29:10 2026
    From Newsgroup: comp.sys.raspberry-pi

    On Thu, 13 Aug 2026 16:55:03 -0000 (UTC), Jim Jackson wrote:

    I merely meant that, in the bits you edited out, that you could even
    Before Systemd "configure [it] to work exactly the way you want".

    As I recall, the original complaint was about logfiles shortening the
    life of SD cards. How would this have helped?
    --- Synchronet 3.21e-Linux NewsLink 1.2