Now I get why people are reluctant to use SDs in their #RaspberryPi. I have what's quite clearly a worn or corrupted SD (which is used for the whole filesystem). I'm getting #dpkg fatal errors, terminal quirks and all sorts of funny business. Fingers crossed a #fsck can do the trick. If not, I'll need to reinstall everything :( I think I should invest in an m.2 adapter or just plug in a spare SSD via USB and mount the filesystem on that. Any better suggestions? I use this Pi 24/7 for #DNS.
@syntax I would go for SSD and zfs or btrfs filesystems, filesystems that have snapshot abilities to restore your server quickly if something goes terribly wrong, you could even plug in some HDD and sync those snapshots to it when you take them in case of full disk corruption.
@nikolal
Yeah I'm not sure why my SD is having issues as I only use the Pi (4B) for Pi-hole. Maybe I'll try disabling logs etc. Or maybe it's something else that's causes the issue. But either way, it has made me reluctant to use SD going forward. The annoying thing is I have a spare m.2 but no adapter (Pi hat or adapter cable). I wonder how well my 1TB HDD would perform instead...
@m_svo