DietPi on SD card gets corrupted after some weeks of use

Required Information

  • DietPi version | 10.0
  • Architecture | aarch64
  • SBC model | Raspberry Pi Zero 2 W
  • Power supply used | Ugreen USB Charger 17W
  • SD card used | Netac 32GB A1 uSD

Hi All, I’m trying to use my Raspberry Pi Zero 2 W as a Pihole server but after some weeks (2-3 weeks in general) the OS gets corrupted and I need to format the SD card with a fresh install of DietPi.

Initially I would leave the RPi running all the time without reboot but that resulted in corruption faster then with a daily reboot.

What I tried to do to prevent this from happening is to do a daily reboot with fsck check running at the start (enabled it tune2fs) to check for possible corruption but it wasn’t able to recover.

I’m trying to understand whether my SD card is just too cheap to be used for OS workloads and I should by for a new one, or if it is damaged and should be replaced or something else is the culprit.

I doubt the charger since it has plenty of room for powering a RPi Zero 2 W (or maybe I’m wrong?).

Now I’m wondering if I should try make the rootfs R/O but I’m not sure it can prevent corruption if the SD is that bad.

Thanks to anybody that can help clarify my doubts.