TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: CHRIS ELVIDGE
date: 2021-03-20 14:01:00
subject: Re: Maximising SD Card Li

On 20/03/2021 11:22 am, mm0fmf wrote:
> I've used Pi's since as soon as I could buy them but I've never run one
> 24/7 before so I'd like to ensure I've done sufficient to maximise SD
> Card life.
>
> All this PI does is sit accepting SSH connections and acts as a gateway
> to allow tunnelling or SOCKS5 proxying.  It also lets me send WOL magic
> packets to other local computers to wake them up so I don't need to
> leave those computers running 24/7. That's all working fine.
>
> However, I'd like to maximise the SC Card life where possible so I have
> mounted a few places onto tmpfs to minimise writes to the card. I have a
> couple of cron jobs running that tickle the dynamic DNS provider and
> another that reboots the Pi every 24 hours as a crude and simple way of
> ensuring not the tmpfs log space doesn't fill.
>
> The following are mounted onto tmpfs:
>
> tmpfs on /tmp type tmpfs (rw,nosuid,noatime,size=102400k)
> tmpfs on /var/spool/mqueue type tmpfs
> (rw,nosuid,noatime,size=30720k,mode=700,gid=12)
> tmpfs on /var/tmp type tmpfs (rw,nosuid,noatime,size=30720k)
> tmpfs on /var/log type tmpfs (rw,nosuid,noatime,size=102400k,mode=755)
>
> There is no swap running as all this does is SSH connection handling.
>
> I have plenty of old small (8Gb) SD Cards to replace the one in use but
> I don't want to have to be copying a new one more often than needed.
>
> Is there anything else that really needs doing or is this sufficient?
>
>

If you can, put the root filesystem on a USB connected thumbdrive or SSD.


--
Chris Elvidge
England

--- 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™.