TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ARELIGIOUS REPUBLICAN
from: JAVIER
date: 2019-10-27 16:42:00
subject: Re: Destruction of SD car

Areligious Republican  wrote:
> I read somewhere (forgotten where) yesterday that the SD card in a
> RPi malfunctions because log files (which nobody reads anyway)
> wear out the write count on the card and so one has to keep
> a stock of SD cards to hands with the OS already on.

Years ago they used to advocate to disable logging entirely for SSDs
to prolong SSD life.

    systemctl stop systemd-journald.service
    systemctl mask systemd-journald.service

SSDs have gotten better and probably this is not necessary anymore.

Other tweaks are mounting / with the noatime option (default in Raspbian)
and using tmpfs as much as you can.

Raspbian default of /tmp not being in tmpfs is not good for wear&tear.
Putting this in /etc/fstab should correct it.

    tmpfs   /tmp    tmpfs   nodev,nosuid,size=50%      0  0

Compiling or broser profiles is something you may want to do in
tmpfs, for performance and SD life.

    HOME=$(mktemp -d) firefox

Also Raspbian's default of swap file in the SD card is not a good idea.
I'd disable it or put the swapfile somewhere outside the SD card, like an
external spinning HD.

http://ideaheap.com/2013/07/stopping-sd-card-corruption-on-a-raspberry-pi/
https://github.com/MrChrisJ/fullnode/issues/20

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.