Basic LAMP Ubuntu 10.04.2 LTS trying to mount NFS share from a FreeNAS 0.7.2 system. I was running the following command:
mount -t nfs 10.10.0.99:/mnt/hotswap/NFS/ /mnt/freenas/
and receiving the following error
mount: wrong fs type, bad option, bad superblock on 10.10.0.99:/mnt/hotswap/NFS/,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.helper program)
In some cases useful info is found in syslog – try
dmesg | tail or so
Awesome. So I tried with the -o ‘vers=3’ command just in case. Same issues persist.
It looks like the common NFS files are missing in the vanilla ubuntu server installation:
apt-get install nfs-common
Rerun the mount command is successful
And, since I like to create NFS on ubuntu as well:
apt-get install nfs-kernel-server
nano /etc/exports
Add:
/path/to/share Hostname(rw,sync,no_root_squash)
or in my case
/NFS *(rw,sync,no_root_squash)
Then restart nfs
/etc/init.d/nfs-kernel-server restart
198.45.20.11:/depot /depot nfs _netdev,hard,wsize=8192,rsize=8192,rw,bg,intr 0 0