Am 20.12.2016 um 01:35 schrieb Bertho Stultiens:
> On 12/20/2016 01:10 AM, Gene Heskett wrote:
>> What has been other raspi users experience?  Is a sandisk crap?
> The *biggest* problem is a read/write file-system on an SD card. That
> kills about any cards within 1..3 months for me (especially when local
> logging is enabled). I normally have a R/O fs and remote logging.
> Everything else is in ramfs.

That's true. The same problem goes or ssd hard drives on the pc as well.
So some of the solutions for ssd's are also good for sd cards on the
rpi. Use of a ramdisk for directories like /tmp or /var/log is a good
idea because these are normally the most frequent written directories on
linux.

For the /tmp dir there is already a prepared systemd script which also
works on the rpi. Just execute the following commands which i found here
[1]:
sudo cp /usr/share/systemd/tmp.mount /etc/systemd/system/
sudo systemctl enable tmp.mount

For /var/log i didn't found a ready solution and wrote my own script. It
makes /var/log a ramdisk and copies the content at boot/shutdown from/to
a permanent directory /var/permanentlog so i don't loos all the logs. A
Cronjob also synchronizes the content every hour. If you are interested
you can try it out but the description is only in german on my wiki [2].
I use the script on my main PC and on my 24/7 RPI camera and it works
quite good. :)

Ciao,
     Rainer

[1]
https://wiki.debian.org/SSDOptimization#Reduction_of_SSD_write_frequency_via_RAMDISK

[2]
https://quakeman.mooo.com/wiki/doku.php?id=wissen:linux:ramdisk#var_log_in_eine_ramdisk_verlegen

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to