LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-30-2008, 06:38 PM   #1
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Rep: Reputation: 33
Arrow Can't mount nfs share from fstab but can mount it manually - help


Can anyone elablorate on the requirement for mounting NFS shares in fstab?

I edited /etc/hosts and added a line for the ip address and hostname of my server like this:
Code:
192.168.100.100 MyServer
Then in /etc/fstab I used this:
Code:
//MyServer:/Documents /home/myuser/Documents nfs rw,hard,intr 0 0
The results is this error:
Code:
$ sudo mount -a -t nfs
mount.nfs: can't get address for //MyServer
Code:
$ ping MyServer
PING MyServer.hsd1.my.isp.org. (192.168.100.100) 56(84) bytes of data.
64 bytes from MyServer.hsd1.my.isp.org. (192.168.100.100): icmp_seq=1 ttl=128 time=0.081 ms
64 bytes from MyServer.hsd1.my.isp.org. (192.168.100.100): icmp_seq=2 ttl=128 time=0.080 ms
64 bytes from MyServer.hsd1.my.isp.org. (192.168.100.100): icmp_seq=3 ttl=128 time=0.079 ms
64 bytes from MyServer.hsd1.my.isp.org. (192.168.100.100): icmp_seq=4 ttl=128 time=0.114 ms

--- MyServer.hsd1.my.isp.org. ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2997ms
rtt min/avg/max/mdev = 0.079/0.088/0.114/0.017 ms
What am I missing?

BTW, I forgot to mention, mounting manually works fine:

Code:
$ sudo mount -t nfs -vvv 192.168.100.100:Documents /home/myuser/Documents
mount: fstab path: "/etc/fstab"
mount: lock path:  "/etc/mtab~"
mount: temp path:  "/etc/mtab.tmp"
mount: spec:  "192.168.100.100:Documents"
mount: node:  "/home/myuser/Documents"
mount: types: "nfs"
mount: opts:  "(null)"
mount: external mount: argv[0] = "/sbin/mount.nfs"
mount: external mount: argv[1] = "192.168.100.100:Documents"
mount: external mount: argv[2] = "/home/myuser/Documents"
mount: external mount: argv[3] = "-v"
mount: external mount: argv[4] = "-o"
mount: external mount: argv[5] = "rw"
mount.nfs: trying 192.168.100.100 prog 100003 vers 3 prot TCP port 2049
mount.nfs: trying 192.168.100.100 prog 100005 vers 3 prot UDP port 1048
192.168.100.100:Documents on /home/myuser/Documents type nfs (rw)
/$
UPDATE:
Code:
$ nslookup
** server can't find MyServer: NXDOMAIN
What does that last line mean?
 
Old 03-30-2008, 08:34 PM   #2
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 33
Solution:
do not use leading "//" when mounting with NFS.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab entry does not mount nfs share nanbudh Linux - Networking 13 06-07-2012 02:05 PM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
FSTAB: My Win Share Wont Mount @ Boot, but will when I sudo mount -a...please help! TruANTOlogy Ubuntu 8 06-20-2006 08:00 AM
NFS mount in /etc/fstab ? cozye Linux - General 2 12-08-2003 04:01 PM
how do I mount with nfs in fstab? Falafel Linux - Networking 1 11-13-2003 12:56 PM


All times are GMT -5. The time now is 04:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration