# How can microSD flash memory wear be minimized?

**URL:** <https://www.thethingsnetwork.org/forum/t/how-can-microsd-flash-memory-wear-be-minimized/15896>\
**Category:** Raspberry Pi Gateways\
**Created:** [July 14, 2018, 9:25am UTC](https://www.thethingsnetwork.org/forum/t/how-can-microsd-flash-memory-wear-be-minimized/15896 "2018-07-14T09:25:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Ryanteck](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ryanteck/32/26318_2.png) [@Ryanteck](https://www.thethingsnetwork.org/forum/u/Ryanteck)\
**Post date:** [July 14, 2018, 9:38am UTC](https://www.thethingsnetwork.org/forum/t/how-can-microsd-flash-memory-wear-be-minimized/15896/2 "2018-07-14T09:38:58Z")

</div>

There’s a few bits of discussion on the DietPi forums at [https://dietpi.com/phpbb/viewtopic.php?t=2794](https://dietpi.com/phpbb/viewtopic.php?t=2794) , Diet Pi is a lightweight OS Image which has some tweaks such as logging to RAM as easy to enable features.

The other alternative I know of is [https://github.com/ali1234/rpi-ramdisk](https://github.com/ali1234/rpi-ramdisk) , this with the right compiling and configuration loads the entire OS into RAM. I’ve been wondering about creating a gateway image using this as this should be the most reliable as the SD Card can even be taken out once booted.

There’s some discussion about them at [https://duckduckgo.com/?q=ramdrive&sites=raspberrypi.org%2Fforums&HTTPS=1&kj=%23c51a4a&ia=web](https://duckduckgo.com/?q=ramdrive&sites=raspberrypi.org%2Fforums&HTTPS=1&kj=%23c51a4a&ia=web)

With logs I think it varies on what you want, I don’t log the packet forwarder data and haven’t had to look at any of the other linux logs.

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/how-can-microsd-flash-memory-wear-be-minimized/15896)._
