LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-05-2002, 11:51 PM   #1
juno
Member
 
Registered: Sep 2002
Location: fdas
Posts: 100

Rep: Reputation: 15
Can't mount remote machine


I wnat to mount UNIX path from the RH linux , i have edit /etc/exports file and run "exports -a" , but still find the below error, can suggest how to fix ? thx.

mount: RPC: Unable to receive; errno = Connection refused
 
Old 12-06-2002, 01:00 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
nfs is not running, or you have it blocked by a firewall
 
Old 09-02-2003, 11:38 AM   #3
ruyexel
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
I have recently upgraded from Linux Redhat 7.2 to 9.0 on my Laptop and I am having trouble remotely mounting my Desktop directories. The Desktop has not been changed so I am sure the problem is in my new Redhat 9.0.

Here is the relevant line in my /etc/fstab:

spin:/ /mnt/spin nfs noauto,user,intr 0 0

so this means mounting the machine called spin (Desktop) onto the (EXISTING) directory /mnt/spin in the Laptop. By the way, "spin" runs Redhat 7.2.

When I attempt

% mount /mnt/spin

I get the error message

mount: RPC: Timed out

after some delay. The curious thing is that the file
/var/log/messages on "spin" (the server) gets appended with the line

Sep 2 13:32:45 spin rpc.mountd: authenticated mount request from <client IP>:999 for / (/)

which seems to indicate that the "server is willing to serve".

Please help if you can!

Ruy
 
Old 09-02-2003, 10:24 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
restart portmap

service portmap restart

if this fails to help maybe you can try with the ip address and watch the log file on the nfs server

try to bypass fstab


mount 192.168.0.2:/ /mnt/spin
 
Old 09-03-2003, 09:00 AM   #5
ruyexel
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
Dear David,

Thanks for your time, but unfortunately it did not seem to work. Here is a log of the session where I attempted to follow your suggestions. Please note "exel" is the client laptop (running Redhat 9.0) and "spin" the server desktop (running Redhat 7.2).

[root@exel ~]# ssh root@spin
root@spin's password:
Last login: Wed Sep 3 10:48:04 2003 from exel

[root@spin ~]# service portmap restart
Stopping portmapper: [ OK ]
Starting portmapper: [ OK ]

[root@spin ~]# tail /var/log/messages
...
Sep 3 10:49:05 spin sshd(pam_unix)[11946]: session opened for user root by (uid=0)
Sep 3 10:49:13 spin portmap: portmap shutdown succeeded
Sep 3 10:49:13 spin portmap: portmap startup succeeded

[root@spin ~]# exit
logout
Connection to spin closed.

[root@exel ~]# service portmap restart
Stopping portmapper: [ OK ]
Starting portmapper: [ OK ]

[root@exel ~]# tail /var/log/messages
...
Sep 3 10:50:01 exel portmap: portmap shutdown succeeded
Sep 3 10:50:01 exel portmap: portmap startup succeeded

[root@exel ~]# mount <SPIN IP ADDRESS>:/ /mnt/spin
(about 30 seconds delay)
mount: RPC: Timed out

[root@exel ~]# ssh root@spin
root@spin's password:
Last login: Wed Sep 3 10:49:05 2003 from exel

[root@spin ~]# tail /var/log/messages
...
Sep 3 10:49:05 spin sshd(pam_unix)[11946]: session opened for user root by (uid=0)
Sep 3 10:49:13 spin portmap: portmap shutdown succeeded
Sep 3 10:49:13 spin portmap: portmap startup succeeded
Sep 3 10:49:28 spin sshd(pam_unix)[11946]: session closed for user root
Sep 3 10:50:01 spin rpc.mountd: authenticated mount request from <SPIN IP ADDRESS>:787 for / (/)
Sep 3 10:50:19 spin last message repeated 6 times
Sep 3 10:50:43 spin sshd(pam_unix)[12010]: session opened for user root by (uid=0)

Sorry I replaced the IP address for privacy.

Someone told me there are different versions of NFS and this could be the cause of my problems. But I cannot get any followup on this :-(

Ruy
 
Old 09-04-2003, 12:06 AM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I ran into a problem a while back like this, I can't remember exactly what the difference was. But I did need to rephrase the shares in /etc/exports before it would work


try this

create an empty folder and setup /etc/exports like this

/nfstest *(rw,sync)


and run exportfs -a
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 35 10-23-2017 12:21 AM
scp: copy a file from local machine to remote machine seran Linux - Newbie 8 10-30-2007 12:23 PM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 07:39 PM
Remote Mounting? (Mount remote folder on local filesystem) mac_phil Linux - Networking 1 11-15-2003 03:48 PM
using linux to redirect remote vpn traffic to another remote machine brb5548 Linux - Networking 0 06-28-2003 09:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:16 PM.

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