I can’t mount NFS share - bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program.

https://www.reddit.com/r/linux4noobs/comments/r16m29/i_cant_mount_nfs_share_bad_option_for_several/

Hi, I would like to get some help. I’m pretty confused, of what is going on, because I’ve never had any issues with NFS shares. I created 2 vms to test some stuff.

VM A is a share source and /etc/exports looks like this

tstadmin@luks-tst1:~$ cat /etc/exports

/etc/exports: the access control list for filesystems which may be exported

to NFS clients. See exports(5).

#

Example for NFSv2 and NFSv3:

/srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)

#

Example for NFSv4:

/srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)

/srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)

# /mnt/lv00/ 192.168.1.168(rw,sync,no_subtree_check) sudo exportfs -a gives no output so I guess everything works correctly

VM B is a receiving side and it is making problems, please review this command:

tstadmin@luks-tst2:/mnt/share$ sudo mount -t nfs 192.168.1.168:/mnt/lv00 /mnt/share/lv00 mount: /mnt/share/lv00: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program.

tstadmin@luks-tst2:/mnt/share$ sudo mount -o nolock -t nfs 192.168.1.168:/mnt/lv00 /mnt/share/lv00 mount: /mnt/share/lv00: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program. I have no idea, what is wrong, ip address is correct - I use the same address to ssh. Could you please help me figure out this problem? I don't understand what this output tells me to do.

Read more 25 · 10 Comments Section aloof_topping • 4y ago Do you have nfs-utils (or your distro’s equivalent) installed on VM B? That will provide the mount.nfs command that error is looking for,

2 lord_EarlGray OP • 4y ago I have installed nfs-utils (both servers are Ubuntu Server 18). Now it changed to:

tstadmin@luks-tst2:/mnt/share$ sudo mount.nfs 192.168.1.168:/mnt/lv00 /mnt/share/lv00 mount.nfs: requested NFS version or transport protocol is not supported How is that possible? Both server have the same os version, how is that possible that they have different nfs versions?

1 u/ang-p avatar ang-p • 4y ago mount.nfs: requested NFS version or transport protocol is not supported

https://www.google.co.uk/search?q=mount.nfs%3A+requested+NFS+version+or+transport+protocol+is+not+supported+ubuntu&ie=utf-8&oe=utf-8

0

5 more replies u/ang-p avatar ang-p • 4y ago for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program.

Do you have a /sbin/mount. helper program?

1 u/OkPrune711 avatar OkPrune711 • 9mo ago You have to update NFS package on server where you are going to share NFS (tstadmin@luks-tst2), and Install NFS utilities dnf install nfs-utils. lastly, enable NFS services on server systemctl enable –now nfs-server.

Updated: