Article View: comp.sys.raspberry-pi
Article #204Re: Reliable sd card (or alternative) for Pi Zero 2W
From: The Natural Philosopher
Date: Thu, 03 Dec 2026 11:42
Date: Thu, 03 Dec 2026 11:42
48 lines
3379 bytes
3379 bytes
On 03/12/2026 10:55, Chris Green wrote: > druck <news@druck.org.uk> wrote: >> On 01/12/2026 12:45, The Natural Philosopher wrote: >>> On 01/12/2026 11:27, Chris Green wrote: >>>> my software comprises one python script. Yes, I know Python >>>> takes space but not **that** much and since it's just the one script it >>>> will just be sitting static in memory (or swap) and not moving about. >>> >>> What kills SD is writing to them especially when nearly full. >>> >>> Its not your scripts, its things like eystemd and other logs that insist >>> on splatting superfluous data into log files. >> I keep forgetting how bad the out of the box configuration of Raspberry >> Pi OS has become. By default journald (part of systemd) will spam >> everything to binary files on the card. >> >> I re-enable rsyslog to keep manageable text logs, and set journald to >> only log to memory. >> >> Edit /etc/systemd/journald.conf so you only have these lines uncommented. >> >> Storage=volatile >> RuntimeMaxUse=32M >> RuntimeMaxFileSize=8M >> RuntimeMaxFiles=4 >> ForwardToConsole=no >> ForwardToWall=no >> > I do this on **all** my systems, not just on Pis, using tools I know > (e.g. grep etc.) is much simpler than having to learn journalctl's > options. It also reduces the space used because journalctl's defaults > are ridiculous except for large servers. > I think this is one of the best things, apart from noatime on the SSDS that one can do. IF you have a persistent problem easy enough to rte-enable disk logs A pi that is doing embedded stuff shouldnt need to write anything apart from its config, to the disk. If it needs more a ramdisk mostly suffices -- Religion is regarded by the common people as true, by the wise as foolish, and by the rulers as useful. (Seneca the Younger, 65 AD)
Technical Details
Message-ID:
<11erkjd$8sio$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<0dh2um-0ht8.ln1@q957.zbmc.eu> <11em637$1gp8a$1@dont-email.me> <7hn2um-66g9.ln1@q957.zbmc.eu> <11emfh9$1k2r7$5@dont-email.me> <11erchc$4s30$1@druck.eternal-september.org> <reu7um-fu6j.ln1@q957.zbmc.eu>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: The Natural Philosopher <tnp@invalid.invalid> Newsgroups: comp.sys.raspberry-pi Subject: Re: Reliable sd card (or alternative) for Pi Zero 2W Date: Thu, 3 Dec 2026 11:42:37 +0000 Organization: A little, after lunch Lines: 48 Message-ID: <11erkjd$8sio$1@dont-email.me> References: <0dh2um-0ht8.ln1@q957.zbmc.eu> <11em637$1gp8a$1@dont-email.me> <7hn2um-66g9.ln1@q957.zbmc.eu> <11emfh9$1k2r7$5@dont-email.me> <11erchc$4s30$1@druck.eternal-september.org> <reu7um-fu6j.ln1@q957.zbmc.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 03 Dec 2026 11:42:38 +0000 (UTC) Injection-Info: dont-email.me; logging-data="291416"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/N/nNblWHuZGjKXK0JAig0/ba4D/aBTuo="; posting-host="a4ed94ea8e771f5ecea466e9a1f0a3f0" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:YI46kgmlkBvBW4mhV0RlsRXsovo= sha256:a5o9ydZvMDgijz+dqiXmxcr79CszXGwUhdlnbjZ866A= sha1:+iRwKQ7Aly7Aany2wTQsvzSNNc4= sha256:vqotka8Vy8/RqTeDELbhNMbFiD0gBW8z6Hmsb7oWnnU= Content-Language: en-GB In-Reply-To: <reu7um-fu6j.ln1@q957.zbmc.eu>