to state up front: I am NOT using kerberos or anything else of that sort.
I am bringing up a new NAS (a Synology DS223j) and want to use NFS rather than cifs/SMB for nightly backups (because I think the problems I was having using cifs may be due to the huge number of hard links that rsnapshot uses)
So far I have, after considerable head-banging (never having used NFS on Linux, but on other Unixes decades ago) I have managed to get the backup volume (on the Synology box) working and a command-line mount on Linux, and backups now appear to run flawlessly.
(previously, for years I have used one or another inexpensive 2-drive âRaid boxesâ that connected via USB, so I didnât have to worry about network protocols.)
My issue is this: If I use â-t nfsâ in the mount command I get an error:
$ sudo mount -vvv -t nfs -o defaults,x-systemd.automount,auto,users,exec FcsHome-Backup3:/volume1/backup /mnt/backup
mount.nfs: timeout set for Tue Apr 22 14:06:04 2025
mount.nfs: trying text-based options âvers=4.2,addr=192.168.2.148,clientaddr=192.168.2.12â
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options âvers=4,minorversion=1,addr=192.168.2.148,clientaddr=192.168.2.12â
Iâm referring to the âProtocol not supportedâ line above.
if I modify the commandline, i.e., by removing â-t nfsâ it mounts fine.
I canât find any docs that would explain that error.
if I build (what I think is) an equivalent entry in /etc/fstab:
//FcsHome-Backup3/volume1/backup /mnt/backup nfs defaults,x-systemd.automount,x-systemd.idle-timeout=â15min 0sâ,auto,users,exec 0 2
it also fails in the same way. Iâve tried nfs, nfs3, nfs4, nfsv4, nfsv4.1 and all of them elicit the warning about unsupported protocol.
Iâm willing to omit that from the fstab file, but I canât find out what the proper syntax is for doing that.
Can anyone here suggest how to either give an acceptable fstype in the commandline (and fstab) or how to omit it from fstab (without screwing up its knowledge of which field in its entry is which?
Thanks in advance!
Fred
