# DietPi on SD card gets corrupted after some weeks of use

**URL:** <https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002>\
**Category:** Troubleshooting\
**Created:** [26 February 2026 09:41 UTC](https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002 "2026-02-26T09:41:12Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheGuga96](https://dietpi.com/forum/user_avatar/dietpi.com/theguga96/32/8788_2.png) [@TheGuga96](https://dietpi.com/forum/u/TheGuga96)\
**Post date:** [26 February 2026 09:41 UTC](https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002/1 "2026-02-26T09:41:12Z")

</div>

#### 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.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [26 February 2026 13:29 UTC](https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002/2 "2026-02-26T13:29:58Z")

</div>

> [@TheGuga96](#):
>
> Now I’m wondering if I should try make the rootfs R/O

This usually leads to other problems, as services then no longer start properly. That would certainly not be a solution.

If I were you, I would try a high-quality SD card. Cheap or old SD cards can cause this kind of error.

---

<div class="post-metadata">

**Author:** ![TheGuga96](https://dietpi.com/forum/user_avatar/dietpi.com/theguga96/32/8788_2.png) [@TheGuga96](https://dietpi.com/forum/u/TheGuga96)\
**Post date:** [26 February 2026 13:49 UTC](https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002/3 "2026-02-26T13:49:29Z")

</div>

I’ve found some guides on how to do it but if the problem comes from the reliability of the SD card it won’t make much of a difference I suppose.

I’ll try with a better sd card.

Thank you

---

<div class="post-metadata">

**Author:** ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)\
**Post date:** [27 February 2026 02:58 UTC](https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002/4 "2026-02-27T02:58:42Z")

</div>

Moving the rootfs (/ partition) to external USB…they are usually alot more resilient than SD cards…I do believe dietpi has that built in to be able to boot from SD and run the OS from external USB/NVME drive

---

<div class="post-metadata">

**Author:** ![TheGuga96](https://dietpi.com/forum/user_avatar/dietpi.com/theguga96/32/8788_2.png) [@TheGuga96](https://dietpi.com/forum/u/TheGuga96)\
**Post date:** [27 February 2026 11:15 UTC](https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002/5 "2026-02-27T11:15:17Z")

</div>

I’ll consider it if a better SD card doesn’t solve it. I would prefere a more compact solution. Thanks anyway 😃

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [27 February 2026 13:57 UTC](https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002/6 "2026-02-27T13:57:15Z")

</div>

The RPI Zero 2 W supports USB mass storage boot out of the box. Means you can boot of a USB drive without a SD card needed [https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-3b-zero-2-w](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-3b-zero-2-w)

---

<div class="post-metadata">

**Author:** ![Deoptim](https://dietpi.com/forum/user_avatar/dietpi.com/deoptim/32/7879_2.png) [@Deoptim](https://dietpi.com/forum/u/Deoptim)\
**Post date:** [5 March 2026 12:38 UTC](https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002/7 "2026-03-05T12:38:00Z")

</div>

> [@TheGuga96](#):
>
> SD card used | Netac 32GB A1 uSD

1. A regular SD card is not suitable for running OS.  
There are special wear-resistant SD cards labeled Endurance/High Endurance/Pro Endurance—they are designed for dashcams but are also suitable for running OS.
2. An alternative to using a regular SD card is to use a rootfs formatted as **F2FS** (instead of EXT3-EXT4) — F2FS file system wears the SD card’s sectors evenly.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [5 March 2026 12:50 UTC](https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002/8 "2026-03-05T12:50:08Z")

</div>

At least on Raspberry Pi, there is a eMMC module available that can be used via SD card slot

---

<div class="post-metadata">

**Author:** ![devifast](https://dietpi.com/forum/user_avatar/dietpi.com/devifast/32/2254_2.png) [@devifast](https://dietpi.com/forum/u/devifast)\
**Post date:** [12 March 2026 13:59 UTC](https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002/9 "2026-03-12T13:59:36Z")

</div>

Here is your solution:

> **[RasPiKey – UUGear](https://www.uugear.com/raspikey/)**

and:

I just found this on AliExpress:  
EMMC to TF Card Module BGA153 BGA169 to for Micro SD Card MMC Card USB 3.0 Card Reader HS400 Is Required PCB Module

> **[EMMC zu TF-Karten-Modul BGA153 BGA169 für Micro SD-Karte MMC-Karte USB 3.0...](https://de.aliexpress.com/item/1005009078580594.html?invitationCode=V1UyanI4b0x3STA0aFdQbVhWaXFaUTc3dDE2Qjc4QlA4dG1uaVU5N3VDd2pmdlBzNkVmWTlBPT0&srcSns=sns_Copy&spreadType=socialShare&social_params=61456731629&bizType=ProductDetail&spreadCode=V1UyanI4b0x3STA0aFdQbVhWaXFaUTc3dDE2Qjc4QlA4dG1uaVU5N3VDd2pmdlBzNkVmWTlBPT0&aff_fcid=c72496b17cad495e88348ebcf4397fa2-1773323960692-07946-_EGkOnSG&tt=MG&aff_fsk=_EGkOnSG&aff_platform=default&sk=_EGkOnSG&aff_trace_key=c72496b17cad495e88348ebcf4397fa2-1773323960692-07946-_EGkOnSG&shareId=61456731629&businessType=ProductDetail&platform=AE&terminal_id=53f22fe3aa974f019a16bf728e8454ff&afSmartRedirect=y&gatewayAdapt=glo2deu)**
>
> Smarter Shopping, Better Living! Aliexpress.com

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [12 March 2026 14:13 UTC](https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002/10 "2026-03-12T14:13:34Z")

</div>

I use the RasPiKey on some of my RPI. keep in mind they are working in RPi only.

---

<div class="post-metadata">

**Author:** ![urostor](https://dietpi.com/forum/user_avatar/dietpi.com/urostor/32/1891_2.png) [@urostor](https://dietpi.com/forum/u/urostor)\
**Post date:** [12 March 2026 14:23 UTC](https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002/11 "2026-03-12T14:23:49Z")

</div>

Is F2FS really better in this aspect? All mmc-based block devices have mandatory wear leveling, which is done unbeknownst to the operating system (as far as I understand). And F2FS has benchmark scores consistently worse than Linux alternatives. F2FS seems to be a relic from an era when flash memory devices did not have proper standards, and the fact that it’s still presented as such is beyond me. I’d stick to ext4 or maybe xfs, and leave the rest to the memory card. And yes, get a high endurance one.

---

<div class="post-metadata">

**Author:** ![devifast](https://dietpi.com/forum/user_avatar/dietpi.com/devifast/32/2254_2.png) [@devifast](https://dietpi.com/forum/u/devifast)\
**Post date:** [12 March 2026 15:49 UTC](https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002/12 "2026-03-12T15:49:39Z")

</div>

Read again post, i send solution for you. And don’t forget to disable swap file. Things have been working for me for over three years (I had the same problem as you at the time) success.

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [7 September 2026 03:50 UTC](https://dietpi.com/forum/t/dietpi-on-sd-card-gets-corrupted-after-some-weeks-of-use/25002/13 "2026-09-07T03:50:37Z")

</div>

Closed on 7 September 2026 03:50 UTC

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.
