Article View: comp.sys.raspberry-pi
Article #166Re: Reliable sd card (or alternative) for Pi Zero 2W
From: The Natural Philosopher
Date: Tue, 01 Dec 2026 12:45
Date: Tue, 01 Dec 2026 12:45
47 lines
3205 bytes
3205 bytes
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. 1. If you are swapping, turn off swap. If there isn't enough memory rewrite your code in something efficient like 'C' or buy a bigger Pi 2. make sure no atimes are added to partitions. mount noatime in /etc/fstab 3. Stop all logging possible, and what cannot be stopped feed to a ram disk you create. Mine is /var/ramlog. There will be an irreducible residue in /var/log, but that's life There are utilities that can be installed to monitor and track disk activity. Your target should be zero writes at all, ever *unless* you want to preserve some moveable data between boots Hopefully that suppresses uneccesary wear levelling as well. Treat the SD care as a ROM that can occasionally be tweaked here is a systemd config edit ## fuck with shitsemd sed -i "s/#Storage=auto/Storage=volatile/" /etc/systemd/journald.conf sed -i "s/#RuntimeMaxUse=/RuntimeMaxUse=25M/" /etc/systemd/journald.conf sed -i "s/#ForwardToConsole=yes/ForwardToConsole=no/" /etc/systemd/journald.conf sed -i "s/#ForwardToWall=yes/ForwardToWall=no/" //etc/systemd/journald.conf Remember a Pi Zero is not a full blown linux computer and there is much that can safely be uninstalled or turned off. Use ps to see what is running and investigate why it is use find to find any files that are being modified Write it all down so you have s script to run for a fresh install -- "Nature does not give up the winter because people dislike the cold." ― Confucius
Technical Details
Message-ID:
<11emfh9$1k2r7$5@dont-email.me>Path:
mbox-mo1.pugleaf.net!srv.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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.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: Tue, 1 Dec 2026 12:45:28 +0000 Organization: A little, after lunch Lines: 47 Message-ID: <11emfh9$1k2r7$5@dont-email.me> References: <0dh2um-0ht8.ln1@q957.zbmc.eu> <11em637$1gp8a$1@dont-email.me> <7hn2um-66g9.ln1@q957.zbmc.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 01 Dec 2026 12:45:29 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1706855"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GZ8LSOH5DMROfZoZ5UatKrLNm6ZzZLrc="; posting-host="cbbf3a0586150e847c39f2139b6f2376" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:rp1wU5Xj2zHCz3RzTLNVngMBeX4= sha256:CkpqrW00Av/t14BGD6glkPifYGfM921uxdZNHmGSOho= sha1:TF1YS45HaA7jtM6otNiTDKOr/RU= sha256:KiePmRKEj0RDSx2ooSGRgqkROrio/RVVT/oUHcx6MhU= Content-Language: en-GB In-Reply-To: <7hn2um-66g9.ln1@q957.zbmc.eu>