Now I get why people are reluctant to use SDs in their . I have what's quite clearly a worn or corrupted SD (which is used for the whole filesystem). I'm getting fatal errors, terminal quirks and all sorts of funny business. Fingers crossed a 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 .

@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 @syntax
I have my DNS server in the "cloud" with DoT enabled. It functions similar to Pi-hole.
For Nextcloud at home I'm going to buy a mini PC (like Intel NUC or similar), RaspberryPI is kinda weak for that, and (I think) won't be as reliable.

@m_svo @syntax Its reliability depends on its purpose, I have RPi with SD for 3.5 years and had no problems with it. PiHole doesn't need excessive write to disk (if you disable dns logs) so it should be reliable for PiHole purpose. As for Nextcloud you definitely need some SSD for read/write speeds, I think that RPi4 can manage Nextcloud pretty well, I'm yet to try it when I get one.

@nikolal @syntax
The thing is, Nextcloud has a built in OnlyOffice server (by default) starting from NC 19 I think. Previously you needed a separate server for it.
NC 20 has even more features (I did not yet upgrade).
With such rapid growth, I would not count on RPi 4 to handle NC now, or maybe not in near future. I may be wrong though, I never owned an RPi myself.

@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

@syntax
It helps if you take out the SDcard and do the fsck on your normal computer, iow don't do it on the RPi itself.

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

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

@FreePietje @syntax this seems like the best option, so going to look into this too.

@syntax invest in a good Samsung SD card. My retropie/kodi is working non-stop for years, not even one issue. With Kingston, I've got all kinds of funny business.

Also no extensive read/write to the filesystem. Torrent client on my RPi killed my Kingston SD card (even when it buffered 60MB chunks in RAM before dropping it on the SD Card)

@vol
I read that one of the best things to do is disable swap. Did you do that? I seem to remember my SD is a decent SanDisk one with ~64GB storage, but I never disabled swap etc. I won't know the state of it till o run a proper fsck on my primary machine later. Either way I'm going to ditch Raspberry Pi OS and try minimal Debian on external HDD.

Sign in to participate in the conversation
Mastodon 🔐 privacytools.io

Fast, secure and up-to-date instance. PrivacyTools provides knowledge and tools to protect your privacy against global mass surveillance.

Website: privacytools.io
Matrix Chat: chat.privacytools.io
Support us on OpenCollective, many contributions are tax deductible!