Reputation: 344
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:
Upvotes: 3
Views: 32846
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