Results 1 to 3 of 3
I am trying to NFS mount from an Atmel AVR32 Grasshopper (embedded Linux) client to a Ubuntu 8.04LTS server.
I have followed the guidelines in the Ubuntu NFSv4HowTo <https://help.ubuntu.com/community/NFSv4Howto#NFSv4%20without%20Kerberos>
My ...
- 04-19-2009 #1Just Joined!
- Join Date
- Apr 2009
- Location
- Brisbane, Australia
- Posts
- 3
NFS woes - can't NFS mount to Ubuntu server
I am trying to NFS mount from an Atmel AVR32 Grasshopper (embedded Linux) client to a Ubuntu 8.04LTS server.
I have followed the guidelines in the Ubuntu NFSv4HowTo <https://help.ubuntu.com/community/NFSv4Howto#NFSv4%20without%20Kerberos>
My export directory is /export/home
My /etc/fstab looks like:
# nh 20090418, per Ubuntu NFSv4HowTo
/home /export/home none bind 0 0
In /etc/default/nfs-kernel-server I have set:
# Security options
# nh 20090418, per Ubuntu NFSv4HowTo
NEED_SVCGSSD=no
In /etc/default/nfs-common I have set:
# Do you want to start the idmapd daemon? It is only needed for NFSv4.
# nh 20090418, per Ubuntu NFSv4HowTo
NEED_IDMAPD=yes
# Do you want to start the gssd daemon? It is required for Kerberos mounts.
# nh 20090418, per Ubuntu NFSv4HowTo
NEED_GSSD=no
My /etc/exports looks like:
# nh 20090418, per Ubuntu NFSv4HowTo
/export 192.168.0.0/24(rw,fsid=0,insecure,no_subtree_check,async)
/export/home 192.168.0.0/24(rw,nohide,insecure,no_subtree_check,async)
I issue the following command to the Grasshopper (as su) as per the Grasshopper instructions:
mount -t nfs 192.168.0.166:/export/home /mnt
I get the following error message (after about a minute):
mount: mounting 192.168.0.166:/export/home on /mnt failed
I have tried a few combinations (/export to /mnt, /export/home to /import, etc), all with the same result.
The daemon log on the server contains:
Apr 18 13:55:46 Ubuntu-8 mountd[5891]: authenticated mount request from 192.168.0.100:1020 for /export/home (/export/home)
The server syslog shows:
Apr 18 13:55:46 Ubuntu-8 mountd[5891]: authenticated mount request from 192.168.0.100:1020 for /export/home (/export/home)
I know the network is working fine, because I can telnet into the Grasshopper, and browse to its web page.
All assistance will be greatly appreciated. Thanks in advance.
Neil
- 04-21-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,970
Since I haven't done much with NFS for a number of years, I'm not absolutely certain, but I think your /etc/exports file is incorrect. From what you are showing, you are allowing access to the system with IP address 192.168.0.0 with a netmask of 24. If you want to export this to all comers, then set your exports file like this:
This should give read-only access to everyone to /export and all its contents, and read-write access to everyone to /export/home. You can also restrict access to specific machines, or ranges of machines provided the IP address is specified, and the netmask is correct. A common netmask that covers an entire subnet is 255.255.255.0, such as 192.168.1.0/255.255.255.0.Code:# nfs exports file /export (rw,fsid=0,insecure,no_subtree_check,async) /export/home (ro,nohide,insecure,no_subtree_check,async)
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 04-21-2009 #3
I believe you have this the wrong way around. The correct syntax for a line in fstab is:
<machine:>/exported/path /mount/path filesystem options <dump> <fsck>
You could try:
and follow it up withCode:192.168.0.166:/export/home /home nfs defaults 0 0
Code:mount /home
Linux user #126863 - see http://linuxcounter.net/


Reply With Quote
