// shall I write some keywords here to boost search engine ranking?

Monday, August 26, 2019

Offload your SSD (on Windows) and SD Card (on Linux)

As many of us aware, both SSD and SD Card wearing out upon write operation. So to extend life span of the storage, we may look into reduce the write operation.

(With wear leveling, most modern SSD have lifespan that is long enough where you might want to skip this post. But no harm to know something new, right ?)

For SSD, you may consider putting the Windows's TEMP folder into a RAM disk. RAM disk, as the name implies, it is a virtual drive that reserve and utilise the space on your RAM. There are many RAM disk software out there, and I'm using ImDisk's RamDisk Configuration.

You can define the space of the RAM disk, and set the TEMP folders to the RAM Disk with this tool:

(ImDisk RamDisk Configuration)


For SD Card that store your OS (i.e. Raspberry Pi), we will put the `/var/log` on RAM with log2ram. This will make the logs stay in RAM and only flush to storage once a day by default (configurable).

After done installation and reboot your Raspberry Pi, you shall see the screen below:

(log2ram: new mounting point after installation and restart)
This shall extend the lifespan of your SD Card.

Thanks for reading.

No comments: