Solution to “mount.nfs: Protocol family not supported” error

At first, the above error seems very cryptic. But the error is indeed what the error message says! You are trying to mount a directory on another system that does not support the protocol that the system you are running the mount command on supports. To figure out more details, run with verbose option enabled

mount -v X.YY.ZZ.AAA:/pavan /mnt/pavan

Now, it spits out what it was trying to do. One of the verbose messages is as shown-

mount.nfs: trying text-based options ‘vers=4,addr=9.19.11.70’

As you can see, my machine is trying to contact the remote machine with NFS version 4, which the remote machine simply doesn’t understand. So we need to change the version to a lower one that the remote machine can comprehend. You can try one of the two –

mount -o vers=3 X.YY.ZZ.AAA:/pavan /mnt/pavan

mount -o nfsvers=3 X.YY.ZZ.AAA:/pavan /mnt/pavan

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s