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?
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.
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?
BY: mm0fmf(3:770/3)
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.
Not sure what Pi you have, but if it's a 4, have you thought about going with USB instead of SD card? I've currently got my BBS running on a RPi 4 with everything on a USB drive. 128 GB flash drive the size of my thumbnail plugged
into one of the USB 3.0 ports. Works fine, and I don't have to worry about read/write cycles.
-Craig
BY: mm0fmf(3:770/3)
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.
Not sure what Pi you have, but if it's a 4, have you thought about going with USB instead of SD card? I've currently got my BBS running on a RPi 4 with everything on a USB drive. 128 GB flash drive the size of my thumbnail plugged
into one of the USB 3.0 ports. Works fine, and I don't have to worry about read/write cycles.
-Craig
I'm just curious: What makes a Flash memory on an USB interface
more durable than a Flash memory on a SD card?
BY: mm0fmf(3:770/3)
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.
Not sure what Pi you have, but if it's a 4, have you thought about going with USB instead of SD card? I've currently got my BBS running on a RPi 4 with everything on a USB drive. 128 GB flash drive the size of my thumbnail plugged
into one of the USB 3.0 ports. Works fine, and I don't have to worry about read/write cycles.
On 19.3.21 23.03, Craig Dooley wrote:
BY: mm0fmf(3:770/3)
I've used Pi's since as soon as I could buy them but I've never runone
24/7 before so I'd like to ensure I've done sufficient to maximise SDNot sure what Pi you have, but if it's a 4, have you thought about
Card life.
going with
USB instead of SD card? I've currently got my BBS running on a RPi 4
with
everything on a USB drive. 128 GB flash drive the size of my
thumbnail plugged
into one of the USB 3.0 ports. Works fine, and I don't have to worry
about
read/write cycles.
-Craig
I'm just curious: What makes a Flash memory on an USB interface
more durable than a Flash memory on a SD card?
I'm just curious: What makes a Flash memory on an USB interface
more durable than a Flash memory on a SD card?
On 2021-03-19, Craig Dooley
<nospam.Craig.Dooley@f126.n123.z1.fidonet.org> wrote:
BY: mm0fmf(3:770/3)
I've used Pi's since as soon as I could buy them but I've never runone m> 24/7 before so I'd like to ensure I've done sufficient to
maximise SD m> Card life.
Not sure what Pi you have, but if it's a 4, have you thought about
going with USB instead of SD card? I've currently got my BBS running
on a RPi 4 with everything on a USB drive. 128 GB flash drive the size
of my thumbnail plugged into one of the USB 3.0 ports. Works fine, and
I don't have to worry about read/write cycles.
It's flash whether the interface is SD or USB - there is a write limit!
BY: Tauno Voipio(3:770/3)
I'm just curious: What makes a Flash memory on an USB interface TV>more durable than a Flash memory on a SD card?
I'm not really sure. it's my understanding that SD cards will wear out because of read/write cycles eventually. I've never heard that said of
a USB flashdrive. But I'm not an expert on either.
Dana Sat, 20 Mar 2021 11:42:38 +1300, Craig Dooley <nospam.Craig.Dooley@f126.n123.z1.fidonet.org> napis'o:
BY: Tauno Voipio(3:770/3)
I'm not really sure. it's my understanding that SD cards will wear out because
I'm just curious: What makes a Flash memory on an USB interface
more durable than a Flash memory on a SD card?
of read/write cycles eventually. I've never heard that said of a USB
flashdrive. But I'm not an expert on either.
I've got few of USB flash drives that died. Or got read only.
BY: Tauno Voipio(3:770/3)
I'm just curious: What makes a Flash memory on an USB interface
more durable than a Flash memory on a SD card?
I'm not really sure. it's my understanding that SD cards will wear out because
of read/write cycles eventually. I've never heard that said of a USB flashdrive. But I'm not an expert on either.
It sounds like you usage is a fit for running with the root file system readonly
On 20/03/2021 11:35, Jim Jackson wrote:
It sounds like you usage is a fit for running with the root file system
readonly
Thanks. I found an article from 2016 about making root read only FS for
a Pi. I'll give that a test run tomorrow and see how it goes.
On 19/03/2021 21:03, Craig Dooley wrote:
BY: mm0fmf(3:770/3)
I've used Pi's since as soon as I could buy them but I've never runone
24/7 before so I'd like to ensure I've done sufficient to maximise SDNot sure what Pi you have, but if it's a 4, have you thought about
Card life.
going with
USB instead of SD card? I've currently got my BBS running on a RPi 4
with
everything on a USB drive. 128 GB flash drive the size of my
thumbnail plugged
into one of the USB 3.0 ports. Works fine, and I don't have to worry
about
read/write cycles.
-Craig
I meant to say it's a Pi Zero W but forgot.
On 20/03/2021 11:35, Jim Jackson wrote:
It sounds like you usage is a fit for running with the root file system
readonly
Thanks. I found an article from 2016 about making root read only FS for
a Pi. I'll give that a test run tomorrow and see how it goes.
Dana Sat, 20 Mar 2021 11:42:38 +1300, Craig Dooley <nospam.Craig.Dooley@f126.n123.z1.fidonet.org> napis'o:
BY: Tauno Voipio(3:770/3)
I'm not really sure. it's my understanding that SD cards will wear out because
I'm just curious: What makes a Flash memory on an USB interface
more durable than a Flash memory on a SD card?
of read/write cycles eventually. I've never heard that said of a USB
flashdrive. But I'm not an expert on either.
I've got few of USB flash drives that died. Or got read only.
On 20/03/2021 14:28, mm0fmf wrote:
On 19/03/2021 21:03, Craig Dooley wrote:I wouldn't worry about it.
BY: mm0fmf(3:770/3)
I've used Pi's since as soon as I could buy them but I've neverrun one
24/7 before so I'd like to ensure I've done sufficient to maximise SD >>> m> Card life.Not sure what Pi you have, but if it's a 4, have you thought about
going with
USB instead of SD card? I've currently got my BBS running on a RPi 4
with
everything on a USB drive. 128 GB flash drive the size of my
thumbnail plugged
into one of the USB 3.0 ports. Works fine, and I don't have to worry
about
read/write cycles.
-Craig
I meant to say it's a Pi Zero W but forgot.
I have 10 Pi zeros working 24/7 as CCTV cameras.
Each day they record between 1-5GB of new images recovering space by
removing images that are a few days old.
The SD cards (32GB) wear out every 3 or 4 years.
mm0fmf <none@invalid.com> wrote:
On 20/03/2021 11:35, Jim Jackson wrote:
It sounds like you usage is a fit for running with the root file system
readonly
Thanks. I found an article from 2016 about making root read only FS for
a Pi. I'll give that a test run tomorrow and see how it goes.
The "PiCore" version of Tiny Core Linux runs on the Pi with the core
system entirely in RAM. It should be possible to have that boot from
a read-only partition, though it might be easiest to remount it
read-only after booting to avoid modifying the boot scripts.
By remastering PiCore with all your required software "built-in" it
would be possible to run everything in RAM and unmount the SD card
entirely after boot.
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)
I'm just curious: What makes a Flash memory on an USB interface
more durable than a Flash memory on a SD card?
On 20/03/2021 11:22, mm0fmf wrote:
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)
The problem with /var/log on /tmp is you have no clue as to what has
gone wrong when there is a problem and you have to reboot. You can set
up syslog to log to another computer, but this wont help if problems are
due to network issues.
---druck
I'm just curious: What makes a Flash memory on an USB interface
more durable than a Flash memory on a SD card?
The only other thing I do these days is to buy as big an SD card as I
can. That's 32 GB now (I don't know whether the RPi or the PC I use for imaging would take 64 GB).
David Taylor <david-taylor@blueyonder.co.uk.invalid> wrote:
The only other thing I do these days is to buy as big an SD card as I
can. That's 32 GB now (I don't know whether the RPi or the PC I use for
imaging would take 64 GB).
So far as the Pi goes there shouldn't be any worries up to 256GB,
and higher for the Pi 3 and later.
https://www.raspberrypi.org/documentation/installation/sd-cards.md
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 371 |
Nodes: | 16 (2 / 14) |
Uptime: | 36:48:56 |
Calls: | 7,932 |
Calls today: | 2 |
Files: | 12,998 |
Messages: | 5,805,537 |