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.
@FreePietje
Yeah that's what I plan to do. Give the Pi a rest, check the card. If it can't be recovered then I'll ditch it and start using an HDD or SSD.
@FreePietje @syntax this seems like the best option, so going to look into this too.
@syntax
You can move everything except the FAT32 partition (usually /boot/) to HDD/SSD. That way the SDcard only gets written to when the firmware gets updated. All other OS operations/writes will be done on HDD/SSD.
SDcard were never meant to be used as OS drives. Some may hold out for (quite) a while. Having a capacity WAY larger then you actually need also increases its lifespan as the same regions don't have to be rewritten as often as with a small capacity one.