LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2012, 04:34 AM   #1
rinky05
LQ Newbie
 
Registered: Aug 2012
Posts: 10

Rep: Reputation: Disabled
NFS mount problem


i have a linux machine installed as a virtual machine in my windows pc . I need to mount a folder from the linux machine to a device(set top box ) using seraial emulator(teraterm )

when i run the command on teraterm when the set top box is connected
mount -t nfs ipaddress:file /mnt/nfs

i get
connection refused

please help me out...URGENT
 
Old 08-03-2012, 05:49 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Are you logged in to the set top box when running the mount command? You mount directories, not files as you indicated. Also are the ports for nfsd and the portmapper blocked in either the Linux VM or the Windows host?

I think you meant terminal emulater instead of serial emulater.
 
Old 08-03-2012, 05:53 AM   #3
rinky05
LQ Newbie
 
Registered: Aug 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
yes...i ahve done portmapping on vmware and windows on port number 2049 for nfs and set top is connected

---------- Post added 08-03-12 at 04:23 PM ----------

yes...i have done portmapping on vmware and windows on port number 2049 for nfs and set top is connected
 
Old 08-03-2012, 06:22 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Check your logs in /var/logs/. Look at messages and files in the /var/log/nfs/ directory if it exists.

NFS3 uses separate ports for file transfer and for control. Use netstat to see which ports are open. Compare with the firewall ports.

Make sure the uid's match for your user in the VM and the settop box. Post the /etc/exports file. What security mode are you using?
This will be listed after the sec= option in /etc/exports. If this option isn't used, sec=sys is the default. The error message sounds more like an authentication or networking issue than an nfs issue.
 
Old 08-03-2012, 08:11 AM   #5
rinky05
LQ Newbie
 
Registered: Aug 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
/etc/exports looks like this
/opt/nfsroot_uclibc *(rw,no_root_squash,no_all_squash)
/opt/refsw *(rw,no_root_squash,no_all_squash)

------------------------------------

there is no file as /var/log/nfs
i have checked the logs but unable to gather any information.
which ip address should i use while using the mount command...linux ip /windows ip
how do i create /mnt/nfs on set top using teraterm ??

please reply!!!!
 
Old 08-03-2012, 08:24 AM   #6
rinky05
LQ Newbie
 
Registered: Aug 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
using--

netstat -a | grep 2049

output---

stream connected

i don't think there is an issue with port number of nfs server
 
Old 08-04-2012, 04:58 PM   #7
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
Quote:
Originally Posted by rinky05 View Post
using--

netstat -a | grep 2049

output---

stream connected

i don't think there is an issue with port number of nfs server
I think you missed the point here.
NFS uses alot of different ports: 111, 2049,(these 2 are very common) ... and after that some ports that are randomly choosen.
If you want this to work properly you have to set the range of ports that can be used.
What I would do first in your case is disable the firewall(as you seem to lack some knowledge on nfs (no offense)).

Then test again.
See what you can find in any log files.
 
Old 08-05-2012, 11:41 PM   #8
rinky05
LQ Newbie
 
Registered: Aug 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
firewall is disabled and selinux is also disabled . Getting connection refused error when running the mount command on teraterm.
 
Old 08-06-2012, 01:05 AM   #9
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
Quote:
Originally Posted by rinky05 View Post
firewall is disabled and selinux is also disabled . Getting connection refused error when running the mount command on teraterm.
Do you have any messages in the log files on the nfs server?
 
Old 08-06-2012, 01:14 AM   #10
rinky05
LQ Newbie
 
Registered: Aug 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
there is no such file in /var/log

can u please tell me which ip address should i mention while writing the mount command?
 
Old 08-06-2012, 07:08 AM   #11
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
Quote:
Originally Posted by rinky05 View Post
there is no such file in /var/log

can u please tell me which ip address should i mention while writing the mount command?
There are other files in /var/log I would think: /var/log/messages...

The IP depends on if your virtual is in bridged mode or not and on another network or not.
 
  


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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
[SOLVED] mount nfs problem: mount(2) Input/Output error, virtual box involved gjatute Linux - Newbie 6 10-23-2012 01:57 PM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
mount.nfs: mount to NFS server 'jesse' failed: timed out, retrying keupie Linux - Networking 3 06-05-2009 07:03 PM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:18 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration