Mounting NFS Share: Solving Bad Option Error
While doing the NFS section of HTB Academy’s Footprinting module, I encountered a problem when trying to mount the remote NFS share.
1
2
$ sudo mount -t nfs 10.129.202.5:/var/nfs ./nfs-target/ -o nolock
mount: /home/slv3rfx/nfs-target: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.
When you encounter the above error message, you need to install the nfs-common
package.1
1
$ sudo apt install nfs-common
After doing that, you should be able to mount the share without errors.
If you are trying to mount a CIFS share, you need to install the
cifs-utils
package.
Source: askubuntu.com ↩
This post is licensed under CC BY 4.0 by the author.