LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-20-2012, 04:10 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
Can not mount remote path


I have a RHEL 5 server 192.168.0.1 , installed rsh , rsh-server

rpm -qa |grep rsh
rsh-server-0.17-40.el5_7.1
rsh-0.17-38.el5

The r service has been started .
rexec: on
rlogin: on
rsh: on
rsync: on

The path has been export for mount in /etc/exports and run exportfs -a
/tmp/share 192.168.0.2(rw,sync)


I have another server which is RHEL 3 , want to mount it but fail

mount 192.168.0.1:/tmp/share /tmp/mount

The error is asbelow .

mount: mount to NFS server '192.168.0.1' failed: RPC Error: Program not regis
tered.


Can advise what is wrong ? what I need to check and re-config ?

thanks
 
Old 08-20-2012, 04:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well rsh has *NOTHING* to do with NFS for a start... which protocol do you want to use??
 
Old 08-20-2012, 05:48 AM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
deleted

Last edited by ust; 08-20-2012 at 05:52 AM.
 
Old 08-20-2012, 05:52 AM   #4
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
thx reply ,

I mixed up nfs and rsh .

I just checked , the nfsd is started , but still can't be mounted by other server , can advise what is wrong ? thx

/sbin/chkconfig --list |grep nfs
nfs 0 off 1 off 2 on 3 on 4 on 5 on 6 off
 
Old 08-20-2012, 08:44 AM   #5
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
in my first post , I have mixed up rsh and nfs .

Now , I checked , the nfsd is started , but still not work, cand advise what I need to do ?

thx
 
Old 08-20-2012, 08:49 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please don't post additional responses without showing what extra research you have done in the meaning etc.

That error, which I hope you have been reading up on, is usually down to portmap not running. check that service is also up and at it.
 
Old 08-20-2012, 06:32 PM   #7
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by acid_kewpie View Post
Please don't post additional responses without showing what extra research you have done in the meaning etc.

That error, which I hope you have been reading up on, is usually down to portmap not running. check that service is also up and at it.
thx reply ,

you mean the portmap service ? I just checked , the portmap service is on

portmap 0 off 1 off 2 off 3 on 4 on 5 on 6 off
 
Old 08-20-2012, 08:19 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try the following on your nfs server
Code:
ps -ef|grep nfs

service nfs status

service  nfslock status

exportfs -v

rpcinfo -p

showmount -e localhost
You may find these useful
https://www.linuxquestions.org/quest...ersion-627485/
https://access.redhat.com/knowledge/...de/ch-nfs.html
 
Old 08-21-2012, 02:23 AM   #9
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
thanks reply ,

I have started the nfs service , it works now.

But I have a question about the service , I use service to check to check it , it is stopped .

# service nfs status
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped

When I use chkconfig to check nfs , it is on .

#chkconfig --list |grep nfs
nfs 0off 1ff 2n 3n 4n 5n 6ff


can advise what is the difference between this two ways to check the service ?

thanks.
 
Old 08-21-2012, 06:22 PM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
chkconfig says whether it CAN be on & it will be set on at next reboot.
service turns it on on/off immediately, WITHOUT regard to chkconfig settings.
See
http://linux.die.net/man/8/chkconfig
http://www.linuxtopia.org/online_boo...chkconfig.html
http://linux.die.net/man/8/service
http://www.linuxtopia.org/online_boo...es-ntsysv.html
 
  


Reply



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
Unable to NFS mount .ERROR (mount: RPC: Remote system error - Connection timed) pabba Linux - Networking 3 05-06-2010 12:09 PM
I'm working with symlinks with mount command to mount remote shares lhorace Linux - Newbie 1 11-21-2009 04:05 PM
Mount path ust Linux - Networking 2 04-29-2008 01:20 AM
shell script to mount samba share with " " in the remote path dohpaz Programming 2 10-20-2006 02:18 PM
Remote Mounting? (Mount remote folder on local filesystem) mac_phil Linux - Networking 1 11-15-2003 03:48 PM

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

All times are GMT -5. The time now is 09:48 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