Hacker News new | ask | show | jobs
by pmontra 1277 days ago
> writing permanent its log files and swap partition

If this is the problem, the solutions are no swap and log2ram https://github.com/azlux/log2ram

I also noticed that Armbian logs to a ramdisk. I didn't investigate the implementation and if its contents survive a reboot.

The only real problems for me are that the SD card will eventually fail no matter what (I mean, much sooner than a SDD or HDD) and that there are basically no Pis at sale at a reasonable price. As a platform it is nearly dead.

3 comments

I have mostly relied on SSD over USB for my RPi stuff, which takes up more space... With the price hikes on RPi 8GB, I've started just getting the small intel boxes N5000/6000 series mostly, since the cost became not much different than RPi + encloser + power anyway.

Thinking about trying to sell my 3x RPi 4b 8gb in DeskPi cases with ~480gb ssds while prices are still pretty inflated.

They also have a built-in ramdisk overlay, which basically solves the problem (so long as you don't need persistence!)
I use this in a little raspberry pi project. For persistence, I occasionally copy data to a writable partition and then at boot, after the ram overlay is mounted, I copy it back.
This seems like a bug in the SSD firmware? I should be able to write zillions of times to the same logical sector, they don't map 1:1 to physical blocks on the flash.

I've also run tons of RPis off of SSD root and never had this problem. I hear about it constantly though, so maybe it's urban legend?