BeebMaster wrote: ↑Sat Aug 05, 2023 1:38 am
So the latest kernel (6.2 something) has broken NFS v2, and both kernels are ignoring nfs.conf anyway. It's been a long time since I messed about with GRUB options, and when I have I've almost invariably ended up wiping the whole partition table. Is there a way I can default to loading with the previous kernel?
NFS v2 was made option in kernel 6.2 (e.g.
https://www.phoronix.com/news/Linux-6.2-NFSD ). It's possible Ubuntu had it turned on in older versions and turned it off in current.
I don't have an ubuntu system at the moment, but there might be files like /boot/config.<kernel_vesion>
On my Debian 11 machine I see
Code: Select all
% grep NFS.*_V2 /boot/config-5.10.0-23-amd64
CONFIG_NFS_V2=m
CONFIG_NFSD_V2_ACL=y
So I can see the V2 is a loadable module so it's available (and it's not NFSD, so it's using older code)
You can change the default kernel in grub by modifying /etc/default/grub but be careful; older kernels might be auto-removed as you install newer ones (to save disk space) so you might end up with a kernel that won't work with NFSv2, anyway.
Although it's harder work you may want to compile your own kernel from source (using the config file from /boot as the template but changing the NFSD_V2 option). It's easy enough if you know what you're doing, but a bit of a learning curve if you've never done it before. But this way you can ensure system upgrades will never remove it. This does carry a compatibility risk, though, so I haven't done this on my machines for over a decade.