r/NetBSD • u/kyleW_ne • 15h ago
How brittle are disks in NetBSD?
Hi, so I've been wanting to give NetBSD a fair shake having previously daily drove FreeBSD and OpenBSD. I was reading either the wiki or the handbook the other day and it was talking about how easy to cause disk corruption in NetBSD is. Specifically in the section on VMs it said never hard power them off because of disk corruption. I take it the Fast Filing system FFS used by NetBSD is similar to the one employed by OpenBSD because of the similar heritage, and despite having to hard power that os off a time or two I never caused corruption that was noticeable.
So, how pervasive is disk corruption in NetBSD and what are ways to mitigate it? I read about a sync option for FFS, even though that slows down the disk io does it eliminate disk corruption? NetBSD also seems to support zfs storage. How easy is that to setup? I found some not really good recommendations of using zfs with the disk encryption framework. Disk encryption is important to me in all laptops even if it's not my primary laptop.
So tldr -
- how pervasive is disk corruption?
- Does sync or another mount option mitigate it?
- If not, how easy is it to setup a ZFS system with fde?
Thanks in advance! Even though I've never ran NetBSD in anything more than a VM, I've always admired it and thought what you guys have built with so little funding is amazing! Thanks for your time.