this post was submitted on 09 Oct 2023
1220 points (96.4% liked)

Technology

59030 readers
2943 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
 

This is AFTER debloating all the MS bs as much as I can.

The amount of MS telemetry is just mindboggling.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 12 points 1 year ago (5 children)

I stopped using my Pihole because it kept eating SD cards. If that wasn't an issue would love to be using it still.

[–] [email protected] 13 points 1 year ago (2 children)

I can recommend Log2Ram for that. It logs to RAM and only writes to the SD card once a day (or more/less, if you choose).

It's a must while using PiHole imo.

Link to guide

[–] [email protected] 10 points 1 year ago

You formatted your links as images. Markdown uses ![...](...) for images, [...](...) for links.

[–] [email protected] 1 points 1 year ago

I appreciate the links to log2Ram. I'll try when I get a new pi.

[–] [email protected] 9 points 1 year ago (1 children)

I've recently read about how to fix corrupted SD-cards in Raspberry Pis. Corruption can happen when the Pi is unexpectedly losing power during a write to the SD card.

To avoid corruption, you can change the (boot partition of the) SD to read-only, requiring either USB storage (flash/HDD/SSD) or a writable secondary partition on the SD card) if you need to save anything locally. The system itself will run fine without write access. Only your files could be at risk if you lose power mid-write.

You can also configure your system to boot from USB storage instead of SD card. Keeping the system partition read-only is probably still a good idea, if possible in your setup.

Modern versions of raspi-config offer a similar read-only overlayFS functionality out of the box! sudo raspi-config, go to Advanced Options, then enable the Overlay FS: Enable/Disable read-only filesystem feature.

Source: Shane S. @ https://raspberrypi.stackexchange.com/questions/7978/how-can-i-prevent-my-pis-sd-card-from-getting-corrupted-so-often

[–] [email protected] 2 points 1 year ago

It wasn't ever an issue of power or corruption. It was hitting the rewrite limit of the SD card itself. I had it on a UPS with my other network equipment and maintained a 100% uptime other than intentional outages with clean reboots. Literally wrote so much log info the card would die. You could still read the card but writing would no longer function.

The suggestion to do a read-only setup would be optimal, I'd prefer it be ram based though as I wouldn't have such dire need of logs that losing them during a power cycle would cause me any grief.

[–] [email protected] 5 points 1 year ago

I had that issue too. Had to switch to running it on my NAS.

[–] [email protected] 3 points 1 year ago (1 children)

I'm wondering what could have caused that. Uneven power supply maybe? My pihole has been chugging away for years without much more than the occasional update when I remember.

[–] [email protected] 5 points 1 year ago

SD cards have a write limit. I don't know what to tell you other than I probably had more shit being written.

[–] [email protected] 2 points 1 year ago

High endurance rated cards are good for that. Don't risk using the cheap SD cards