shani klein
shani klein

Reputation: 344

Got error while Mounting, error massage:"mount.nfs: remote share not in 'host:dir' format"

Im trying to do mount to a nfs server as follow - mount -t nfs 127.0.0.1 /mnt/mountPointToTest (I know it is local host, it is just for testing) and I got this error message:

mount.nfs: remote share not in 'host:dir' format .

Does anyone know how I can fix this error ? Thank you.

-- edit: after changing to mount -t nfs 127.0.0.1:/var/share /mnt/mountPointToTest got error :

mount.nfs: No such device.

my /etc/exports looks like:

enter image description here

Upvotes: 3

Views: 32846

Answers (1)

Florian Schlag
Florian Schlag

Reputation: 669

You are missing the exported remote share. Let's say you have exported /var/share as a share, then your mount command would be

mount -t nfs 127.0.0.1:/var/share /mnt/mountPointToTest

Upvotes: 4

Related Questions